Package es.urjc.etsii.grafo.create
Class RandomConstructive<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>
java.lang.Object
es.urjc.etsii.grafo.create.Constructive<S,I>
es.urjc.etsii.grafo.create.RandomConstructive<M,S,I>
- Type Parameters:
S
- Solution typeI
- Instance type
public class RandomConstructive<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>
extends Constructive<S,I>
Executes random movements from the given neighborhood until there are no moves left to execute
-
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
ConstructorsConstructorDescriptionRandomConstructive
(RandomizableNeighborhood<M, S, I> neighborhood) Create a random constructive that will build solution by choosing random movements from the given neighborhood -
Method Summary
Methods inherited from class es.urjc.etsii.grafo.create.Constructive
nul, toString
-
Constructor Details
-
RandomConstructive
Create a random constructive that will build solution by choosing random movements from the given neighborhood- Parameters:
neighborhood
- neighborhood to use during construction
-
-
Method Details
-
construct
Build a solution. Start with an empty solution, end when the solution is valid.
-