Class FLPAddListManager
java.lang.Object
es.urjc.etsii.grafo.create.grasp.GRASPListManager<FLPAddNeigh.AddMove, FLPSolution, FLPInstance>
es.urjc.etsii.grafo.flayouts.constructives.grasp.FLPAddListManager
public class FLPAddListManager
extends GRASPListManager<FLPAddNeigh.AddMove, FLPSolution, FLPInstance>
-
Nested Class Summary
Nested classes/interfaces inherited from class GRASPListManager
GRASPListManager.NullGraspListManager<M,S, I> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildInitialCandidateList(FLPSolution solution) Generate initial candidate list.updateCandidateList(FLPSolution solution, FLPAddNeigh.AddMove move, List<FLPAddNeigh.AddMove> candidateList, int index) Update candidate list after each movement.Methods inherited from class GRASPListManager
afterGRASP, beforeGRASP, nul, toString
-
Constructor Details
-
FLPAddListManager
public FLPAddListManager()
-
-
Method Details
-
buildInitialCandidateList
Generate initial candidate list. The list will be sorted if necessary by the constructive method.- Specified by:
buildInitialCandidateListin classGRASPListManager<FLPAddNeigh.AddMove, FLPSolution, FLPInstance>- Parameters:
solution- Current solution- Returns:
- a candidate list
-
updateCandidateList
public List<FLPAddNeigh.AddMove> updateCandidateList(FLPSolution solution, FLPAddNeigh.AddMove move, List<FLPAddNeigh.AddMove> candidateList, int index) Update candidate list after each movement. The list will be sorted by the constructor.- Specified by:
updateCandidateListin classGRASPListManager<FLPAddNeigh.AddMove, FLPSolution, FLPInstance>- Parameters:
solution- Current solution, move has been already appliedmove- Chosen movecandidateList- original candidate listindex- index of the chosen move in the candidate list- Returns:
- an UNSORTED candidate list
-