Difference between revisions of "OptWrite"

(OptWrite(opt,filename, format))
m (OptWrite(opt,filename, format))
Line 6: Line 6:
 
Writes a linear program definition to a file.  Three textual formats are supported, which can be selected using the optional «format» parameter:
 
Writes a linear program definition to a file.  Three textual formats are supported, which can be selected using the optional «format» parameter:
 
* "LP" (default)
 
* "LP" (default)
* "MPS"
+
* "[http://lpsolve.sourceforge.net/5.0/mps-format.htm MPS]]"  
 
* "LPFML"
 
* "LPFML"
  

Revision as of 19:48, 11 February 2011


OptWrite(opt,filename, format)

Writes a linear program definition to a file. Three textual formats are supported, which can be selected using the optional «format» parameter:

  • "LP" (default)
  • "MPS]"
  • "LPFML"

The «filename» is interpreted relative to the CurrentDataDirectory.

When debugging an LP, to figure out if you defined your constraints and decision variables as intended, it can sometimes be helpful to view the file written by OptWrite in a text editor.

The file written by OptWrite can be read back in as an LP using OptRead.

OptWrite is not able to write textual specifications for quadratic (QP or QCP) or non-linear (NLP) problems.

See Also

Comments


You are not allowed to post comments.