I am getting following error when when suing mosek solver in cvx.:
Error using cvx_solver (line 46)
Unknown, unusable, or missing solver: mosek
When I debug, command cvx_setup
outputs as follows:
---------------------------------------------------------------------------
CVX: Software for Disciplined Convex Programming (c)2014 CVX Research
Version 2.1, Build 1113 (9aaf6f1) Mon Dec 26 14:44:44 2016
---------------------------------------------------------------------------
Installation info:
Path: D:\Program Files\MATLAB\R2020b\toolbox_cvx
MATLAB version: 9.9 (R2020b)
OS: Windows 10 amd64 version 10.0
Java version: 1.8.0_202
Verfying CVX directory contents:
No missing files.
Preferences:
Path: C:\Users\FUTURENET\AppData\Roaming\MathWorks\MATLAB\cvx_prefs.mat
License host:
Username: FUTURENET
Host ID: 90fba6845b90 (eth3)
Installed license:
No license installed.
No valid licenses found.
Click here to fill out an academic license request
for the username and first hostid listed above.
---------------------------------------------------------------------------
Setting CVX paths...done.
Saving updated path...done.
Searching for solvers...5 shims found.
2 solvers initialized (* = default):
* SDPT3 4.0 {cvx}\sdpt3
SeDuMi 1.34 {cvx}\sedumi
3 solvers skipped:
GLPK
Could not find a GLPK installation.
Gurobi {cvx}\gurobi\w64
No valid Gurobi license was found. (Please note that this
license is *not the same* as the CVX license; it must be
obtained directly from Gurobi Optimization.) If you do have
a Gurobi license, the the Gurobi MEX file could not find it.
Please consult the Gurobi documentation for assistance.
Mosek unknown {cvx}\mosek\w64
A CVX Professional license is required.
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.
---------------------------------------------------------------------------
While running mosekdiag
, output is as follows :
>> mosekdiag
Matlab version : 9.9.0.1524771 (R2020b) Update 2
Architecture : PCWIN64
mosekopt path : C:\Program Files\Mosek\9.2\toolbox\R2015a\mosekopt.mexw64
MOSEK version : 9.2.18
Test linear solve: Success
mosekopt works OK. You can use MOSEK in MATLAB.
>> mosekdiag
Matlab version : 9.9.0.1524771 (R2020b) Update 2
Architecture : PCWIN64
mosekopt path : C:\Program Files\Mosek\9.2\toolbox\R2015aom\mosekopt.mexw64
MOSEK version : 9.2.18
Test linear solve: Success
mosekopt works OK. You can use MOSEK in MATLAB.
Above two results shows both CVX and mosek is installed properly. Previously I have used mosek solver in cvx but because of windows reinstallation and reinstallation of mosek solver and cvx. Now I am getting an error when using Mosek solver in CVX. How to solve this?