File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ cdef class Expr:
123123
124124 if other[CONST] == 0 :
125125 return ConstExpr(1.0 )
126- return PowerExpr (self , other[CONST])
126+ return PowExpr (self , other[CONST])
127127
128128 def __rpow__ (self , other ):
129129 other = Expr.to_const_or_var(other)
@@ -375,7 +375,7 @@ cdef class ProdExpr(FuncExpr):
375375 return self .coef * _evaluate(self .children, scip, sol)
376376
377377
378- cdef class PowerExpr (FuncExpr):
378+ cdef class PowExpr (FuncExpr):
379379 """ Expression like `pow(expression, exponent)`."""
380380
381381 def __init__ (self , base , expo: float = 1.0 ):
@@ -386,7 +386,7 @@ cdef class PowerExpr(FuncExpr):
386386 return (frozenset (self ), self .expo).__hash__()
387387
388388 def __repr__ (self ):
389- return f" PowerExpr ({tuple(self)}, {self.expo})"
389+ return f" PowExpr ({tuple(self)}, {self.expo})"
390390
391391 def _normalize (self ) -> Expr:
392392 if self.expo == 0:
You can’t perform that action at this time.
0 commit comments