Class DRFPRandomConstructive
java.lang.Object
es.urjc.etsii.grafo.create.Constructive<FLPSolution, FLPInstance>
es.urjc.etsii.grafo.create.Reconstructive<FLPSolution, FLPInstance>
es.urjc.etsii.grafo.flayouts.constructives.DRFPRandomConstructive
Generate random solutions for validation purposes
-
Nested Class Summary
Nested classes/interfaces inherited from class Constructive
Constructive.NullConstructive<S,I> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstruct(FLPSolution solution) Build a solution.reconstruct(FLPSolution solution) Rebuild a partially assigned / partially destroyed solutionMethods inherited from class Constructive
nul, toString
-
Constructor Details
-
DRFPRandomConstructive
public DRFPRandomConstructive()
-
-
Method Details
-
construct
Description copied from class:ConstructiveBuild a solution. Start with an empty solution, end when the solution is valid.- Specified by:
constructin classConstructive<FLPSolution, FLPInstance>- Parameters:
solution- Empty solution, the result of calling the constructor.- Returns:
- A valid solution that fulfills all the problem constraints.
-
reconstruct
Description copied from class:ReconstructiveRebuild a partially assigned / partially destroyed solution- Specified by:
reconstructin classReconstructive<FLPSolution, FLPInstance>- Parameters:
solution- solution partially built- Returns:
- valid solution completely built
-