凸优化工具箱cvx

本文介绍了如何安装和使用CVX,一个免费的用于凸优化问题的MATLAB工具箱。通过详细步骤展示了从下载、安装到注册的过程,并分享了安装过程中遇到的警告及解决办法。通过简单的测试代码,验证了CVX的有效性。
摘要由CSDN通过智能技术生成

神器CVX

一款免费的计算凸优化问题的工具箱,听说炒鸡好用,有木有?今天安装成功,按耐不住激动的心情,记录下一次成功安装步骤:

  1. 首先下载CVX:CVX网站首页可供软件下载

  2. 对照自己的机型,下载好放到MATLAB目录,注意能放在原MATLAB->toolbox中。本人放在BIN文件夹下

  3. 解压缩

    解压缩后,发现文件里有个read me 。英文不太好,没有完全看懂,但大概知道,如果想好好利用CVX工具箱还需要一把“钥匙”——license 文件。于是,并没有着急安装,网上搜了一堆CVX有关的资料,并没有发现有现成的license,然后乖乖按照read me中的网址找到了注册地址,软件是免费注册的,但是有区分学术型还是商业型,而且,只能用学校邮箱注册学术型(即后面是学校邮箱后缀的),注册后,邮箱自动接收一封邮件,附件即是license.dat。邮件内容如下:

Thank you for registering for a CVX license. Your license key is attached.
To install the license, follow these steps:
1) Make sure you have fully installed the latest version of CVX: http://cvxr.com/download
The attached license key works only with Build 883 or later of CVX 2.0.
If you receive strange errors during installation, this is a sign that
you need to update your CVX installation first.
2) Save the attached file ‘cvx_license.dat’ to a convenient location on
your hard drive.
3) At the MATLAB command line, run “cvx_setup” again, but add the full
path to your license file as an argument:
cvx_setup /path/to/license/file/cvx_license.dat
4) Once the license is installed, you are free to delete the file or move
it to a different location—CVX creates its own copy of the contents.
Full installation instructions can be found here:
http://cvxr.com/cvx/doc/install.html
If for some reason the license installation fails, please submit a bug
report at our help desk:

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Z_shsf

来包瓜子嘛,谢谢客官~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值