Class GRASPListManager.NullGraspListManager<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>

java.lang.Object
es.urjc.etsii.grafo.create.grasp.GRASPListManager<M,S,I>
es.urjc.etsii.grafo.create.grasp.GRASPListManager.NullGraspListManager<M,S,I>
Type Parameters:
M - Move class
S - Solution class
I - Instance class
Enclosing class:
GRASPListManager<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>

public static class GRASPListManager.NullGraspListManager<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance> extends GRASPListManager<M,S,I>
Do nothing GRASPListManager
  • Constructor Details

    • NullGraspListManager

      public NullGraspListManager()
  • Method Details

    • buildInitialCandidateList

      public List<M> buildInitialCandidateList(S solution)
      Description copied from class: GRASPListManager
      Generate initial candidate list.
      Specified by:
      buildInitialCandidateList in class GRASPListManager<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>
      Parameters:
      solution - Current solution
      Returns:
      an UNSORTED candidate list
    • updateCandidateList

      public List<M> updateCandidateList(S solution, M move, List<M> 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 class GRASPListManager<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>
      Parameters:
      solution - Current solution, move has been already applied
      move - Chosen move
      candidateList - original candidate list
      index - 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