How to read MOSEK log when using YALMIP ?

20 views
Skip to first unread message

Tường Nguyễn

unread,
Nov 3, 2024, 10:39:01 AM11/3/24
to mosek
Dear MOSEK,

I am currently using this command in YALMIP to dump the MOSEK log file

  sdpsettings('mosektaskfile', 'dump.task.gz')  


However, I do not receive .txt file but some strange looking file that even notepad ++ cannot read.

Would you kindly help me with this ?

Thank you !

Michal Adamaszek

unread,
Nov 3, 2024, 10:42:18 AM11/3/24
to mosek
This is not the log, this is the dump of problem data. You have requested a binary format which is not human readable, and then additionally gzipp-ed.

Try

"dump.ptf"

or any other format from


that you like ("dump.mps", "dump.cbf", etc.) The file format will be determined by the extension.

If you actually want the optimization log output then you just get it to the Matlab window if you set Yalmip to be sufficiently verbose.

Michal

Tường Nguyễn

unread,
Nov 4, 2024, 12:59:53 AM11/4/24
to mosek
Thank you I use  "dump.ptf" to get the model but it seems that I cannot read this file to get the model. I am interested in the constraint, the objective function and the respective bound of the decision variable

Erling D. Andersen

unread,
Nov 4, 2024, 1:03:03 AM11/4/24
to mosek
It is a plain text file. So you can open it with for instance notepad on Windows or emacs on Linux.

Tường Nguyễn

unread,
Nov 4, 2024, 5:59:27 AM11/4/24
to mosek
Thank you ! it works now !!!
Reply all
Reply to author
Forward
0 new messages