overhauled physics engine
This commit is contained in:
Vendored
+60
@@ -0,0 +1,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) paramC.m
|
||||
>> OPTION=paramC;
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user