神器CVX
一款免费的计算凸优化问题的工具箱,听说炒鸡好用,有木有?今天安装成功,按耐不住激动的心情,记录下一次成功安装步骤:
首先下载CVX:CVX网站首页可供软件下载
对照自己的机型,下载好放到MATLAB目录,注意不能放在原MATLAB->toolbox中。本人放在BIN文件夹下
解压缩
解压缩后,发现文件里有个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:
http://support.cvxr.com/
Please included the fu

本文介绍了如何安装和使用CVX,一个免费的用于凸优化问题的MATLAB工具箱。通过详细步骤展示了从下载、安装到注册的过程,并分享了安装过程中遇到的警告及解决办法。通过简单的测试代码,验证了CVX的有效性。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



