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
-
Field Summary
Fields inherited from class Move
solutionVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TSPTWSolution_execute(TSPTWSolution solution) Executes the proposed move, to be implemented by each move type.booleandoubleGet the movement value, represents how much does the move changes the f.o of a solution if executedinthashCode()toString()Returns a String representation of the current movement.
-
Constructor Details
-
TSPTWGRASPMove
-
-
Method Details
-
_execute
Description copied from class:TSPTWBaseMoveExecutes 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:
_executein classTSPTWBaseMove- Parameters:
solution- Solution where this move will be applied to.- Returns:
- modified solution
-
getScoreChange
public double getScoreChange()Description copied from class:TSPTWBaseMoveGet the movement value, represents how much does the move changes the f.o of a solution if executed- Specified by:
getScoreChangein classTSPTWBaseMove- Returns:
- f.o change
-
toString
Description copied from class:TSPTWBaseMoveReturns a String representation of the current movement. Only use relevant fields. Tip: Default IntelliJ implementation is fine- Specified by:
toStringin classTSPTWBaseMove- Returns:
- human readable string
-
equals
Description copied from class:TSPTWBaseMove- Specified by:
equalsin classTSPTWBaseMove
-
hashCode
public int hashCode()Description copied from class:TSPTWBaseMove- Specified by:
hashCodein classTSPTWBaseMove
-