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

  1. m = ; n = ; p = ;
  2. A = randn(m,n); b = randn(m,);
  3. C = randn(p,n); d = randn(p,); e = rand;
  4. cvx_begin
  5. variable x(n)
  6. minimize( norm( A * x - b, ) )
  7. subject to
  8. C * x == d
  9. norm( x, Inf ) <= e
  10. cvx_end

run the script

  1. >> cvx_test
  2.  
  3. Calling SDPT3 4.0: variables, equality constraints
  4. For improved efficiency, SDPT3 is solving the dual problem.
  5. ------------------------------------------------------------
  6.  
  7. num. of constraints =
  8. dim. of socp var = , num. of socp blk =
  9. dim. of linear var =
  10. dim. of free var = *** convert ublk to lblk
  11. *******************************************************************
  12. SDPT3: Infeasible path-following algorithms
  13. *******************************************************************
  14.  
  15. ------------------------For abbreviatin --------------
  16. rel. primal infeas (scaled problem) = 2.01e-09
  17. rel. dual " " " = 6.95e-10
  18. rel. primal infeas (unscaled problem) = 0.00e+00
  19. rel. dual " " " = 0.00e+00
  20. norm(X), norm(y), norm(Z) = 1.5e+00, 4.5e+00, 6.4e+00
  21. norm(A), norm(b), norm(C) = 1.8e+01, 2.0e+00, 6.3e+00
  22. Total CPU time (secs) = 0.07
  23. CPU time per iteration = 0.01
  24. termination code =
  25. DIMACS: 2.0e-09 0.0e+00 1.2e-09 0.0e+00 6.3e-09 6.2e-09
  26. -------------------------------------------------------------------
  27.  
  28. ------------------------------------------------------------
  29. Status: Solved
  30. Optimal value (cvx_optval): +4.29018

test for cvx library in matlab - windows的更多相关文章

  1. 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 ...

  2. New library for Matlab - test

    Thanks  http://www.matlabsky.com/thread-120-1-1.html Install directory $MatlabRoot\toolbox or >&g ...

  3. 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 ...

  4. matlab 工具箱下载地址

    1.平面操作工具箱 http://cathy.ijs.si/~leon/planman.html 2.SimMechanics 工具箱 (这个好像不是免费的) http://www.mathworks ...

  5. matlab toolboxes 大全

    MATLAB Toolboxes top (Top) Audio - Astronomy - BiomedicalInformatics - Chemometrics  - Chaos - Chemi ...

  6. [转]linux,windows 可执行文件(ELF、PE)

    ELF (Executable Linkable Format)UNIX类操作系统中普遍采用的目标文件格式 . 首先要知道它有什么作用:工具接口标准委员会TIS已经将ELF作为运行在Intel32位架 ...

  7. Linux、Windows Server Password Security Policy Strengthen

    catalog . windows Security and Protection(Logon and Authentication) . windows密码强制安全策略 . PAM(Pluggabl ...

  8. Matlab tips and tricks

    matlab tips and tricks and ... page overview: I created this page as a vectorization helper but it g ...

  9. 修改Matlab 2012b默认工作路径

    MATLAB的路径有多种,这里只讲一下启动时设置成MATLAB的用户的默认工作路径. 本人不想去改MATLAB的原来系统文件,而是尽量利用startup.m.这个文件默认在'/home/r/文档/MA ...

随机推荐

  1. 利用Photos 框架搭建美图秀秀相册选择器

    简介:Photos框架是iOS8.0后推出的一个新的用于对系统相册进行相关操作的,在iOS8.0之前,开发中只能使用AssetsLibrary框架来访问移动设备的图片库.本文中不再对AssetsLib ...

  2. CSS中定义CLASS时,中间有空格和每空格的区别

    css选择器的格式,规定不带空格的选择条件之间是“且”关系,带空格的是“父子”关系,并且可以是非直接的“父子”关系 <style> .e1.e2 { background-color:ye ...

  3. win7修改护眼色

    一. 手动修改 记得qq管家有一个功能就是护眼模式 那如何不通过第三方软件修复系统护眼色呢.百度后我在此记录下: 1.在桌面右键单击,选择“个性化”,在下面找到如图所示,点击进去 2.高级外观设置 3 ...

  4. MIT 6.828 JOS学习笔记3. Exercise 1.2

    这篇博文是对Lab 1中的Exercise 2的解答~ Lab 1 Exercise 2: 使用GDB的'si'命令,去追踪ROM BIOS几条指令,并且试图去猜测,它是在做什么.但是不需要把每个细节 ...

  5. JS中对象排序

    详细代码如下: var s=[{name:"abc",value:10},{name:"dbc",value:5},{name:"acc", ...

  6. Python爬虫学习(1): urllib的使用

    1.urllib.urlopen 打开一个url的方法,返回一个文件对象,然后可以进行类似文件对象的操作 In [1]: import urllibIn [2]: file = urllib.urlo ...

  7. 洛谷 P2701 [USACO5.3]巨大的牛棚Big Barn Label:二维数组前缀和 你够了 这次我用DP

    题目背景 (USACO 5.3.4) 题目描述 农夫约翰想要在他的正方形农场上建造一座正方形大牛棚.他讨厌在他的农场中砍树,想找一个能够让他在空旷无树的地方修建牛棚的地方.我们假定,他的农场划分成 N ...

  8. Qt里的slot

    昨天出了一个小bug, 一直调都没调出来, 今天仔细看了下, 发现出错的原因了. 我在用osgEarth的时候, 用到一个类MapCatalogWidget, 觉得它不够用, 就把这个类给改了下, 添 ...

  9. HTML结构化

    目的:为开发页面时有一套明确的页面结构化实施方案,提高开发效率: HTML结构化指的其实就是使用HTML语义化标签根据web标准书写具有明确结构逻辑的HTML代码的一种思路: 说白了重点就是:页面实际 ...

  10. JS运算符

    JS运算符: 使用的运算符的时候不需要声明变量,运算符非变量:1.算术运算符 + - * / % (%为取余数运算符) (自增运算符++) (自减运算符 --) + 运算符作用:1.数值相加 2.字符 ...