Class Shake.NullShake<S extends Solution<S,I>,I extends Instance>

java.lang.Object
es.urjc.etsii.grafo.shake.Shake<S,I>
es.urjc.etsii.grafo.shake.Shake.NullShake<S,I>
Type Parameters:
S - Solution class
I - Instance class
Enclosing class:
Shake<S extends Solution<S,I>,I extends Instance>

public static class Shake.NullShake<S extends Solution<S,I>,I extends Instance> extends Shake<S,I>
Do nothing shake
  • Constructor Details

    • NullShake

      public NullShake()
  • Method Details

    • shake

      public S shake(S 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<S extends Solution<S,I>,I extends Instance>
      Parameters:
      solution - Solution to shake
      k - shake strength
      Returns:
      shaken solution. Shaken, not stirred.