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 cc28588 commit 8719b91Copy full SHA for 8719b91
src/pyscipopt/expr.pxi
@@ -382,9 +382,7 @@ cdef class ProdExpr(FuncExpr):
382
383
def __add__(self, other):
384
other = Expr.to_const_or_var(other)
385
- if isinstance(other, ProdExpr) and hash(frozenset(self)) == hash(
386
- frozenset(other)
387
- ):
+ if isinstance(other, ProdExpr) and hash(self) == hash(other):
388
return ProdExpr(*self, coef=self.coef + other.coef)
389
return super().__add__(other)
390
0 commit comments