MOSEK ApS is widely considered the leader in commercial software for nonlinear convex optimization. The company was established in 1997, and is led by founding CEO Erling Andersen and a technical advisory board chaired by Stanford Professor Yinyu Ye. Both are internationally recognized for their contributions to the field of convex optimization, and remain active in research and publication. With its support for integer variables, the semidefinite cone, and (with version 9.0) the exponential cone, the MOSEK solver has native support for a wider variety of CVX models than any other solver.
Using MOSEK with CVX requires a valid license:
Academic users: request an license from the MOSEK Academic Licensing page.
Commercial users must purchase one of our CVX Professional licenses:
Please contact CVX Sales for more information about either option, and MOSEK ApS Sales for pricing information for standalone MOSEK licenses.
If successful, the output of step 4 should show that MOSEK is among the list of available solvers. If you installed both a standalone and bundled version of MOSEK, they should both be available after setup.
Even if MOSEK is successfully added to your solver list, it will not automatically be selected as your default solver. To change this, type the following two commands on the MATLAB command line:
cvx_solver mosek
cvx_save_prefs
The first command changes the active solver to MOSEK, but only for the current session. The second line saves that change to CVX’s preference file, so that MOSEK will be selected as the active solver every time you start MATLAB.
If multiple versions of MOSEK were found on the MATLAB path, then CVX will append a numeral to the end of the solver name, allowing you to switch between them; e.g.,
cvx_solver mosek
cvx_solver mosek_2
cvx_solver mosek_3
and so forth.
If you encounter problems using CVX and MOSEK, please contact CVX Support first instead of MOSEK ApS. If we can reproduce your problem, we will determine whether or not it is an issue that is unique to CVX or needs to be forwarded to MOSEK ApS for further analysis.