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