Dear Johan:
I would like to ask, if it is possible to return dual multipliers in optimizer?
Again, but more specificly, if yalmip will support to return lagrange multiplier by the "optimizer". I am trying to acquire the dual multiplier without solving each problem by " lamdak1=dual(cst('special1')); " , as the code "dual(cst) " is very very time consuming if there are quite a lot problems need to be solved.
Here comes the details:
- sol=optimizer(cst, obj, ops, [x], [y]);
- tmpsol=sol{[x_unit]};
by the codes above, yalmip reaches a much faster solving as the yalmip time is saved.
Further, what should I do if I want to gain the dual multiplier for different [x] ?
I have tried:
1) [mysolution,diagnostics,dontrememberwhatthisis,duals] = Solver(cst,obj,ops,[x],[y]); % error
2) sol=optimizer(cst, obj, ops, [x], [y; dual(cst('special1')]); % error
3) parfor for problems to save time; %erro, as there are other problems……
I'll appreciate it very much if you answer this queation.