Package es.urjc.etsii.grafo.bmssc.create
Class BMSSCListManager
java.lang.Object
es.urjc.etsii.grafo.create.grasp.GRASPListManager<AssignMove,BMSSCSolution,BMSSCInstance>
es.urjc.etsii.grafo.bmssc.create.BMSSCListManager
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
beforeGRASP
(BMSSCSolution solution) Initialize solution before GRASP algorithm is run F.e: In the case of clustering algorithms, usually each cluster needs to have at least one point, different solutions types may require different initializationbuildInitialCandidateList
(BMSSCSolution solution) Generate initial candidate list.updateCandidateList
(BMSSCSolution solution, AssignMove move, List<AssignMove> candidateList, int index) Update candidate list after each movement.Methods inherited from class es.urjc.etsii.grafo.create.grasp.GRASPListManager
afterGRASP, nul, toString
-
Constructor Details
-
BMSSCListManager
-
-
Method Details
-
beforeGRASP
Description copied from class:GRASPListManager
Initialize solution before GRASP algorithm is run F.e: In the case of clustering algorithms, usually each cluster needs to have at least one point, different solutions types may require different initialization- Overrides:
beforeGRASP
in classGRASPListManager<AssignMove,
BMSSCSolution, BMSSCInstance> - Parameters:
solution
- Solution to initialize before running the GRASP constructive method
-
buildInitialCandidateList
Description copied from class:GRASPListManager
Generate initial candidate list.- Specified by:
buildInitialCandidateList
in classGRASPListManager<AssignMove,
BMSSCSolution, BMSSCInstance> - Parameters:
solution
- Current solution- Returns:
- an UNSORTED candidate list
-
updateCandidateList
public List<AssignMove> updateCandidateList(BMSSCSolution solution, AssignMove move, List<AssignMove> candidateList, int index) Description copied from class:GRASPListManager
Update candidate list after each movement. The list will be sorted by the constructor.- Specified by:
updateCandidateList
in classGRASPListManager<AssignMove,
BMSSCSolution, BMSSCInstance> - 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, where the best candidate is on the first position and the worst in the last
-