Export (0) Print
Expand All

SolverContext.LoadModel Method (FileFormat, String)

Solver Foundation 3.0

[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)

public void LoadModel(
	FileFormat format,
	string path
)

Parameters

format
Type: Microsoft.SolverFoundation.Services.FileFormat
The file format for the model: OML, MPS, or SMPS.
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.

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

Show:
© 2014 Microsoft