Class RandomRemoveDestructive
java.lang.Object
es.urjc.etsii.grafo.shake.Destructive<FLPSolution, FLPInstance>
es.urjc.etsii.grafo.flayouts.shake.RandomRemoveDestructive
Partially destroys a DRFP solution by removing part of its facilities.
-
Nested Class Summary
Nested classes/interfaces inherited from class Destructive
Destructive.NullDestructive<S,I> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbulkRemove(FLPSolution solution, Set<Integer> facilitiesToRemove) destroy(FLPSolution solution, int k) Destroy a part of the solution.moveRemove(FLPSolution solution, Set<Integer> facilitiesToRemove) toString()Methods inherited from class Destructive
nul
-
Constructor Details
-
RandomRemoveDestructive
public RandomRemoveDestructive(double ratio)
-
-
Method Details
-
destroy
Description copied from class:DestructiveDestroy a part of the solution. Usually involves deassigning parts of the solution to be rebuilt later by a reconstructive method- Specified by:
destroyin classDestructive<FLPSolution, FLPInstance>- Parameters:
solution- original solutionk- destroy intensity, may be ignored by the implementing class- Returns:
- reference to the modified solution. Can be modified in placed or cloned before. // TODO clone always or not? decided by the caller?
-
bulkRemove
-
moveRemove
-
toString
-