Class BreadthFirstNodeComparator<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.exhaustivesearch.node.comparator.BreadthFirstNodeComparator<Solution_>
- All Implemented Interfaces:
Comparator<ExhaustiveSearchNode<Solution_>>
public class BreadthFirstNodeComparator<Solution_>
extends Object
implements Comparator<ExhaustiveSearchNode<Solution_>>
Investigate nodes layer by layer: investigate shallower nodes first.
This results in horrible memory scalability.
A typical ScoreBounder's ScoreBounder.calculateOptimisticBound(ScoreDirector, InnerScore)
will be weak, which results in horrible performance scalability too.
-
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
-
BreadthFirstNodeComparator
public BreadthFirstNodeComparator(boolean scoreBounderEnabled)
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Solution_>
-