Class Example__RNAME__Shake

java.lang.Object
es.urjc.etsii.grafo.shake.Shake<__RNAME__Solution,__RNAME__Instance>
es.urjc.etsii.grafo.__RNAME__.shake.Example__RNAME__Shake

public class Example__RNAME__Shake extends Shake<__RNAME__Solution,__RNAME__Instance>
  • Constructor Details

    • Example__RNAME__Shake

      public Example__RNAME__Shake()
  • Method Details

    • shake

      public __RNAME__Solution shake(__RNAME__Solution 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<__RNAME__Solution,__RNAME__Instance>
      Parameters:
      solution - Solution to modify
      k - shake strength
      Returns:
      feasible solution after shaking (and repairing, if required)