SDP solve iteration count from Mosek

12 views
Skip to first unread message

Gabor Pataki

unread,
Feb 13, 2026, 8:24:18 AMFeb 13
to YALMIP
Hello,

I would need some help in this: I solve an SDP using Mosek, and I would like to get how many iterations it took.

Now I am using:

ops = sdpsettings( ...
'solver', 'mosek', ...
'verbose', 0, ...
'savesolveroutput', 1, ... % <-- so diagnostics.solveroutput exists
'savesolverinput', 1, ... % <-- optional, useful for debugging
'mosek.MSK_IPAR_INTPNT_MAX_ITERATIONS', 100);

diagnostics= optimize(F,trace(C*solverX),ops);

iterations = diagnostics.solveroutput.res.info.intpnt_iter;

and I get an error. (It is also important to set the max iterations to be high).

Thank you
Gabor




Michal Adamaszek

unread,
Feb 13, 2026, 2:41:41 PMFeb 13
to YALMIP
diagnostics.solveroutput.res.info.MSK_IINF_INTPNT_ITER

In general for every optimizer information item listed in https://docs.mosek.com/latest/toolbox/api-reference.html there is a field in  diagnostics.solveroutput.res.info with that name

Michal

Reply all
Reply to author
Forward
0 new messages