Reads a quadratic programming model from an MPS file.
Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public static QuadraticProgram ReadQuadraticProgram(
Public Shared Function ReadQuadraticProgram (
path As String
) As QuadraticProgram
static QuadraticProgram^ ReadQuadraticProgram(
static member ReadQuadraticProgram :
path : string -> QuadraticProgram
- 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 quadratic 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.
The MPS format is also used to specify Integer Programming (IP) and Mixed Integer Programming (MIP) problems.
The LinearProgram class does not support these types of problems. When integer variables are
encountered in an MPS file, a NotSupportedException is thrown.
Supported in: 6.0, 5.x, 4.x