Class TSPNoLayerDominanceChecker

java.lang.Object
org.ddolib.examples.nolayer.tsp.TSPNoLayerDominanceChecker
All Implemented Interfaces:
NoLayerDominanceChecker<TSPState>

public class TSPNoLayerDominanceChecker extends Object implements NoLayerDominanceChecker<TSPState>
Dominance checker for the Travelling Salesperson Problem (TSP). Correctly implements subset dominance relations across different cardinalities.
  • Constructor Details

    • TSPNoLayerDominanceChecker

      public TSPNoLayerDominanceChecker()
      Creates a new dominance checker with an empty dominance front.
  • Method Details

    • updateDominance

      public boolean updateDominance(TSPState state, double value)
      Description copied from interface: NoLayerDominanceChecker
      Evaluates if a state can be pruned based on previously seen states.
      Specified by:
      updateDominance in interface NoLayerDominanceChecker<TSPState>
      Parameters:
      state - the current state to check
      value - the objective value associated with reaching the state
      Returns:
      true if the state is dominated and should be pruned; false otherwise
    • clear

      public void clear()
      Description copied from interface: NoLayerDominanceChecker
      Clears the internally cached states used for dominance checking. This is useful to reset the checker's state between solver iterations.
      Specified by:
      clear in interface NoLayerDominanceChecker<TSPState>