org.optaplanner.core.impl.exhaustivesearch.node.comparator
Class BreadthFirstNodeComparator
java.lang.Object
org.optaplanner.core.impl.exhaustivesearch.node.comparator.BreadthFirstNodeComparator
- All Implemented Interfaces:
- Comparator<ExhaustiveSearchNode>
public class BreadthFirstNodeComparator
- extends Object
- implements Comparator<ExhaustiveSearchNode>
Investigate nodes layer by layer: investigate shallower nodes first.
This results in horrible memory scalability.
A typical ScoreBounder
's ScoreBounder.calculateOptimisticBound(ScoreDirector, Score, int)
will be weak, which results in horrible performance scalability too.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BreadthFirstNodeComparator
public BreadthFirstNodeComparator(boolean scoreBounderEnabled)
compare
public int compare(ExhaustiveSearchNode a,
ExhaustiveSearchNode b)
- Specified by:
compare
in interface Comparator<ExhaustiveSearchNode>
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.