Difference between revisions of "LpRead"

 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:Optimization Functions]]
 
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
 
[[Category:Doc Status D]] <!-- For Lumina use, do not change -->
   
+
 
= LpRead(filename'', vars, constraints, format'') =
+
''Deprecated as of [[Analytica 4.3]]. Renamed to [[OptRead]].''
 +
 
 +
== 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:
 
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)
+
:<code>"LP"</code> (default)
* "MPS"
+
:<code>"MPS"</code>
* "LPFML"
+
:<code>"LPFML"</code>
  
 
In most cases, your file will have been written by a previous call to [[LpWrite]] or [[LpWriteIIS]].
 
In most cases, your file will have been written by a previous call to [[LpWrite]] or [[LpWriteIIS]].
 +
 +
If only a file name without a folder path, or a relative file path is provided for «filename», it is interpreted relative to the [[CurrentDataFolder]].
  
 
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.
 
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 =
+
==History==
 +
Introduced in [[What's new in Analytica 4.0?|Analytica 4.0]].
 +
 
 +
Deprecated as of [[Analytica 4.3]].  Renamed to [[OptRead]].
  
 +
== See Also ==
 
* [[LpWrite]]
 
* [[LpWrite]]
 
* [[LpWriteIIS]]
 
* [[LpWriteIIS]]
 +
* [[CurrentDataFolder]]

Latest revision as of 03:36, 29 January 2016


Deprecated as of Analytica 4.3. Renamed to OptRead.

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.

If only a file name without a folder path, or a relative file path is provided for «filename», it is interpreted relative to the CurrentDataFolder.

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.

History

Introduced in Analytica 4.0.

Deprecated as of Analytica 4.3. Renamed to OptRead.

See Also

Comments


You are not allowed to post comments.