Package es.urjc.etsii.grafo.create
Class Constructive<S extends Solution<S,I>,I extends Instance>
java.lang.Object
es.urjc.etsii.grafo.create.Constructive<S,I>
- Type Parameters:
S
- Solution classI
- Instance class
- Direct Known Subclasses:
__RNAME__RandomConstructive
,Constructive.NullConstructive
,FasterInvertedConstructive
,RandomConstructive
,Reconstructive
,SlowConstructive
,TSPRandomConstructive
Builds a new solution for the current problem. There are multiple strategies to create the solution:
Using greedy strategies, GRASP, random, etc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
No operation constructive method Returns the solution immediately without executing any operation Not included by default as an autoconfig component because most problems require a constructive method or solutions will not be valid -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Constructive
public Constructive()
-
-
Method Details
-
construct
Build a solution. Start with an empty solution, end when the solution is valid.- Parameters:
solution
- Empty solution, the result of calling the constructor.- Returns:
- A valid solution that fulfills all the problem constraints.
-
toString
-
nul
Create a no operation constructive method Returns the solution immediately without executing any operation- Type Parameters:
S
- Solution classI
- Instance class- Returns:
- Null constructive method
-