Class ExampleTSPTWShake
java.lang.Object
es.urjc.etsii.grafo.shake.Shake<TSPTWSolution, TSPTWInstance>
es.urjc.etsii.grafo.tsptw.shake.ExampleTSPTWShake
-
Nested Class Summary
Nested classes/interfaces inherited from class Shake
Shake.NullShake<S,I> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshake(TSPTWSolution solution, int k) Shake / perturbate a feasible solution.
-
Constructor Details
-
ExampleTSPTWShake
public ExampleTSPTWShake()
-
-
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:
shakein classShake<TSPTWSolution, TSPTWInstance>- Parameters:
solution- Solution to modifyk- shake strength- Returns:
- feasible solution after shaking (and repairing, if required)
-