SolverContext.LoadModel Method (FileFormat, TextReader)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Loads a model from a file.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Sub LoadModel ( _
format As FileFormat, _
reader As TextReader _
)
public void LoadModel(
FileFormat format,
TextReader reader
)
public:
void LoadModel(
FileFormat format,
TextReader^ reader
)
member LoadModel :
format:FileFormat *
reader:TextReader -> unit
public function LoadModel(
format : FileFormat,
reader : TextReader
)
Parameters
- format
Type: Microsoft.SolverFoundation.Services.FileFormat
The file format for the model: OML, MPS, or SMPS.
- reader
Type: System.IO.TextReader
A reader that can read a sequential series of characters.
.NET Framework Security
- 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.