Class FLPSwapNeigh.SwapMove

Enclosing class:
FLPSwapNeigh

public static class FLPSwapNeigh.SwapMove extends FLPMove
  • Constructor Details

    • SwapMove

      public SwapMove(FLPSolution s, int row1, int pos1, int row2, int pos2)
    • SwapMove

      public SwapMove(FLPSolution s, int row1, int pos1, int row2, int pos2, double cost)
  • Method Details

    • swapCost

      public static double swapCost(FLPSolution solution, int row1, int pos1, int row2, int pos2)
    • consecutiveSwapCost

      public static double consecutiveSwapCost(FLPSolution solution, int rowIdx, int leftIndex, int rightIndex)
    • _execute

      protected FLPSolution _execute(FLPSolution solution)
      Description copied from class: Move
      Executes the proposed move, to be implemented by each move type
      Specified by:
      _execute in class Move<FLPSolution, FLPInstance>
    • equals

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

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