Class TSPTWFlb

java.lang.Object
org.ddolib.examples.nolayer.tsptw.TSPTWFlb
All Implemented Interfaces:
FastLowerBound<TSPTWState>

public class TSPTWFlb extends Object implements FastLowerBound<TSPTWState>
Fast lower bound for the Traveling Salesman Problem with Time Windows (TSPTW), using the no-layer modeling API.

The bound sums, for each city that still must be visited (plus the return to the origin), the least-cost edge incident to that city. It ignores time windows and is therefore a relaxation of the true remaining cost.

  • Constructor Details

    • TSPTWFlb

      public TSPTWFlb(TSPTWProblem problem)
      Creates a new fast lower bound for the given TSPTW instance.
      Parameters:
      problem - the TSPTW instance to bound
  • Method Details

    • fastLowerBound

      public double fastLowerBound(TSPTWState state)
      Description copied from interface: FastLowerBound
      Computes a lower bound on the remaining cost from the given state to reach any valid target state.
      Specified by:
      fastLowerBound in interface FastLowerBound<TSPTWState>
      Parameters:
      state - the current state
      Returns:
      a lower bound on the remaining cost