标签: 杂谈 |
分类: 通信专业知识 |
1. Download SeDuMi 1.1R3
[1] http://sedumi.ie.lehigh.edu/component/option,com_docman/task,cat_view/gid,69/Itemid,76/
[2] http://sedumi.ie.lehigh.edu/
-> Main Menu
-> Downloads
-> Official SeDuMi releases
-> SeDuMi 1.1R3
2. Install SeDuMi 1.1R3
[1] Copy "SeDuMi_1_1R3.zip" to "D:\Program Files\MATLAB\R2007b\"
[2] Extract "D:\Program Files\MATLAB\R2007b\SeDuMi_1_1R3.zip" to "D:\Program Files\MATLAB\R2007b\SeDuMi_1_1R3"
[3] Execute "D:\Program Files\MATLAB\R2007b\SeDuMi_1_1R3\SeDuMi_1_1\install_sedumi.m"
3. Test Sample
[1] Input source sample code
>> b=[1 4]';
>> A=[-1 1 0 1 1;0 0 -1 1 2];
>> c=[0 2 0 3.5 6];
>> [x, y, info]=sedumi(A,b,c)
[2] Output result
SeDuMi 1.1R3 by AdvOL, 2006 and Jos F. Sturm, 1998-2003.
Alg = 2: xz-corrector, Adaptive Step-Differentiation, theta = 0.250, beta = 0.500
eqs m = 2, order n = 6, dim = 6, blocks = 1
nnz(A) = 7 + 0, nnz(ADA) = 4, nnz(L) = 3
it : b*y gap delta rate t/tP* t/tD* feas cg cg prec
0 : 4.58E+001 0.000
1 : 8.27E+000 1.37E+001 0.000 0.2992 0.9000 0.9000 1.99 1 1 1.3E+000
2 : 1.15E+001 3.16E+000 0.000 0.2304 0.9000 0.9000 1.81 1 1 2.4E-001
3 : 1.19E+001 5.77E-001 0.000 0.1826 0.9000 0.9000 1.19 1 1 4.1E-002
4 : 1.20E+001 2.97E-003 0.000 0.0051 0.9990 0.9990 1.01 1 1
iter seconds digits c*x b*y
4 0.4 Inf 1.2000000000e+001 1.2000000000e+001
|Ax-b| = 0.0e+000, [Ay-c]_+ = 0.0E+000, |x|= 2.2e+000, |y|= 3.0e+000
Detailed timing (sec)
Pre IPM Post
3.205E-001 4.406E-001 1.903E-001
Max-norms: ||b||=4, ||c|| = 6,
Cholesky |add|=0, |skip| = 0, ||L.L|| = 1.80888.
x =
(1,1) 1
(5,1) 2
y =
0.0000
3.0000
info =
iter: 4
feasratio: 1
pinf: 0
dinf: 0
numerr: 0
timing: [0.3205 0.4406 0.1903]
cpusec: 0.9514
4. Configuration
[1] Computer: Compaq Presario X1000 DN623A#AB2
[2] CPU: x86 Family 6 Model 9 Stepping 5 GenuineIntel ~598 Mhz; Intel(R) Pentium(R) processor 1400MHZ
[3] Memory: 768MB DDR
[4] OS: Microsoft Windows XP Professional 5.1.2600 Service Pack 3 Build 2600
[5] MATLAB: Version 7.5.0.342(R2007b)
[6] SeDuMi: 1.1R3
5. Note
[1] SeDuMi 1.21 crashes on Matlab 2007b/WindowsXP 2002, so utilizes SeDuMi 1.1R3 with Matlab 2007b/WindowsXP 2002
[2] Please download the appropriate version for your OS and platform. Currently, the latest release, SeDuMi 1.2 is supportred only on 64 bit Linux and Matlab using 2007b. The version before that, sedumi 1.1R3 is supported on almost all 32 bit systems. Version before that are no longer supported.--The SeDuMi Team Imre Polik
--在SeDuMi主页上下了一个1.21版本,结果装不上,不知啥原因,忽然想到以前用的CVX中好像有SeDuMi,查看一下是1.2版本,想想CVX好用的,里面包含的1.2应该也可以用,但是单独安装还是不行。终于在网上找到一段The SeDuMi Team的Imre Polik的留言,才明白32位机器要用1.1R3版本,于是下载,安装,测试果然正确。嘻嘻。