SolverContext.FindAllowedValues Method (IEnumerable<DecisionBinding>, Func, Void)
[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)
Syntax
'Declaration
Public Sub FindAllowedValues ( _
decisions As IEnumerable(Of DecisionBinding), _
queryAbort As Func, _
ParamArray directives As Void _
)
public void FindAllowedValues(
IEnumerable<DecisionBinding> decisions,
Func queryAbort,
params void directives
)
public:
void FindAllowedValues(
IEnumerable<DecisionBinding^>^ decisions,
Func^ queryAbort,
... void directives
)
member FindAllowedValues :
decisions:IEnumerable<DecisionBinding> *
queryAbort:Func *
directives:unit -> unit
public function FindAllowedValues(
decisions : IEnumerable<DecisionBinding>,
queryAbort : Func,
... directives : Void
)
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.
Remarks
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.
.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.