This topic has not yet been rated - Rate this topic

GeometricDistributionParameter.SetBinding<T> Method (IEnumerable<T>, 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 the parameter to data.

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
public void SetBinding<T>(
	IEnumerable<T> binding,
	string successProbabilityField
)

Type Parameters

T

Parameters

binding
Type: System.Collections.Generic.IEnumerable<T>
A sequence of objects, one for each data element.
successProbabilityField
Type: System.String
Success probability of the distribution.
ExceptionCondition
InvalidModelDataException

A property or field cannot be found.

Each parameter must be bound before solving. 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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.