File: CommandList.txt

package info (click to toggle)
sdpa 7.3.20-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,688 kB
  • sloc: cpp: 15,021; sh: 4,870; makefile: 318; ansic: 81
file content (60 lines) | stat: -rw-r--r-- 2,110 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
This is a short list for SDPA-M command.

(1) read_data.m
>> [mDIM,nBLOCK,bLOCKsTRUCT,c,F] = read_data('example1.dat-s');
will read 'example1.dat-s' into the SDPA-M structures.

(2) param.m
>> OPTION=param;
will prepare default parameter. You can change the parameter
by this OPTION structure.

(3) sdpam.m
>> [objVal,x,X,Y,INFO] = sdpam(mDIM,nBLOCK,bLOCKsTRUCT,c,F);
or
>> [objVal,x,X,Y,INFO] = sdpam(mDIM,nBLOCK,bLOCKsTRUCT,c,F,OPTION);
will solve the SDP.

(4) gensdpafile.m
>> gensdpafile('myexample.dat-s',mDIM,nBLOCK,bLOCKsTRUCT,c,F);
will output the SDPA-M structure into 'myexample.dat-s'.

(5) initial_point.m
>> [x0,X0,Y0] = initial_point('example1.ini-s', mDIM, nBLOCK, bLOCKsTRUCT);
will read an initial point from 'example1.ini-s'.
You need to prepare mDIM, nBLOCK, bLOCKsTRUCT by read_data.m

(6) SDPAToSedumi.m
>> [At,b,c,K,blockStruct] = SDPAToSedumi('example1.dat-s');
will read 'example1.dat-s' into SeDuMi structures with
an additional structure 'blockStruct'.

(7) sedumiwrap.m
>> [x,y,info]=sedumiwrap(A,b,c,K,pars,OPTION);
will solve the SDP given in SeDuMi strucutres.
The 5th argument 'pars' will be ignored
and the 6th argument can be prepared by param.m

(8) SedumiToSDPA.m
>> SedumiToSDPA('myexample.dat-s',A,b,c,K,'%8.16e');
will output SeDuMi structures into 'myexample.dat-s'.
'%8.16' determines the output style by printf-format.

(9) read_output.m
>> [objVal,x,X,Y,INFO] = read_output('example1.result',mDIM,nBLOCK,bLOCKsTRUCT);
will read the result file generated by SDPA.
If you solve 'example1.dat-s' by
$ ./sdpa example1.dat-s example1.result
then this result can be read by
>> [mDIM,nBLOCK,bLOCKsTRUCT,c,F] = read_data('example1.dat-s');
>> [objVal,x,X,Y,INFO] = read_output('example1.result',mDIM,nBLOCK,bLOCKsTRUCT);

(10) read_outputSedumi.m 
>> [x,y,info] = read_outputSedumi('example1.result',m,K);
will read the result file generated by SDPA.
If you solve 'example1.dat-s' by
$ ./sdpa example1.dat-s example1.result
then this result can be read by
>> [At,b,c,K,blockStruct] = SDPAToSedumi('example1.dat-s');
>> [x,y,info] = read_outputSedumi('example1.result',m,K);