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

Solver Foundation 3.0

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

Binds parameters to data.

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

public void SetBinding<T>(
	IEnumerable<T> binding,
	string meanLogField,
	string stdLogField,
	params string[] indexFields
)

Type Parameters

T

Parameters

binding
Type: System.Collections.Generic.IEnumerable<T>
A sequence of objects, one for each data element.
meanLogField
Type: System.String
The name of the property of each input object that contains the mean of the logarithm for the distribution.
stdLogField
Type: System.String
The name of the property of each input object that contains the value of the standard deviation of the logarithm for the distribution.
indexFields
Type: 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.

You must find each parameter before solving the model. 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 Solve() method is called.

Show: