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.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)

Syntax

'Declaration
Public Sub LoadModel ( _
    format As FileFormat, _
    path As String _
)
public void LoadModel(
    FileFormat format,
    string path
)
public:
void LoadModel(
    FileFormat format, 
    String^ path
)
member LoadModel : 
        format:FileFormat * 
        path:string -> unit 
public function LoadModel(
    format : FileFormat, 
    path : String
)

Parameters

  • path
    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.

Remarks

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.

File

Supported suffixes

Core

.cor, .core

Time

.tim, .time

Stoch

.sto, .stoch

.NET Framework Security

See Also

Reference

SolverContext Class

LoadModel Overload

Microsoft.SolverFoundation.Services Namespace