Class TSPTWFlb
java.lang.Object
org.ddolib.examples.nolayer.tsptw.TSPTWFlb
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionTSPTWFlb(TSPTWProblem problem) Creates a new fast lower bound for the given TSPTW instance. -
Method Summary
Modifier and TypeMethodDescriptiondoublefastLowerBound(TSPTWState state) Computes a lower bound on the remaining cost from the given state to reach any valid target state.
-
Constructor Details
-
TSPTWFlb
Creates a new fast lower bound for the given TSPTW instance.- Parameters:
problem- the TSPTW instance to bound
-
-
Method Details
-
fastLowerBound
Description copied from interface:FastLowerBoundComputes a lower bound on the remaining cost from the given state to reach any valid target state.- Specified by:
fastLowerBoundin interfaceFastLowerBound<TSPTWState>- Parameters:
state- the current state- Returns:
- a lower bound on the remaining cost
-