Class ShipmentInsertionCalculatorFlex

java.lang.Object
com.graphhopper.jsprit.core.algorithm.recreate.AbstractInsertionCalculator
com.graphhopper.jsprit.core.algorithm.recreate.ShipmentInsertionCalculatorFlex
All Implemented Interfaces:
JobInsertionCostsCalculator

public final class ShipmentInsertionCalculatorFlex extends AbstractInsertionCalculator
  • Constructor Details

  • Method Details

    • setEvalIndexPickup

      public void setEvalIndexPickup(int evalIndexPickup)
    • setEvalIndexDelivery

      public void setEvalIndexDelivery(int evalIndexDelivery)
    • setJobActivityFactory

      public void setJobActivityFactory(JobActivityFactory activityFactory)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.