Concepts
Features
Reference
Gurobi general expression object. Objects of this class are created by aset ofgeneral constraint helper functionsfunctions. They are temporary objects, meant to be used in conjunctionwith overloaded operators to buildTempConstr objects, whichare then passed toaddConstr oraddConstrs to buildgeneralconstraints.
To be more specific, the following creates aGenExpr object…
max_(x,y)
The following creates aTempConstr object…
z==max_(x,y)
The following adds a general constraint to a model…
model.addConstr(z==max_(x,y))
Please refer to theTempConstr documentation for moreinformation on building general constraints.
Help and Feedback