test for cvx library in matlab - windows
Download the zip file of cvx
http://cvxr.com/cvx/download/ by downloading cvx-w64.zip
Require a licence for academic use
a file named cvx_license.dat
Install with licence
unzip the zip file into the toolbox directory ($MatlabRoot\toolbox)

run the command in matlab after entering the directory of cvx (adding the path of licence file)
>> cvx_setup E:\software\MATLAB\R2014a\toolbox\cvx\cvx_license.dat
Then
---------------------------------------------------------------------------
CVX: Software for Disciplined Convex Programming (c)2014 CVX Research
Version 2.1, Build 1112 (ef41608) Sun Oct 2 17:15:09 2016
---------------------------------------------------------------------------
Test with simple script
cvx_test.m
m = ; n = ; p = ;
A = randn(m,n); b = randn(m,);
C = randn(p,n); d = randn(p,); e = rand;
cvx_begin
variable x(n)
minimize( norm( A * x - b, ) )
subject to
C * x == d
norm( x, Inf ) <= e
cvx_end
run the script
>> cvx_test Calling SDPT3 4.0: variables, equality constraints
For improved efficiency, SDPT3 is solving the dual problem.
------------------------------------------------------------ num. of constraints =
dim. of socp var = , num. of socp blk =
dim. of linear var =
dim. of free var = *** convert ublk to lblk
*******************************************************************
SDPT3: Infeasible path-following algorithms
******************************************************************* ------------------------For abbreviatin --------------
rel. primal infeas (scaled problem) = 2.01e-09
rel. dual " " " = 6.95e-10
rel. primal infeas (unscaled problem) = 0.00e+00
rel. dual " " " = 0.00e+00
norm(X), norm(y), norm(Z) = 1.5e+00, 4.5e+00, 6.4e+00
norm(A), norm(b), norm(C) = 1.8e+01, 2.0e+00, 6.3e+00
Total CPU time (secs) = 0.07
CPU time per iteration = 0.01
termination code =
DIMACS: 2.0e-09 0.0e+00 1.2e-09 0.0e+00 6.3e-09 6.2e-09
------------------------------------------------------------------- ------------------------------------------------------------
Status: Solved
Optimal value (cvx_optval): +4.29018
test for cvx library in matlab - windows的更多相关文章
- Library:python-memcached on Windows
1 install memcached 1.4.4 Windows 32-bit 2 cd into the base file and type memcached.exe -d install ...
- New library for Matlab - test
Thanks http://www.matlabsky.com/thread-120-1-1.html Install directory $MatlabRoot\toolbox or >&g ...
- How to build the Robotics Library from source code on Windows
The Robotics Library is an open source C++ library for robot kinematics, motion planning and control ...
- matlab 工具箱下载地址
1.平面操作工具箱 http://cathy.ijs.si/~leon/planman.html 2.SimMechanics 工具箱 (这个好像不是免费的) http://www.mathworks ...
- matlab toolboxes 大全
MATLAB Toolboxes top (Top) Audio - Astronomy - BiomedicalInformatics - Chemometrics - Chaos - Chemi ...
- [转]linux,windows 可执行文件(ELF、PE)
ELF (Executable Linkable Format)UNIX类操作系统中普遍采用的目标文件格式 . 首先要知道它有什么作用:工具接口标准委员会TIS已经将ELF作为运行在Intel32位架 ...
- Linux、Windows Server Password Security Policy Strengthen
catalog . windows Security and Protection(Logon and Authentication) . windows密码强制安全策略 . PAM(Pluggabl ...
- Matlab tips and tricks
matlab tips and tricks and ... page overview: I created this page as a vectorization helper but it g ...
- 修改Matlab 2012b默认工作路径
MATLAB的路径有多种,这里只讲一下启动时设置成MATLAB的用户的默认工作路径. 本人不想去改MATLAB的原来系统文件,而是尽量利用startup.m.这个文件默认在'/home/r/文档/MA ...
随机推荐
- .NET LINQ 相等运算
相等运算 如果两个序列的对应元素相等且这两个序列具有相同数量的元素,则视这两个序列相等. 方法 方法名 说明 C# 查询表达式语法 Visual Basic 查询表达式语法 更多信息 Seq ...
- node02-util
目录:node01-创建服务器 node02-util node03-events node04-buffer node05-fs node06-path node07-http node08-exp ...
- Yii 动作过滤的方法
protected function _init() { } public function beforeAction($action) { //黑名单 $blackList = array('tes ...
- qt 标准对话框
if (QMessageBox::Yes == QMessageBox::question(this, tr("Question"), ...
- mvc+webapi 项目架构
首先项目是mvc5+webapi2.0+orm-dapper+ef codefirst+redis+quartz.net+actionmq. 1.项目框架层次结构: 这个mvc项目根据不同的业务和功能 ...
- apache自带的web监控器配置
第一:将mod_status模块放开,即去掉httpd.conf中的# 第二:在httpd.conf后面添加下面内容 <Location /server-status> SetHandle ...
- CountDownLatch
使用的实例: @Override public <V> V get(Future<V> future) { final CountDownLatch l = new Count ...
- 使用samba实现linux与windows共享(测试成功)
samba服务器搭建 实现linux与windows文件共享有很多种方法,诸如wpc,vmtools等,今天我来介绍我在rehat系统中实验成功并且现在在用的的方法,直接给出操作步骤: ...
- jquery Ajax 案例
html <div class="data"><ul></ul></div> <div id="load" ...
- 我的jQuery源码读后感-jquery1.11.x 集成了 AMD
jquery1.11.x 集成了 AMD AMD 加入到了 jQuery, jQuery 把源码切分成各个逻辑模块. ready 整合成依赖 Deferred 的模块. 有些模块被切分成一些更加利于维 ...