org.optaplanner.examples.vehiclerouting.domain.solver
Class DepotDistanceCustomerDifficultyWeightFactory
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DepotDistanceCustomerDifficultyWeightFactory
public DepotDistanceCustomerDifficultyWeightFactory()
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 tocustomer - never null, a PlanningEntity, a planningValue, a Move or a Selector
- Returns:
- never null, for example a
Integer, Double or a more complex Comparable
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.