Class TSPRandomConstructive
java.lang.Object
es.urjc.etsii.grafo.create.Constructive<TSPSolution,TSPInstance>
es.urjc.etsii.grafo.TSP.algorithms.constructives.TSPRandomConstructive
-
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
Methods inherited from class es.urjc.etsii.grafo.create.Constructive
nul, toString
-
Constructor Details
-
TSPRandomConstructive
public TSPRandomConstructive()
-
-
Method Details
-
construct
Description copied from class:Constructive
Build a solution. Start with an empty solution, end when the solution is valid.- Specified by:
construct
in classConstructive<TSPSolution,
TSPInstance> - Parameters:
solution
- Empty solution, the result of calling the constructor.- Returns:
- A valid solution that fulfills all the problem constraints.
-