SolverContext.FindAllowedValues Method (IEnumerable<DecisionBinding>, Func, Void)

Solver Foundation 3.0

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

Finds all allowed values for a set of decisions.

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

public void FindAllowedValues(
	IEnumerable<DecisionBinding> decisions,
	Func queryAbort,
	params void directives
)

Parameters

decisions
Type: System.Collections.Generic.IEnumerable<DecisionBinding>
The decisions for which to find allowed values.
queryAbort
Type: System.Func<TResult>
A function that is called periodically during the computation to determine whether the user canceled the operation.
directives
Type: System.Void
A set of directives to use during the solve process.

An allowed value is one that is part of some feasible solution to the problem. This method is much more efficient than enumerating all feasible solutions to find the allowed values.

Show: