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 !