java.lang.Object
org.maxicp.search.LimitedDiscrepancyBranching
Branching combinator
that ensures that that the alternatives created are always within the
discrepancy limit.
The discrepancy of an alternative generated
for a given node is the distance from the left most alternative.
The discrepancy of a node is the sum of the discrepancy of its ancestors.
-
Constructor Summary
ConstructorsConstructorDescriptionLimitedDiscrepancyBranching(Supplier<Runnable[]> branching, int maxDiscrepancy) Creates a discprepancy combinator on a given branching. -
Method Summary
-
Constructor Details
-
LimitedDiscrepancyBranching
Creates a discprepancy combinator on a given branching.- Parameters:
branching- the branching on which to apply the discrepancy combinatormaxDiscrepancy- the maximum discrepancy limit. Any node exceeding that limit is pruned.
-
-
Method Details