Try our new documentation site (beta).

Setting Parameters in Empty Environments

Another means for setting startup parameters is to use an empty environment. Empty environments are Gurobi environments that can only be used to set parameters, but for nothing else.

The first step is to construct the empty environment. This is done using GRBemptyenv in C, or through one of the provided GRBEnv constructors in the object-oriented interfaces. You then set parameters on this environment using the standard parameter API. Finally, you start the environment, using the GRBstartenv in C, or using the env.start() method in the object-oriented interfaces.

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search

Gurobi Optimization