Setting Parameters in Empty Environments

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.