Why Mosek can solve this optimization problem but global solver cannot do it ?

4 views
Skip to first unread message

JackJack

unread,
Feb 8, 2026, 1:31:43 AM (23 hours ago) Feb 8
to YALMIP
Dear professor Johan,

I have a toy problem like this 

P = sdpvar(2, 2);
Constraints = [];
Constraints = [Constraints, P >= 0];
Constraints = [Constraints, P(1,2) == 1];
Objective = trace(P);
options = sdpsettings('solver', 'mosek', 'verbose', 1);
sol = optimize(Constraints, Objective, options); When I use mosek it can run well, but when I use BARON it does not run well. It seems very strange because global solver is strong. Is this the solver issue or YALMIP deliberately prevent global solver from dealing with semidefinite constraint ? Thank you and best regards !

Johan Löfberg

unread,
Feb 8, 2026, 2:44:37 AM (22 hours ago) Feb 8
to YALMIP

Baron does not support semidefinite programming
Reply all
Reply to author
Forward
0 new messages