sdpWrite

Write an optiprob structure to a SDPA Dense or Sparse file, or SeDuMi MAT file

Syntax

sdpWrite(prob,filename)

sdpWrite(prob,filename,filetype)

write(optiObj)

Description

Write a LP or SDP to a mathematical description file. Nonlinear problems are not supported.

sdpWrite(prob,filename) writes the problem described by the optiprob structure prob to the file filename. If you only supply a filename the file will be written to the current Matlab directory. Otherwise if you supply a full path + filename, it will be written to that location. You must supply the file extension using this method.

sdpWrite(prob,filename,filetype) allows the user to enter just the filename (without an extension), and manually specify the file type (e.g. 'SDPA').

write(optiObj,filename,filetype) allows the above method to be called directly from a OPTI object.

Available File Types

File Type Extension Notes
'SDPA-S' .dat-s Sparse Format
'SDPA' .dat Dense Format
'SeDuMi' .mat