Class ExampleTSPTWShake

java.lang.Object
es.urjc.etsii.grafo.shake.Shake<TSPTWSolution, TSPTWInstance>
es.urjc.etsii.grafo.tsptw.shake.ExampleTSPTWShake

public class ExampleTSPTWShake extends Shake<TSPTWSolution, TSPTWInstance>
  • Constructor Details

    • ExampleTSPTWShake

      public ExampleTSPTWShake()
  • Method Details

    • shake

      public TSPTWSolution shake(TSPTWSolution solution, int k)
      Shake / perturbate a feasible solution. Shake methods usually have two steps: 1. Modify solution following a given strategy, may make it infeasible 2. Repair the solution to ensure it is feasible before returning it
      Specified by:
      shake in class Shake<TSPTWSolution, TSPTWInstance>
      Parameters:
      solution - Solution to modify
      k - shake strength
      Returns:
      feasible solution after shaking (and repairing, if required)