Class DestroyRebuild<S extends Solution<S,I>,I extends Instance>

java.lang.Object
es.urjc.etsii.grafo.shake.Shake<S,I>
es.urjc.etsii.grafo.shake.DestroyRebuild<S,I>

public class DestroyRebuild<S extends Solution<S,I>,I extends Instance> extends Shake<S,I>
  • Constructor Details

  • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object