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 ...
随机推荐
- October 24th Week 44th Monday 2016
True love stories never have endings. 真正的爱情故事永远没有结局. It seems I have been customed to the single lif ...
- 《BuildingMachineLearningSystemsWithPython》学习笔记
BuildingMachineLearningSystemsWithPython Python机器学习入门 数据分析五个步骤 读取和清洗数据 探索和理解输入数据[我的理解是业务理解] 分析如何将算法应 ...
- android init进程分析 ueventd
转自:http://blog.csdn.net/freshui/article/details/2132299 (懒人最近想起我还有csdn好久没打理了,这个Android init躺在我的草稿箱中快 ...
- 算法系列:FFT 001
转载自http://blog.csdn.net/orbit/article/details/17210461 2012年9月的时候,一个南京的大学生从电视台播放的一段记者采访360总裁周鸿祎的视频中破 ...
- MIT 6.828 JOS学习笔记3. Exercise 1.2
这篇博文是对Lab 1中的Exercise 2的解答~ Lab 1 Exercise 2: 使用GDB的'si'命令,去追踪ROM BIOS几条指令,并且试图去猜测,它是在做什么.但是不需要把每个细节 ...
- JS中对象排序
详细代码如下: var s=[{name:"abc",value:10},{name:"dbc",value:5},{name:"acc", ...
- hdu分类 Dynamic Programming(这是一场漫长的旅途)
下面是difficulty 1的题 1003 Max Sum 最长递增子序列.非常经典,最棒的解法是在线算法O(n)的复杂度. 贴的呢,是用dp做的代码. 先是一个高亮的dp递推式,然后找到最大处 ...
- nodejs review-02
30 Receive POST data POST接受JSON数据处理; //req. res都是可读的stream; http.createServer(function (req, res) { ...
- 浏览器-06 HTML和CSS解析2
选择器 其实现由CSSSelector类来完成: CSSSelector的作用是储存从解析器生成的结果信息; 这里匹配指的是当需要为每个DOM中的节点计算样式时,WebKit需要根据当前的节点信息来从 ...
- js查找水仙花数
所谓水仙花数是满足类似于153=1³+5³+3³: 第一种方式:把这个数当做字符串来实现 <script> for(var i=100;i<=999;i++) { str_i=i.t ...