yalmip / YALMIP

MATLAB toolbox for optimization modeling
https://yalmip.github.io/
Other
490 stars 138 forks source link

wrong constant in objective after optimizer elimination #482

Closed johanlofberg closed 6 years ago

johanlofberg commented 6 years ago

sdpvar x y P = optimizer([x^2 + y^2 <= 5],x^2+y^2+10y+5x,sdpsettings('solver','fmincon','verbose',2),y,x); P(.4)

Should have constant term .4^2+.4, but is only .4

johanlofberg commented 6 years ago

Fixed