cvx 安装好后,默认有两个solver
默认使用的是SDPT3,通过命令cvx_solver 可以查看,通过cvx_solver SeDumi 可以改为SeDumi。其他的学术版要申请。
申请完会有一个cvx_license.dat.txt发送到邮箱然后把它添加到路径中,执行(自己的路径):
cvx_setup /Users/***/Documents/MATLAB/cvx/cvx_license.dat.txt
结果:
Setting CVX paths...done.
Saving updated path...done.
Searching for solvers...5 shims found.
3 solvers initialized (* = default):
Mosek 7.1.0.12 {cvx}/mosek/maci64
* SDPT3 4.0 {cvx}/sdpt3
SeDuMi 1.34 {cvx}/sedumi
2 solvers skipped:
GLPK
Could not find a GLPK installation.
Gurobi {cvx}/gurobi/maci64
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.
Saving updated preferences...done.
Testing with a simple model...done!
---------------------------------------------------------------------------
To change the default solver, type "cvx_solver ".
To save this change for future sessions, type "cvx_save_prefs".
Please consult the users' guide for more information.
---------------------------------------------------------------------------
现在就完成了Mosek的安装,但是另外另外两个还没有装好
------------------YALMIP---------------------------------------
下载:https://yalmip.github.io/download/
添加到path中就可以使用了
运行:doc yalmip
可以看到安装好了
转载本文请联系原作者获取授权,同时请注明本文来自吴锐科学网博客。
链接地址:http://blog.sciencenet.cn/blog-3083238-1017189.html
上一篇:自协方差和偏自协方差
下一篇:R中的svm