matlab版本和yalmip兼容,科学网—matlab cvx + yalmip - 吴锐的博文

cvx 安装好后,默认有两个solver

5504db9c54096210a61ab4f2558d2b59.png

默认使用的是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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值