OptaPlanner distribution 6.2.1-SNAPSHOT

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

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

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

On large datasets, the constructed solution looks like pizza slices.


Nested Class Summary
static class DepotAngleCustomerDifficultyWeightFactory.DepotAngleCustomerDifficultyWeight
           
 
Constructor Summary
DepotAngleCustomerDifficultyWeightFactory()
           
 
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

DepotAngleCustomerDifficultyWeightFactory

public DepotAngleCustomerDifficultyWeightFactory()
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.