8.7.15. TempConstr¶
- class TempConstr¶
Represent a temporary constraint that contains all the information about the constraint but has not yet been added to the model. TempConstr is generally obtained by arithmetic operators “<=”, “>=”, “==”. For example:
# range constraint linExpr == [0, 100] # range constraint mLinExpr == [0, 100] # constraint generated by comparison psdExpr == 2 # constraint generated by comparison x + y <= 10 # constraint generated by comparison x + y >= z # constraint generated by comparison x + y == z + 1
Methods
Get a expression part of constraint
Gets the lower bound of a constraint
Gets the upper bound of a constraint
- getExpr()¶
Get a expression part of constraint
- getLhs()¶
Gets the lower bound of a constraint
- getRhs()¶
Gets the upper bound of a constraint