matlabmosek

Mosek: suppress printing "MOSEK Version 9.2.3..."


I am using Mosek in Matlab and I would like to suppress any printing after running an optimisation problem.

I have set param.MSK_IPAR_LOG = 0;. However, I still get the following message printed.

MOSEK Version 9.2.3 (Build date: ...)
Copyright (c) MOSEK ApS, Denmark. WWW: mosek.com
Platform: ...

How can I remove it?


Solution

  • Use echo(0) every time you run mosekopt, for example mosekopt('minimize echo(0)', prob, param) and so on.

    https://docs.mosek.com/9.2/toolbox/solver-io.html