OptaPlanner distribution 6.0.1-SNAPSHOT

org.optaplanner.benchmark.impl.ranking
Class WorstScoreSolverBenchmarkRankingComparator

java.lang.Object
  extended by org.optaplanner.benchmark.impl.ranking.WorstScoreSolverBenchmarkRankingComparator
All Implemented Interfaces:
Serializable, Comparator<SolverBenchmark>

public class WorstScoreSolverBenchmarkRankingComparator
extends Object
implements Comparator<SolverBenchmark>, Serializable

This ranking Comparator orders a SolverBenchmark by its worst Score. It minimizes the worst case scenario.

See Also:
Serialized Form

Constructor Summary
WorstScoreSolverBenchmarkRankingComparator()
           
 
Method Summary
 int compare(SolverBenchmark a, SolverBenchmark b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

WorstScoreSolverBenchmarkRankingComparator

public WorstScoreSolverBenchmarkRankingComparator()
Method Detail

compare

public int compare(SolverBenchmark a,
                   SolverBenchmark b)
Specified by:
compare in interface Comparator<SolverBenchmark>

OptaPlanner distribution 6.0.1-SNAPSHOT

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.