Reads a linear programming model from an MPS file.
Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public static LinearProgram Read(
Public Shared Function Read (
path As String
) As LinearProgram
static LinearProgram^ Read(
static member Read :
path : string -> LinearProgram
- Type: SystemString
The path to the MPS file.
contained in the file specified by path
The data is not in correct MPS format.
The data contains features, such as integer variables, that are not supported.
|IOException||An I/O error has occurred.|
|UnauthorizedAccessException||The caller does not have the required permission.|
|ArgumentException||path is a zero-length string, contains only white space,
or contains one or more invalid characters as defined by InvalidPathChars.|
|ArgumentNullException||path is .|
|PathTooLongException||The specified path, file name, or both exceed the system-defined maximum length. For example, on Windows-based platforms, paths must be less than 248 characters, and file names must be less than 260 characters. |
|DirectoryNotFoundException||The specified path is invalid, (for example, it is on an unmapped drive). |
|FileNotFoundException||The file specified in path was not found.|
|ArgumentNullException||path is .
Use this method to read a linear program from a file in MPS format.
Several extensions of the MPS format have been defined over the years. The current implementation of
MpsReader doesn't support these extensions. A FormatException is thrown
when an unrecognized extension is found.
Supported in: 6.0, 5.x, 4.x