Difference between revisions of "LpRead"

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}}
+
= LpRead(filename'', vars, constraints, format'') =
 +
 
 +
Reads a Linear Program specification from a file.  The file must be in one of the standard recognized formats, specified in the optional «format» parameter:
 +
* "LP" (default)
 +
* "MPS"
 +
* "LPFML"
 +
 
 +
In most cases, your file will have been written by a previous call to [[LpWrite]] or [[LpWriteIIS]].
 +
 
 +
You may optionally pass in indexes for «vars» and «constraints».  If you don't pass these in, the function will automatically create local indexes of the appropriate size to index the decision variables and constraints in the problem.  If you do pass these, they will be used as the index for the decision variables and for the constraints, but must be of the correct length or an error results.
 +
 
 +
= See Also =
 +
 
 +
* [[LpWrite]]
 +
* [[LpWriteIIS]]

Revision as of 18:52, 28 January 2010


LpRead(filename, vars, constraints, format)

Reads a Linear Program specification from a file. The file must be in one of the standard recognized formats, specified in the optional «format» parameter:

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

In most cases, your file will have been written by a previous call to LpWrite or LpWriteIIS.

You may optionally pass in indexes for «vars» and «constraints». If you don't pass these in, the function will automatically create local indexes of the appropriate size to index the decision variables and constraints in the problem. If you do pass these, they will be used as the index for the decision variables and for the constraints, but must be of the correct length or an error results.

See Also

Comments


You are not allowed to post comments.