Class TSPTWListManager.TSPTWGRASPMove

java.lang.Object
es.urjc.etsii.grafo.solution.Move<TSPTWSolution, TSPTWInstance>
es.urjc.etsii.grafo.tsptw.model.TSPTWBaseMove
es.urjc.etsii.grafo.tsptw.constructives.grasp.TSPTWListManager.TSPTWGRASPMove
Enclosing class:
TSPTWListManager

public static class TSPTWListManager.TSPTWGRASPMove extends TSPTWBaseMove
  • Constructor Details

  • Method Details

    • _execute

      protected TSPTWSolution _execute(TSPTWSolution solution)
      Description copied from class: TSPTWBaseMove
      Executes the proposed move, to be implemented by each move type. It is up to the implementation to decide if the original solution is modified in place or a new one is created by cloning the original solution and then applying the changes.

      This method should be idempotent, i.e. calling it multiple times with the same solution should return the same result
      Specified by:
      _execute in class TSPTWBaseMove
      Parameters:
      solution - Solution where this move will be applied to.
      Returns:
      modified solution
    • getScoreChange

      public double getScoreChange()
      Description copied from class: TSPTWBaseMove
      Get the movement value, represents how much does the move changes the f.o of a solution if executed
      Specified by:
      getScoreChange in class TSPTWBaseMove
      Returns:
      f.o change
    • toString

      public String toString()
      Description copied from class: TSPTWBaseMove
      Returns a String representation of the current movement. Only use relevant fields. Tip: Default IntelliJ implementation is fine
      Specified by:
      toString in class TSPTWBaseMove
      Returns:
      human readable string
    • equals

      public boolean equals(Object o)
      Description copied from class: TSPTWBaseMove
      Specified by:
      equals in class TSPTWBaseMove
    • hashCode

      public int hashCode()
      Description copied from class: TSPTWBaseMove
      Specified by:
      hashCode in class TSPTWBaseMove