Class TSPTWModel
java.lang.Object
org.ddolib.examples.nolayer.tsptw.TSPTWModel
- All Implemented Interfaces:
Model<TSPTWState>
Base model for the Traveling Salesman Problem with Time Windows (TSPTW), using the no-layer
modeling API.
Bundles a TSPTWProblem instance together with a fast lower bound (summing, for each
city still to visit, its least-cost incident edge) used to guide and prune the search.
-
Constructor Summary
ConstructorsConstructorDescriptionTSPTWModel(TSPTWProblem problem) Creates a new model for the given TSPTW instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns a heuristic that estimates a lower bound on the objective value for a given state.problem()Returns the optimization problem instance associated with this model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ddolib.nolayer.modeling.Model
debugMode, dominance, initialSolution, setInitialSolution, verbosityLevel
-
Constructor Details
-
TSPTWModel
Creates a new model for the given TSPTW instance.- Parameters:
problem- the TSPTW instance to solve
-
-
Method Details
-
problem
Description copied from interface:ModelReturns the optimization problem instance associated with this model.- Specified by:
problemin interfaceModel<TSPTWState>- Returns:
- the
Problemdefining the structure, transitions, and objective function
-
lowerBound
Description copied from interface:ModelReturns a heuristic that estimates a lower bound on the objective value for a given state.- Specified by:
lowerBoundin interfaceModel<TSPTWState>- Returns:
- the
FastLowerBoundheuristic
-