Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Creating the environment
The first executable statement in our example obtains a Gurobi
environment (using the GRBEnv()
constructor):
GRBEnv env = new GRBEnv("mip1.log");Later calls to create an optimization model will always require an environment, so environment creation is typically the first step in a Gurobi application. The constructor argument specifies the name of the log file.