org.optaplanner.examples.tsp.domain.solver
Class DomicileAngleVisitDifficultyWeightFactory
java.lang.Object
org.optaplanner.examples.tsp.domain.solver.DomicileAngleVisitDifficultyWeightFactory
- All Implemented Interfaces:
- SelectionSorterWeightFactory<TravelingSalesmanTour,Visit>
public class DomicileAngleVisitDifficultyWeightFactory
- extends Object
- implements SelectionSorterWeightFactory<TravelingSalesmanTour,Visit>
On large datasets, the constructed solution looks like pizza slices.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DomicileAngleVisitDifficultyWeightFactory
public DomicileAngleVisitDifficultyWeightFactory()
createSorterWeight
public Comparable createSorterWeight(TravelingSalesmanTour vehicleRoutingSolution,
Visit visit)
- Specified by:
createSorterWeight
in interface SelectionSorterWeightFactory<TravelingSalesmanTour,Visit>
- Parameters:
vehicleRoutingSolution
- never null, the Solution
to which the selection belongs or applies tovisit
- 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-2015 JBoss by Red Hat. All Rights Reserved.