We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06f8ebc commit a0c4995Copy full SHA for a0c4995
src/pyscipopt/matrix.pxi
@@ -20,11 +20,11 @@ def _is_number(e):
20
def _matrixexpr_richcmp(self, other, op):
21
def _richcmp(self, other, op):
22
if op == 1: # <=
23
- return self.__le__(other)
+ return self <= other
24
elif op == 5: # >=
25
- return self.__ge__(other)
+ return self >= other
26
elif op == 2: # ==
27
- return self.__eq__(other)
+ return self == other
28
else:
29
raise NotImplementedError("Can only support constraints with '<=', '>=', or '=='.")
30
0 commit comments