This article discusses the behavior of inheriting non-default parameter settings from the main environment to supporting environments derived from it, such as concurrent environments and multi-objective environments.
The parameter InheritParams (introduced in version 13.0.0) controls the behavior, which depends on the used Gurobi version:
| InheritParams | Gurobi version <=12.0.3 | 13.0.x | >=14.0.0 |
| -1 (default) |
|
Equivalent to InheritParams=0 | Equivalent to InheritParams=1 |
| 0 |
|
APIs and gurobi_cl: No parameters are inherited | |
| 1 | APIs and gurobi_cl: All parameters are inherited | APIs and gurobi_cl: All parameters are inherited |
Remarks
- For versions 12.0.1, 12.0.2, and 12.0.3, there was an internal parameter GURO_PAR_INHERITPARAMS equivalent to InheritParams for version >=13.0.0, but only for multi-objective environments. (Concurrent environments were not affected by this internal parameter.)
- Note that the parameter InheritParams can also be set within a supporting environment, overruling the setting in the main environment.
- The parameter Threads is not affected by InheritParams, as it must be handled specially depending on the situation (e.g., concurrent optimization on a single vs. multiple machines).