Class AbstractInsertionStrategy
java.lang.Object
com.graphhopper.jsprit.core.algorithm.recreate.AbstractInsertionStrategy
- All Implemented Interfaces:
InsertionStrategy
- Direct Known Subclasses:
BestInsertion,BestInsertionConcurrent,CheapestInsertion,CheapestInsertionConcurrent,PositionBasedRegretInsertion,PositionBasedRegretInsertionFast,RegretInsertion,RegretInsertionConcurrent,RegretInsertionConcurrentFast,RegretInsertionFast
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final doubleprotected static final Driverprotected static final Vehicleprotected Randomprotected VehicleRoutingProblem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(InsertionListener insertionListener) protected voidinsertJob(Job unassignedJob, InsertionData iData, VehicleRoute inRoute) insertJobs(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs) Inserts unassigned jobs into vehicle routes.abstract Collection<Job> insertUnassignedJobs(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs) voidmarkUnassigned(Job unassigned, List<String> reasons) voidremoveListener(InsertionListener insertionListener) void
-
Field Details
-
random
-
NO_NEW_DEPARTURE_TIME_YET
protected static final double NO_NEW_DEPARTURE_TIME_YET- See Also:
-
NO_NEW_VEHICLE_YET
-
NO_NEW_DRIVER_YET
-
vrp
-
-
Constructor Details
-
AbstractInsertionStrategy
-
-
Method Details
-
setRandom
-
insertJobs
public Collection<Job> insertJobs(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs) Description copied from interface:InsertionStrategyInserts unassigned jobs into vehicle routes.- Specified by:
insertJobsin interfaceInsertionStrategy- Parameters:
vehicleRoutes- existing vehicle routesunassignedJobs- jobs to be inserted
-
markUnassigned
-
insertUnassignedJobs
public abstract Collection<Job> insertUnassignedJobs(Collection<VehicleRoute> vehicleRoutes, Collection<Job> unassignedJobs) -
removeListener
- Specified by:
removeListenerin interfaceInsertionStrategy
-
getListeners
- Specified by:
getListenersin interfaceInsertionStrategy
-
addListener
- Specified by:
addListenerin interfaceInsertionStrategy
-
insertJob
-