I installed mosek and when I use ‘mosekdiag’ I get
Operating system variables
PATH :
*** No input file specified. 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(72)
mosekopt is working correctly.
MOSEK Fusion is working correctly.
I have an academic license for CVX when I use
cvx_setup /path/to/your/cvx_license.dat
I get
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.
C:\Users\Atefe\Desktop\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 );
C:\Users\Atefe\Desktop\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.
Please help me.
Please show the results of cvx_version. Which version of mosek are you using?
If you are using CVX 3.0beta, please install CVX 2,.1 and try that.
cvx version
CVX: Software for Disciplined Convex Programming ©2014 CVX Research
Version 2.1, Build 1127 (95903bf) Sat Dec 15 18:52:07 2018
mosek version
MOSEK Version 8.1.0.72 (Build date: 2018-12-18 11:03:49)
Copyright © MOSEK ApS, Denmark. WWW: mosek.com
Platform: Windows/64-X86
I think you will have to wait for @mcg to provide assistance on this.
However, in the meantime, I suggest reinstalling CVX 2.1 and see whether that works. Given that you receive a similar error message with gurobi, I suspect the problem is with the CVX installation, not with mosek. Also, it may help him to diagnose if you provide the full output of cvx_version, not just the cvx version.
Your version of CVX is way too old. You’ll have to update at least to R2016b I think.
Dear @mcg
I downloaded cvx from
http://cvxr.com/cvx/download/
where can I download cvx 2016?
Sorry I meant your Matlab version is too old.
Dear @mcg
I tried with matlab R2016a and I got error.
- I installed mosek 8 and I copied mosek.lic in C:\Users\Atefe\mosek
I used below codes in matlab:
- addpath ‘C:\Program Files\Mosek\8\toolbox\r2014a’
3)cvx_setup C:\Users\Atefe\Desktop\cvx_license.dat
please help me to solve this problem.
matlab R2016a is too old?
@Mark_L_Stone
do you know what is wrong?
You wrote
I tried with matlab R2016a and I got error.
So are we supposed to guess what error you got?
What about showing us the error you got.
I wrote the errors above at the first of topic.
Dear @mcg
I use windows. Is there something different for windows to set up?
I have encountered the same problem. If you have solved it, could you please tell me the solution? Thank you!
Hi,I found a solution.
I meet same problem when I try to install mosek in the MATLAB 2016a.
But when I install it in the MATLAB 2018b,it can run.