SolverContext.SaveModel Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Writes the decision values from a solution.
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Sub SaveModel ( _
format As FileFormat, _
writer As TextWriter _
)
public void SaveModel(
FileFormat format,
TextWriter writer
)
public:
void SaveModel(
FileFormat format,
TextWriter^ writer
)
member SaveModel :
format:FileFormat *
writer:TextWriter -> unit
public function SaveModel(
format : FileFormat,
writer : TextWriter
)
Parameters
- format
Type: Microsoft.SolverFoundation.Services.FileFormat
The file format for the model: OML, MPS, or SMPS.
- writer
Type: System.IO.TextWriter
A writer that can write 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.