Skip to content

Commit a3a6239

Browse files
committed
Revert "let MatrixExprCons support <= and >= operator"
This reverts commit b6dcf42.
1 parent cb600b2 commit a3a6239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyscipopt/expr.pxi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def _expr_richcmp(self, other, op):
5151
return (self - other) <= 0.0
5252
elif _is_number(other):
5353
return ExprCons(self, rhs=float(other))
54-
elif isinstance(other, (MatrixExpr, MatrixExprCons)):
54+
elif isinstance(other, MatrixExpr):
5555
return _expr_richcmp(other, self, 5)
5656
else:
5757
raise NotImplementedError
@@ -60,7 +60,7 @@ def _expr_richcmp(self, other, op):
6060
return (self - other) >= 0.0
6161
elif _is_number(other):
6262
return ExprCons(self, lhs=float(other))
63-
elif isinstance(other, (MatrixExpr, MatrixExprCons)):
63+
elif isinstance(other, MatrixExpr):
6464
return _expr_richcmp(other, self, 1)
6565
else:
6666
raise NotImplementedError

0 commit comments

Comments
 (0)