|
cvx 安装好后,默认有两个solver
默认使用的是SDPT3,通过命令cvx_solver 可以查看,通过cvx_solver SeDumi 可以改为SeDumi。其他的学术版要申请。
cvx的academic版本也要申请:http://cvxr.com/cvx/academic/
申请完会有一个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 <solver_name>".
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/
帮助文档:https://yalmip.github.io/tutorials/
添加到path中就可以使用了
运行:doc yalmip
可以看到安装好了
1/1 | 闂佽鍓氬Σ鎺楊敇閿燂拷:15 | 婵☆偓绲鹃悧鐘诲Υ閿燂拷 | 婵炴垶鎸搁敃锝囩博鐎涙ǜ浜滈柨鐕傛嫹 | 婵炴垶鎸搁鍕博鐎涙ǜ浜滈柨鐕傛嫹 | 闂佸搫鐗滈崑濠囧Υ閿燂拷 | 闁荤姴鎼悿鍥归敓锟� |
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2025-3-16 14:14
Powered by ScienceNet.cn
Copyright © 2007-2025 中国科学报社