OptaPlanner distribution 6.2.1-SNAPSHOT

org.optaplanner.examples.vehiclerouting.domain.solver
Class LatitudeCustomerDifficultyComparator

java.lang.Object
  extended by org.optaplanner.examples.vehiclerouting.domain.solver.LatitudeCustomerDifficultyComparator
All Implemented Interfaces:
Serializable, Comparator<Customer>

public class LatitudeCustomerDifficultyComparator
extends Object
implements Comparator<Customer>, Serializable

On large datasets, the constructed solution looks like a zebra crossing.

See Also:
Serialized Form

Constructor Summary
LatitudeCustomerDifficultyComparator()
           
 
Method Summary
 int compare(Customer a, Customer 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

LatitudeCustomerDifficultyComparator

public LatitudeCustomerDifficultyComparator()
Method Detail

compare

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

OptaPlanner distribution 6.2.1-SNAPSHOT

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