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
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshake
(__RNAME__Solution solution, int k) Shake / perturbate a feasible solution.
-
Constructor Details
-
Example__RNAME__Shake
public Example__RNAME__Shake()
-
-
Method Details
-
shake
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 classShake<__RNAME__Solution,
__RNAME__Instance> - Parameters:
solution
- Solution to modifyk
- shake strength- Returns:
- feasible solution after shaking (and repairing, if required)
-