NormalDistributionParameter.SetBinding<T> Method (IEnumerable<T>, String, String, array<String[])

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

Binds parameters to data using the specified properties.

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

Syntax

'Declaration
Public Sub SetBinding(Of T) ( _
    binding As IEnumerable(Of T), _
    meanField As String, _
    stdField As String, _
    ParamArray indexFields As String() _
)
public void SetBinding<T>(
    IEnumerable<T> binding,
    string meanField,
    string stdField,
    params string[] indexFields
)
public:
generic<typename T>
void SetBinding(
    IEnumerable<T>^ binding, 
    String^ meanField, 
    String^ stdField, 
    ... array<String^>^ indexFields
)
member SetBinding : 
        binding:IEnumerable<'T> * 
        meanField:string * 
        stdField:string * 
        indexFields:string[] -> unit 
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • meanField
    Type: System.String
    The name of the property of each input object that contains the mean for the distribution.
  • stdField
    Type: System.String
    The name of the property of each input object that contains the value of the standard deviation for the distribution.
  • indexFields
    Type: array<System.String[]
    The names of the properties of each input object that contain the indexes of the data elements, one for each index set that is provided when the parameter is created.

Remarks

Each parameter must be bound before the model is solved. The data must be in the form of a sequence of objects, where each object has properties for the value and indexes of the data element. The data is read each time the Context.Solve method is called.

.NET Framework Security

See Also

Reference

NormalDistributionParameter Class

SetBinding Overload

Microsoft.SolverFoundation.Services Namespace