Interface ReversibleAnnealingMove<S extends AnnealingSolution<S>>

Type Parameters:
S - solution type
All Superinterfaces:
AnnealingMove<S>
All Known Subinterfaces:
DeltaEnergyMove<S>
All Known Implementing Classes:
TspMove

public interface ReversibleAnnealingMove<S extends AnnealingSolution<S>> extends AnnealingMove<S>
An in-place annealing move that can restore the exact prior solution when a proposal is rejected.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(S solution)
    Apply this move in place.
    void
    undo(S solution)
    Restore the solution to its state immediately before apply(S).
  • Method Details

    • apply

      void apply(S solution)
      Apply this move in place.
    • undo

      void undo(S solution)
      Restore the solution to its state immediately before apply(S).