Different dual variable using the MOSEK and the Yalmip #932
-
Hi, I am trying to find the dual variable of 3rd inequality constraint of following problem: y=sdpvar(N,1); options = sdpsettings('solver','mosek'); which could provide fairly accurate dual variable: lambda. However, for a large scale problem, using the YALMIP is not fast enough. Therefore, I try to use MOSEK directly: [r, res] = mosekopt('symbcon'); param.MSK_DPAR_INTPNT_CO_TOL_PFEAS = 1.0e-12; prob.a = [sparse(A),sparse(size(A,1),1)]; prob.f = [sparse(1,N+1); chol(R), sparse(N,1)]; prob.f = [prob.f ; [sparse(1,N), 1; sparse(1,N+1); chol(H), sparse(N,1)] ]; [~, res] = mosekopt('minimize echo(10)', prob, param); It is much faster, but I got less accurate result of dual variable: lambda. I am wondering, it is possible to make two "lambda"s identical? Many Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Sounds weird that it would be (significantly slower) via YALMIP for such a simple model, so a reproducible example would be nice. It could be that you've switch the primal/side side of the problem interpretation compared to yalmip leading to a smaller but numerically more challenging problem or something like that |
Beta Was this translation helpful? Give feedback.
Sounds weird that it would be (significantly slower) via YALMIP for such a simple model, so a reproducible example would be nice. It could be that you've switch the primal/side side of the problem interpretation compared to yalmip leading to a smaller but numerically more challenging problem or something like that