I have install the cvx, mosek and gurobi with with licenses, respectively.
1.For mosek, I installed it in “C:\Program Files\Mosek” and the academic license was in “C:\Users\LA\mosek\mosek.lic”.
I have added to path and checked the mosekdiag, it showed,
Matlab version : 9.11.0.1837725 (R2021b) Update 2
Architecture : PCWIN64
mosekopt path : C:\Program Files\Mosek\9.3\toolbox\R2015a\mosekopt.mexw64
MOSEK version : 9.3.16
Test linear solve: Success
mosekopt works OK. You can use MOSEK in MATLAB.
But after I re-run the cvx_setup, although the installed mosek can be found, the version of it is 9.1.9, not the installed 9.3.16 that shown in mosekdiag. I am confused why it’s that. Below is the part of output of the cvx_setup.
6 solvers initialized (* = default):
Gurobi 9.00 {cvx}\gurobi\w64
Mosek 9.1.9 {cvx}\mosek\w64
Mosek_2 9.1.9 C:\Program Files\Mosek\9.3\toolbox\R2015a
Mosek_3 9.1.9 C:\Program Files\Mosek\9.3\toolbox\R2015a
- SDPT3 4.0 {cvx}\sdpt3
SeDuMi 1.3.4 {cvx}\sedumi
2.For gurobi, I installed it in “C:\Program Files\gurobi951” and the academic license was in “C:\Users\LA\gurobi.lic”. I have set the environment variable for license and have run the C:\Program Files\gurobi951\win64\matlab*gurobi_setup.m* file in matlab, it showed
gurobi_setup
The MATLAB interface for Gurobi 9.5.1 has been installed.
The directory
C:\Program Files\gurobi951\win64\matlab
has been added to the MATLAB path.
To use Gurobi regularly, you must save this new path definition.
To do this, type the command
savepath
at the MATLAB prompt. Please consult the MATLAB documentation
if necessary.
savepath
Then, I re-run the cvx_setup, the command window showed,
Setting CVX paths…already set!
Searching for solvers…Warning: env argument deprecated, use params. instead
postion:cvx_gurobi
postion: cvx_gurobi
postion: cvx_setup (Line 83)
Warning: env argument deprecated, use params. instead
postion:cvx_gurobi
postion: cvx_gurobi
postion: cvx_setup (Line 83)
5 shims found.
6 solvers initialized (* = default):
Gurobi 9.00 {cvx}\gurobi\w64
Mosek 9.1.9 {cvx}\mosek\w64
Mosek_2 9.1.9 C:\Program Files\Mosek\9.3\toolbox\R2015a
Mosek_3 9.1.9 C:\Program Files\Mosek\9.3\toolbox\R2015a
- SDPT3 4.0 {cvx}\sdpt3
SeDuMi 1.3.4 {cvx}\sedumi
3 solvers skipped:
GLPK
Could not find a GLPK installation.
Gurobi_2 unknown C:\Program Files\gurobi951\win64\matlab
params.OutputFlag must be a scalar
Gurobi_3 unknown C:\Program Files\gurobi951\win64\matlab
params.OutputFlag must be a scalar
Why the gurobi that I installed was skipped? Did I do something wrong?