Class ShipmentInsertionCalculatorFlex
java.lang.Object
com.graphhopper.jsprit.core.algorithm.recreate.AbstractInsertionCalculator
com.graphhopper.jsprit.core.algorithm.recreate.ShipmentInsertionCalculatorFlex
- All Implemented Interfaces:
JobInsertionCostsCalculator
-
Constructor Summary
ConstructorsConstructorDescriptionShipmentInsertionCalculatorFlex(VehicleRoutingTransportCosts routingCosts, VehicleRoutingActivityCosts activityCosts, ActivityInsertionCostsCalculator activityInsertionCostsCalculator, ConstraintManager constraintManager) -
Method Summary
Modifier and TypeMethodDescriptiongetInsertionData(VehicleRoute currentRoute, Job jobToInsert, Vehicle newVehicle, double newVehicleDepartureTime, Driver newDriver, double bestKnownCosts) Calculates the marginal cost of inserting job i locally.voidsetEvalIndexDelivery(int evalIndexDelivery) voidsetEvalIndexPickup(int evalIndexPickup) voidsetJobActivityFactory(JobActivityFactory activityFactory) toString()Methods inherited from class com.graphhopper.jsprit.core.algorithm.recreate.AbstractInsertionCalculator
addActivitiesAndVehicleSwitch, addActivityAndVehicleSwitch, checkRouteConstraints, createEndActivity, createNoInsertionFoundResult, createStartActivity, fulfilledMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.graphhopper.jsprit.core.algorithm.recreate.JobInsertionCostsCalculator
getAllInsertionPositions, getAllInsertionPositions
-
Constructor Details
-
ShipmentInsertionCalculatorFlex
public ShipmentInsertionCalculatorFlex(VehicleRoutingTransportCosts routingCosts, VehicleRoutingActivityCosts activityCosts, ActivityInsertionCostsCalculator activityInsertionCostsCalculator, ConstraintManager constraintManager)
-
-
Method Details
-
setEvalIndexPickup
public void setEvalIndexPickup(int evalIndexPickup) -
setEvalIndexDelivery
public void setEvalIndexDelivery(int evalIndexDelivery) -
setJobActivityFactory
-
toString
-
getInsertionData
public InsertionData getInsertionData(VehicleRoute currentRoute, Job jobToInsert, Vehicle newVehicle, double newVehicleDepartureTime, Driver newDriver, double bestKnownCosts) Calculates the marginal cost of inserting job i locally. This is based on the assumption that cost changes can entirely covered by only looking at the predecessor i-1 and its successor i+1.
-