Class RuinAndRecreateModule

java.lang.Object
com.graphhopper.jsprit.core.algorithm.module.RuinAndRecreateModule
All Implemented Interfaces:
SearchStrategyModule

public class RuinAndRecreateModule extends Object implements SearchStrategyModule
  • Constructor Details

  • Method Details

    • setRandom

      public void setRandom(Random random)
      To make overall results reproducible, make sure this class is provided with the "global" random number generator.
      Parameters:
      random -
    • setMinUnassignedJobsToBeReinserted

      public void setMinUnassignedJobsToBeReinserted(int minUnassignedJobsToBeReinserted)
      Minimum number of unassigned jobs that is reinserted in each iteration.
      Parameters:
      minUnassignedJobsToBeReinserted -
    • setProportionOfUnassignedJobsToBeReinserted

      public void setProportionOfUnassignedJobsToBeReinserted(double proportionOfUnassignedJobsToBeReinserted)
      Proportion of unassigned jobs that is reinserted in each iteration.
      Parameters:
      proportionOfUnassignedJobsToBeReinserted -
    • runAndGetSolution

      public VehicleRoutingProblemSolution runAndGetSolution(VehicleRoutingProblemSolution previousVrpSolution)
      Specified by:
      runAndGetSolution in interface SearchStrategyModule
    • getName

      public String getName()
      Specified by:
      getName in interface SearchStrategyModule
    • addModuleListener

      public void addModuleListener(SearchStrategyModuleListener moduleListener)
      Specified by:
      addModuleListener in interface SearchStrategyModule
    • getInsertion

      public InsertionStrategy getInsertion()
    • getRuin

      public RuinStrategy getRuin()