Package es.urjc.etsii.grafo.create
Class Reconstructive<S extends Solution<S,I>,I extends Instance>
java.lang.Object
es.urjc.etsii.grafo.create.Constructive<S,I>
es.urjc.etsii.grafo.create.Reconstructive<S,I>
- Type Parameters:
S
- Solution classI
- Instance class
- Direct Known Subclasses:
GRASPConstructive
public abstract class Reconstructive<S extends Solution<S,I>,I extends Instance>
extends Constructive<S,I>
Represents a constructive method that can rebuild solutions after they have been partially destroyed,
or any solution in general that it is not fully constructed.
An example use case is in IteratedGreedy and similar algorithms, applied after the destruction phase.
If your method does not work if the solution given as a parameter can be partially built, do NOT extend this class,
and use Constructive instead.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class es.urjc.etsii.grafo.create.Constructive
Constructive.NullConstructive<S extends Solution<S,
I>, I extends Instance> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract S
reconstruct
(S solution) Rebuild a partially assigned / partially destroyed solutionMethods inherited from class es.urjc.etsii.grafo.create.Constructive
construct, nul, toString
-
Constructor Details
-
Reconstructive
public Reconstructive()
-
-
Method Details
-
reconstruct
Rebuild a partially assigned / partially destroyed solution- Parameters:
solution
- solution partially built- Returns:
- valid solution completely built
-