Difference between revisions of "LpWrite"

m (adding doc status category stub page)
Line 2: Line 2:
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
   
 
   
{{stub}}
+
= LpWrite(lp,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 [[LpWrite]] in a text editor.
 +
 
 +
The file written by [[LpWrite]] can be read back in as an LP using [[LpRead]].
 +
 
 +
[[LpWrite]] is not able to write textual specifications for quadratic (QP or QCP) or non-linear (NLP) problems.
 +
 
 +
= See Also =
 +
 
 +
* [[LpRead]]
 +
* [[LpWriteIIS]]

Revision as of 18:56, 28 January 2010


LpWrite(lp,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 LpWrite in a text editor.

The file written by LpWrite can be read back in as an LP using LpRead.

LpWrite 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.