TspTwFlb
Implementation of a fast lower bound for the Traveling Salesperson Problem with Time Windows (TSPTW).
This class provides a heuristic lower bound on the total tour cost starting from a given TspTwState. The lower bound is computed by summing the shortest available edges from the current position, including all mandatory nodes that must be visited and a selection of optional nodes if needed to complete the tour. The bound also considers returning to the depot and respects time window constraints.
If any mandatory node is unreachable from the current state, or if completing the tour is impossible within the time windows, the bound returns scala.Int.MaxValue to indicate infeasibility.
Precomputes the cheapest outgoing edge for each node to speed up repeated lower bound calculations.
Value parameters
- problem
-
the associated TSPTW problem instance
Attributes
- Graph
-
- Supertypes
-
trait FastLowerBound[TspTwState]trait FastLowerBound[TspTwState]class Objecttrait Matchableclass Any