Package org.ddolib.examples.nolayer.tsp
Class TSPModel
java.lang.Object
org.ddolib.examples.nolayer.tsp.TSPModel
Base model for the Traveling Salesman Problem (TSP), using the no-layer modeling API.
Bundles a TSPProblem instance together with the TSPFlb fast lower bound used
to guide and prune the search.
-
Constructor Summary
ConstructorsConstructorDescriptionTSPModel(TSPProblem problem) Creates a new model for the given TSP 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
-
TSPModel
Creates a new model for the given TSP instance.- Parameters:
problem- the TSP instance to solve
-
-
Method Details
-
problem
Description copied from interface:ModelReturns the optimization problem instance associated with this model. -
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<TSPState>- Returns:
- the
FastLowerBoundheuristic
-