How to view what is actually send to the MOSEK solver by YALMIP

18 views
Skip to first unread message

JackJack

unread,
Dec 1, 2025, 8:34:08 PMDec 1
to YALMIP
Dear Professor Johan, 

Is there any way to make Yalmip show what it actually sends to the MOSEK solver ?

I have a feeling that what I intend to do versus what is actually being sent to the solver is not the same, but I have no way on how to investigate this issue.

Thank you and best regards.

Michal Adamaszek

unread,
Dec 2, 2025, 1:44:49 PMDec 2
to YALMIP
sdpsettings('savedebug',1)
load('mosekdebug')

will give you the prob structure of the Mosek toolbox for Matlab, whereas

sdpsettings('mosektaskfile', 'dump.xxx') 

where xxx is the extension of your chosen file format from https://docs.mosek.com/latest/toolbox/supported-file-formats.html will force Mosek to write the file with the problem it was given.

michal

JackJack

unread,
Dec 6, 2025, 11:48:37 PMDec 6
to YALMIP
Thank you, I use this and it work well 

    opts = sdpsettings('solver','mosek','verbose',1,'savesolveroutput',1,'mosektaskfile', 'dump.ptf');  
Reply all
Reply to author
Forward
0 new messages