LinExpr.__eq__()
LinExpr.__eq__()
__eq__( )Overloads the==
operator, creating aTempConstrobject that captures an equality constraint. The result is typically immediately passed toModel.addConstr.
Return value:
ATempConstrobject.
Example usage:
m.addConstr(x + y == 1)