Class ScoreFirstNodeComparator<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.exhaustivesearch.node.comparator.ScoreFirstNodeComparator<Solution_>
- All Implemented Interfaces:
Comparator<ExhaustiveSearchNode<Solution_>>
public class ScoreFirstNodeComparator<Solution_>
extends Object
implements Comparator<ExhaustiveSearchNode<Solution_>>
Investigate the nodes with a better optimistic bound first, then deeper nodes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ScoreFirstNodeComparator
public ScoreFirstNodeComparator(boolean scoreBounderEnabled)
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Solution_>
-