OptaPlanner distribution 6.2.1-SNAPSHOT

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

java.lang.Object
  extended by org.optaplanner.examples.vehiclerouting.domain.solver.DepotDistanceCustomerDifficultyWeightFactory
All Implemented Interfaces:
SelectionSorterWeightFactory<VehicleRoutingSolution,Customer>

public class DepotDistanceCustomerDifficultyWeightFactory
extends Object
implements SelectionSorterWeightFactory<VehicleRoutingSolution,Customer>

On large datasets, the constructed solution looks like a Matryoshka doll.


Nested Class Summary
static class DepotDistanceCustomerDifficultyWeightFactory.DepotDistanceCustomerDifficultyWeight
           
 
Constructor Summary
DepotDistanceCustomerDifficultyWeightFactory()
           
 
Method Summary
 Comparable createSorterWeight(VehicleRoutingSolution vehicleRoutingSolution, Customer customer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DepotDistanceCustomerDifficultyWeightFactory

public DepotDistanceCustomerDifficultyWeightFactory()
Method Detail

createSorterWeight

public Comparable createSorterWeight(VehicleRoutingSolution vehicleRoutingSolution,
                                     Customer customer)
Specified by:
createSorterWeight in interface SelectionSorterWeightFactory<VehicleRoutingSolution,Customer>
Parameters:
vehicleRoutingSolution - never null, the Solution to which the selection belongs or applies to
customer - never null, a PlanningEntity, a planningValue, a Move or a Selector
Returns:
never null, for example a Integer, Double or a more complex Comparable

OptaPlanner distribution 6.2.1-SNAPSHOT

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