SolverContext.LoadModel Method (FileFormat, String)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Loads a model in OML, MPS, or .SMPS format.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
- Type: Microsoft.SolverFoundation.Services.FileFormat
The file format for the model: OML, MPS, or SMPS.
- Type: System.String
For MPS and OML, the full path of the file, including the file name.
For SMPS, the path can be the path of the core file or the path of a folder that contains the core, stoch, and time files.
If the path of the core file is provided, the stoch and time files should be in the same directory as the core file, and their prefixes should be the same as that of the core file.
If the path of a folder is provided, the folder should contain the three files (core, stoch, and time) with prefixes that are identical to the folder name.
The following table shows the required suffixes for the files.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.