Model.CreateInstance Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Creates an instance of a model.

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

Syntax

'Declaration
Public Function CreateInstance ( _
    name As String _
) As SubmodelInstance
public SubmodelInstance CreateInstance(
    string name
)
public:
SubmodelInstance^ CreateInstance(
    String^ name
)
member CreateInstance : 
        name:string -> SubmodelInstance 
public function CreateInstance(
    name : String
) : SubmodelInstance

Parameters

Return Value

Type: Microsoft.SolverFoundation.Services.SubmodelInstance
An instance of the model, including all decisions, constraints, and goals.

Remarks

The root model created by the CreateModel() method cannot call the CreateInstance method.

.NET Framework Security

See Also

Reference

Model Class

Microsoft.SolverFoundation.Services Namespace