Similarly to Mosek license is not detected after running cvx_setup, cvx_setup keeps telling me I am missing a Mosek licence. However, as you can see in the terminal output parsed below, it is indeed located in “$HOME/mosek/mosek.lic”. I tried adding the path in “startup.m”, but it did not change anything.
Running “cvx_solver”, however, still outputs that I have Mosek, and that it is successfully selected as default.
Interestingly though, it seems cvx still agrees to run with Mosek (at least, it does not return any error message nor is it telling me it swaps to whatever solver when running the optimisation).
What is happening here? Is the warning in cvx_setup actually impacting something, seeing how I can still run the program? If yes, how can I solve it? I don’t see how to feed cvx the path to the academic licence…
(I am getting this warning consistently on the two Linux machines I tried)
Output from cvx_setup (with R2025a):
Setting CVX paths...done.
>> cvx_setup
---------------------------------------------------------------------------
CVX: Software for Disciplined Convex Programming (c)2014 CVX Research
Version 2.2, Build 1148 (62bfcca) Tue Jan 28 00:51:35 2020
---------------------------------------------------------------------------
Installation info:
Path: /home/matlab/cvx
MATLAB version: 25.1 (R2025a)
OS: Linux amd64 version 6.12.38+deb13-amd64
Java version: 1.8.0_202
Verfying CVX directory contents:
WARNING: The following files/directories are missing:
/home/matlab/cvx/sedumi/.travis.yml
These omissions may prevent CVX from operating properly.
Preferences:
Path: /home/matlab/.matlab/cvx_prefs.mat
License host:
Username: matlab
Host ID: 00505600f98a (ens18,132.199.249.138)
Installed license:
No license installed.
No valid licenses found.
<a href="http://cvxr.com/cvx/academic?c_act=fill&c_unm=matlab&c_hid=00505600f98a
">Click here</a> to fill out an academic license request
for the username and first hostid listed above.
---------------------------------------------------------------------------
Setting CVX paths...already set!
Searching for solvers...5 shims found.
3 solvers initialized (* = default):
* Mosek 9.1.9 {cvx}/mosek/a64
SDPT3 4.0 {cvx}/sdpt3
SeDuMi 1.3.4 {cvx}/sedumi
2 solvers skipped:
GLPK
Could not find a GLPK installation.
Gurobi unknown {cvx}/gurobi/a64
No valid Gurobi license was found.
1 solver issued warnings:
Mosek 9.1.9 {cvx}/mosek/a64
Using MOSEK with CVX requires an academic MOSEK license
or a MOSEK-enabled CVX Professional license. Commercial
users with MOSEK licenses should contact sales@cvxr.com.
Saving updated preferences...done.
Testing with a simple model...done!
---------------------------------------------------------------------------
To change the default solver, type "cvx_solver <solver_name>".
To save this change for future sessions, type "cvx_save_prefs".
Please consult the users' guide for more information.
---------------------------------------------------------------------------
location Mosek licence:
matlab@vm249138:~$ echo "$HOME"
/home/matlab
matlab@vm249138:~$ ls $HOME/mosek/mosek.lic
/home/matlab/mosek/mosek.lic