Mosek installation error

I have installed license successfully,but I can not use mosek.I want to kniw the reasons.
Thank you.

mosekdiag
Matlab version: 8.6.0.267246 (R2015b)
Architecture : PCWIN64
The mosek optimizer executed successfully from the command line:

MOSEK Version 8.1.0.78 (Build date: 2019-3-4 15:28:27)
Copyright © MOSEK ApS, Denmark. WWW: mosek.com
Platform: Windows/64-X86

FlexLM
Version : 11.14
Hostname : AB-201810261518
Host ID : “f0761c7c2f6c d053498d53cd d053498da2d3”
License path : C:\Users\Administrator.AB-201810261518\mosek\mosek.lic

Operating system variables
PATH :

*** No input file specfied. No optimization is performed.

Return code - 0 [MSK_RES_OK]

mosekopt: C:\Program Files\Mosek\8\toolbox\r2014a\mosekopt.mexw64
Found MOSEK version : major(8), minor(1), revision(78)
mosekopt returned an error: 1008. [MSK_RES_ERR_MISSING_LICENSE_FILE]
Remember to restart MATLAB if you installed a new license file.
Debug output:
Mosek: Open
Mosek: Using matlab (1) or system calloc (0) ? 0
Mosek: Echo intro

MOSEK Version 8.1.0.78 (Build date: 2019-3-4 15:28:27)
Copyright © MOSEK ApS, Denmark. WWW: mosek.com
Platform: Windows/64-X86

FlexLM
Version : 11.14
Hostname : AB-201810261518
Host ID : “f0761c7c2f6c d053498d53cd d053498da2d3”
License path : C:\Users\Administrator.AB-201810261518\mosek\mosek.lic

Operating system variables
PATH :
Mosek: Check version
Mosek: done
Warning: MOSEK Fusion is not configured correctly; check that mosek.jar is added to the javaclasspath.

In mosekdiag (line 85)

cvx_setup

CVX: Software for Disciplined Convex Programming ©2014 CVX Research

Version 2.1, Build 1127 (95903bf) Sat Dec 15 18:52:07 2018

Installation info:

Path: G:\matlab\1\cvx
MATLAB version: 8.6 (R2015b)
OS: Windows 7 amd64 version 6.1
Java version: 1.7.0_60
Verfying CVX directory contents:
No missing files.
Preferences:
Path: C:\Users\Administrator.AB-201810261518\AppData\Roaming\MathWorks\MATLAB\cvx_prefs.mat
License host:
Username: zqk
Host ID: d053da2d3 (eth4)
Installed license:
Organization: chang'an university
Contact: zhangqiankun (2018
052@chd.edu.cn)
License type: academic
Named user: zhang, zqk
Host ID: d05***8da2d3
Expiration: 2020-05-10 (358 days remaining)
Status: verified

Setting CVX paths…already set!
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.
    G:\matlab\1\cvx\shims\cvx_gurobi
    unexpected error:
    Reference to non-existent field ‘folder’.
    Error in cvx_gurobi
    Error in cvx_setup (line 83)
    tsolv = feval( tsolv.sname, tsolv );
    G:\matlab\1\cvx\shims\cvx_mosek
    unexpected error:
    Reference to non-existent field ‘folder’.
    Error in cvx_mosek
    Error in cvx_setup (line 83)
    tsolv = feval( tsolv.sname, tsolv );
    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.

I want to know why cvx can not detect mosek.
Thank you.

1 Like

As far as mosekdiag is concerned it says

mosekopt returned an error: 1008. [MSK_RES_ERR_MISSING_LICENSE_FILE]

which means it could not find the license file in

C:\Users\Administrator.AB-201810261518\mosek\mosek.lic

Make sure the license is there and just in case restart Matlab.

That is all I can say about standalone Mosek. I don’t know about the licensing intricacies of Mosek+CVX interaction.

Hi,Michal_Adamaszek.
I want to know how to deal with it.
Thank you.

In addition,cvx2.1 include mosek and I just install cvx license ,then I can use mosek in cvx.But although I install cvx license,cvx can not use mosek.
So I want to know why.

You have to install a license for Mosek too.

See

http://cvxr.com/news/