Affected versions: v9.0.x, v9.1.x, v9.5.0, v9.5.1, v9.5.2, v10.0.0, v1 0.0.1 , v10.0.2
Resolved in version: Gurobi v10.0.3
Issue
The R language uses a pattern-matching system that might conflict with how Gurobi specifies some general constraints.
Whenever you are using genconlogistic , genconloga, or genconexpa, you should also add an empty genconlog or genconexp to avoid misinterpretations of the constraint type. This is due to the common base of the names of those lists.
Workaround
To address the issue in the meantime, follow the steps below:
- When using
genconlogistic, add an emptygenconlogin case there are no natural logarithmic constraints in the problem - When using
genconloga, add an emptygenconlogin case there are no natural logarithmic constraints in the problem - When using
genconexpa, add an emptygenconexpin case there are no natural exponential constraints in the problem
An example implementation of adding an empty natural logarithmic or exponential constraints in the Gurobi R API is given below:
model$genconlog <- list()
model$genconexp <- list()