yalmip / YALMIP

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

sos + expcone fails #1118

Open johanlofberg opened 2 years ago

johanlofberg commented 2 years ago
P = sdpvar(2);
x = sdpvar(1,1);
optimize([sos(x'*P*x), P(:)>=0, exp(P(1,1)) <= 3],[],sdpsettings('sos.model','image'))
value(exp(P(1,1)))
johanlofberg commented 1 year ago

Appears to follow from thr parametric model being expanded inside compilesos, and then when model is setup in compilesos, it is declared as already which means that operators are lost, i.e. any nonlinear evaluation based thing