Class RandomMovement

java.lang.Object
es.urjc.etsii.grafo.shake.Shake<VRPODSolution,VRPODInstance>
es.urjc.etsii.grafo.vrpod.destructives.RandomMovement

public class RandomMovement extends Shake<VRPODSolution,VRPODInstance>
  • Constructor Details

  • Method Details

    • shake

      public VRPODSolution shake(VRPODSolution solution, int k)
      Description copied from class: Shake
      Shake the solution. Use k to calculate how powerful the shake should be in your implementation. Can be as simple as number of elements to remove, or to swap. Whatever you want.
      Specified by:
      shake in class Shake<VRPODSolution,VRPODInstance>
      Parameters:
      solution - Solution to shake
      k - shake strength
      Returns:
      shaken solution. Shaken, not stirred.
    • iteration

      public void iteration(VRPODSolution s)
      Parameters:
      s - current solution
    • toString

      public String toString()
      Overrides:
      toString in class Object