You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the new detect_simple_bounds, I experienced a glitch when casadi derives simple bounds from constraints. Here is a stylized example that replicates the problem:
In the latter case (sol2), the monotonicity constraint translates to a lower bound, while it should be an upper bound instead. The minus signs in the constraint (i.e., in (-2:-1:-3) and (-1:-1:-2)) seem crucial for reproducibility.
Best, Gregor.
The text was updated successfully, but these errors were encountered:
import casadi as ca
x = ca.MX.sym("x",1)
p = ca.MX.sym("p",1)
g = -x
print(ca.detect_simple_bounds(x,p,g,ca.MX([-2]),ca.MX([-2])))
g = x
print(ca.detect_simple_bounds(x,p,g,ca.MX([-2]),ca.MX([-2])))
Hi
When using the new
detect_simple_bounds
, I experienced a glitch when casadi derives simple bounds from constraints. Here is a stylized example that replicates the problem:In the latter case (
sol2
), the monotonicity constraint translates to a lower bound, while it should be an upper bound instead. The minus signs in the constraint (i.e., in(-2:-1:-3)
and(-1:-1:-2)
) seem crucial for reproducibility.Best, Gregor.
The text was updated successfully, but these errors were encountered: