8.6.13. 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