Model.AddDecision Method (RecourseDecision)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Adds a recourse decision to a model (for stochastic programming).
Namespace: Microsoft.SolverFoundation.Services
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
Syntax
'Declaration
Public Sub AddDecision ( _
decision As RecourseDecision _
)
public void AddDecision(
RecourseDecision decision
)
public:
void AddDecision(
RecourseDecision^ decision
)
member AddDecision :
decision:RecourseDecision -> unit
public function AddDecision(
decision : RecourseDecision
)
Parameters
- decision
Type: Microsoft.SolverFoundation.Services.RecourseDecision
A recourse decision for the model.
Exceptions
Exception | Condition |
---|---|
ModelException | The decision was already added to a different model. |
.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.