Uses of Class
org.ddolib.common.solver.stat.SearchStatistics
Packages that use SearchStatistics
Package
Description
Provides classes for tracking and representing the statistics and status of a search process in a
solver.
Provides interfaces and classes for defining termination criteria (stop criteria) for search
processes.
Input file reader utility.
This package contains the interfaces and abstract classes that must be implemented as problem
specific classes to model a problem with the layered API (fixed, known number of variables).
This package implements the Acs (Anytime Column Search) solver for the layered API.
This package implements the A* solver for the layered API.
This package implements the Anytime Weighted A* solver for the layered API.
This package contains solvers using the DDO (Branch-and-Bound with decision diagrams) algorithm
for the layered API:
SequentialSolver (full
DDO with relaxed and restricted MDDs), ExactSolver (exact MDD only), and RelaxationSolver / RestrictionSolver (a single relaxed/restricted MDD,
mainly used internally and for testing bounds).This package implements the LNS (Large Neighborhood Search) solver, layered API only.
This package contains the interfaces and abstract classes that must be implemented as problem
specific classes to model a problem with the no-layer API (no fixed number of variables,
termination detected via
Problem.isTarget(Object)).This package implements the Acs (Anytime Column Search) solver for the no-layer API.
This package implements the A* solver for the no-layer API, together with its own
SubProblem, representing a node in the A* search
tree.This package implements the Anytime Weighted A* solver for the no-layer API.
This package contains
DdoSolver, the DDO
(Branch-and-Bound with decision diagrams) solver for the no-layer API.-
Uses of SearchStatistics in org.ddolib.common.solver.stat
Subclasses of SearchStatistics in org.ddolib.common.solver.statModifier and TypeClassDescriptionclassClass tracking statistics specific to A* variants.classClass tracking statistics specific to Decision Diagram Optimization (DDO) solver.Methods in org.ddolib.common.solver.stat that return SearchStatisticsModifier and TypeMethodDescriptionSearchStatistics.addNbDominancePruning(int nbPruning) Creates and returns a copy of this statistics instance with additional nodes pruned by the dominance, for instance those pruned during the compilation of a decision diagram.SearchStatistics.addNbFastLowerBoundPruning(int nbPruning) Creates and returns a copy of this statistics instance with additional nodes pruned by the fast lower bound, for instance those pruned during the compilation of a decision diagram.SearchStatistics.addNodeCounts(long nbExpanded, long nbGenerated) Returns a new SearchStatistics instance with the given numbers of expanded and generated nodes added to the current ones.SearchStatistics.copy()Creates and returns a copy of this statistics instance.protected abstract SearchStatisticsSearchStatistics.createSpecificInstance()Creates a new instance of the specific subclass with initial values.SearchStatistics.incrementNbDominancePruning()Creates and returns a copy of this statistics instance with one more node pruned by the dominance.SearchStatistics.incrementNbFastLowerBoundPruning()Creates and returns a copy of this statistics instance with one more node pruned by the fast lower bound.SearchStatistics.incrementNbIter()Returns a new SearchStatistics instance with the iteration count incremented by one.SearchStatistics.updateBestBound(double bound) Returns a new SearchStatistics instance with an updated best bound.SearchStatistics.updateFrontierMaxSize(int frontierSize) Returns a new SearchStatistics instance with an updated maximum frontier size.SearchStatistics.updateGap(double gap) Returns a new SearchStatistics instance with an updated optimality gap.SearchStatistics.updateIncumbent(double incumbent, double gap) Returns a new SearchStatistics instance with an updated incumbent value and gap.SearchStatistics.updateNodeCounts(long nbExpanded, long nbGenerated) Returns a new SearchStatistics instance with the given numbers of expanded and generated nodes (totals since the beginning of the search).SearchStatistics.updateStatus(SearchStatus status) Returns a new SearchStatistics instance with an updated search status.SearchStatistics.updateTime(long time) Returns a new SearchStatistics instance with an updated current time. -
Uses of SearchStatistics in org.ddolib.common.solver.stopcriterion
Methods in org.ddolib.common.solver.stopcriterion with parameters of type SearchStatisticsModifier and TypeMethodDescriptiondefault booleanAstarStopCriterion.test(SearchStatistics stats) default booleanDdoStopCriterion.test(SearchStatistics stats) -
Uses of SearchStatistics in org.ddolib.common.util.io
Methods in org.ddolib.common.util.io with parameters of type SearchStatisticsModifier and TypeMethodDescriptionstatic voidSolutionPrinter.printSolution(SearchStatistics stats, int[] solution) Prints a newly found solution and its associated statistics to the standard output.static voidSolutionPrinter.printSolution(SearchStatistics stats, List<Integer> solution) Prints a newly found solution and its associated statistics to the standard output. -
Uses of SearchStatistics in org.ddolib.layered.modeling
Method parameters in org.ddolib.layered.modeling with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionstatic <T> SolutionSolvers.minimizeAcs(AcsModel<T> model, BiConsumer<int[], SearchStatistics> onSolution) Solves the given model using ACS and calls the callback when a new incumbent is found.static <T> SolutionSolvers.minimizeAcs(AcsModel<T> model, Predicate<SearchStatistics> limit) Solves the given model using ACS, stopping when the limit condition is satisfied.static <T> SolutionSolvers.minimizeAcs(AcsModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving an ACS model with custom stopping condition and solution callback.static <T> SolutionSolvers.minimizeAcs(AcsModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving an ACS model with custom stopping condition and solution callback.static <T> SolutionSolvers.minimizeAstar(Model<T> model, BiConsumer<int[], SearchStatistics> onSolution) Solves the given model using A* and calls back when new incumbent solutions are found.static <T> SolutionSolvers.minimizeAstar(Model<T> model, Predicate<SearchStatistics> limit) Solves the given model using A* with a specified stop condition.static <T> SolutionSolvers.minimizeAstar(Model<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a model with the A* search algorithm, with custom limit and callback.static <T> SolutionSolvers.minimizeAstar(Model<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a model with the A* search algorithm, with custom limit and callback.static <T> SolutionSolvers.minimizeAwAStar(AwAstarModel<T> model, BiConsumer<int[], SearchStatistics> onSolution) Solves the given model using AWA* and calls the callback when a new incumbent is found.static <T> SolutionSolvers.minimizeAwAStar(AwAstarModel<T> model, Predicate<SearchStatistics> limit) Solves the given model using AWA*, stopping when the limit condition is satisfied.static <T> SolutionSolvers.minimizeAwAStar(AwAstarModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a model with the Anytime Weighted A* search algorithm, with custom limit and callback.static <T> SolutionSolvers.minimizeAwAStar(AwAstarModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a model with the Anytime Weighted A* search algorithm, with custom limit and callback.static <T> SolutionSolvers.minimizeDdo(DdoModel<T> model, BiConsumer<int[], SearchStatistics> onSolution) Solves the given model using DDO and triggers a callback each time a new incumbent solution is found.static <T> SolutionSolvers.minimizeDdo(DdoModel<T> model, Predicate<SearchStatistics> limit) Solves the given model using DDO, stopping when the provided limit condition becomes true.static <T> SolutionSolvers.minimizeDdo(DdoModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a DDO model with a custom stop condition and a solution callback.static <T> SolutionSolvers.minimizeDdo(DdoModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a DDO model with a custom stop condition and a solution callback.static <T> SolutionSolvers.minimizeExact(ExactModel<T> model, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving an DDO model with solution callback.static <T> SolutionSolvers.minimizeLns(LnsModel<T> model, Predicate<SearchStatistics> limit) Runs a Large Neighborhood Search (LNS) on the specified model with a termination condition but without processing intermediate solutions.static <T> SolutionSolvers.minimizeLns(LnsModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Runs a Large Neighborhood Search (LNS) on the specified model with a given termination condition and a callback for each solution found.static <T> SolutionSolvers.minimizeLns(LnsModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Runs a Large Neighborhood Search (LNS) on the specified model with a given termination condition and a callback for each solution found.static <T> SolutionSolvers.relaxedDdo(DdoModel<T> model, BiConsumer<int[], SearchStatistics> onSolution) Solves the given model by compiling a single relaxed decision diagram and triggers a callback each time a new incumbent solution is found.static <T> SolutionSolvers.relaxedDdo(DdoModel<T> model, Predicate<SearchStatistics> limit) Solves the given model by compiling a single relaxed decision diagram, stopping when the provided limit condition becomes true.static <T> SolutionSolvers.relaxedDdo(DdoModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a model by compiling a single relaxed decision diagram, with a custom stop condition and a solution callback.static <T> SolutionSolvers.relaxedDdo(DdoModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a model by compiling a single relaxed decision diagram, with a custom stop condition and a solution callback.static <T> SolutionSolvers.restrictedDdo(DdoModel<T> model, BiConsumer<int[], SearchStatistics> onSolution) Solves the given model by compiling a single restricted decision diagram and triggers a callback each time a new incumbent solution is found.static <T> SolutionSolvers.restrictedDdo(DdoModel<T> model, Predicate<SearchStatistics> limit) Solves the given model by compiling a single restricted decision diagram, stopping when the provided limit condition becomes true.static <T> SolutionSolvers.restrictedDdo(DdoModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a model by compiling a single restricted decision diagram, with a custom stop condition and a solution callback.static <T> SolutionSolvers.restrictedDdo(DdoModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Core method for solving a model by compiling a single restricted decision diagram, with a custom stop condition and a solution callback. -
Uses of SearchStatistics in org.ddolib.layered.solver
Methods in org.ddolib.layered.solver that return SearchStatisticsModifier and TypeMethodDescriptionSolution.statistics()Returns the statistics associated to this solution.Method parameters in org.ddolib.layered.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.Solver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.Constructors in org.ddolib.layered.solver with parameters of type SearchStatisticsModifierConstructorDescriptionSolution(Optional<Set<Decision>> decisions, SearchStatistics statistics) Constructs a solution given a set of decision andSearchStatisticson this set. -
Uses of SearchStatistics in org.ddolib.layered.solving.acs.core.solver
Method parameters in org.ddolib.layered.solving.acs.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionAcsSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the problem using the ACS strategy.AcsSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the problem using the ACS strategy. -
Uses of SearchStatistics in org.ddolib.layered.solving.astar.core.solver
Method parameters in org.ddolib.layered.solving.astar.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionAStarSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.AStarSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy. -
Uses of SearchStatistics in org.ddolib.layered.solving.awastar.core.solver
Method parameters in org.ddolib.layered.solving.awastar.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionAwAstarSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.AwAstarSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy. -
Uses of SearchStatistics in org.ddolib.layered.solving.ddo.core.solver
Method parameters in org.ddolib.layered.solving.ddo.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionExactSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the problem by compiling an exact decision diagram (MDD).ExactSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the problem by compiling an exact decision diagram (MDD).RelaxationSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Solves the model by compiling a single relaxed decision diagram.RelaxationSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Solves the model by compiling a single relaxed decision diagram.RestrictionSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Solves the model by compiling a single restricted decision diagram.RestrictionSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Solves the model by compiling a single restricted decision diagram.SequentialSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.SequentialSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy. -
Uses of SearchStatistics in org.ddolib.layered.solving.lns.core.solver
Method parameters in org.ddolib.layered.solving.lns.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionLnsSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.LnsSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<int[], SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy. -
Uses of SearchStatistics in org.ddolib.layered.solving.startheuristic
Method parameters in org.ddolib.layered.solving.startheuristic with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionDFS.findSolution(Predicate<SearchStatistics> limit) Searches the first feasible solution. -
Uses of SearchStatistics in org.ddolib.nolayer.modeling
Method parameters in org.ddolib.nolayer.modeling with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionstatic <T> SolutionSolvers.minimizeAcs(AcsModel<T> model, BiConsumer<List<Integer>, SearchStatistics> onSolution) Solves the given model using ACS and calls the callback when a new incumbent is found.static <T> SolutionSolvers.minimizeAcs(AcsModel<T> model, Predicate<SearchStatistics> limit) Solves the given model using ACS, stopping when the limit condition is satisfied.static <T> SolutionSolvers.minimizeAcs(AcsModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Core method for solving an ACS model with custom stopping condition and solution callback.static <T> SolutionSolvers.minimizeAcs(AcsModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Core method for solving an ACS model with custom stopping condition and solution callback.static <T> SolutionSolvers.minimizeAstar(Model<T> model, BiConsumer<List<Integer>, SearchStatistics> onSolution) Solves the given model using A* and calls back when new incumbent solutions are found.static <T> SolutionSolvers.minimizeAstar(Model<T> model, Predicate<SearchStatistics> limit) Solves the given model using A* with a specified stop condition.static <T> SolutionSolvers.minimizeAstar(Model<T> model, Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Core method for solving a model with the A* search algorithm, with custom limit and callback.static <T> SolutionSolvers.minimizeAstar(Model<T> model, Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Core method for solving a model with the A* search algorithm, with custom limit and callback.static <T> SolutionSolvers.minimizeAwAstar(AwAstarModel<T> model, BiConsumer<List<Integer>, SearchStatistics> onSolution) Solves the given model using AWA* and calls the callback when a new incumbent is found.static <T> SolutionSolvers.minimizeAwAstar(AwAstarModel<T> model, Predicate<SearchStatistics> limit) Solves the given model using AWA*, stopping when the limit condition is satisfied.static <T> SolutionSolvers.minimizeAwAstar(AwAstarModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Core method for solving a model with the Anytime Weighted A* search algorithm, with a custom limit and callback.static <T> SolutionSolvers.minimizeAwAstar(AwAstarModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Core method for solving a model with the Anytime Weighted A* search algorithm, with a custom limit and callback.static <T> SolutionSolvers.minimizeDdo(DdoModel<T> model, BiConsumer<List<Integer>, SearchStatistics> onSolution) Solves the given model using DDO and triggers a callback each time a new incumbent solution is found.static <T> SolutionSolvers.minimizeDdo(DdoModel<T> model, Predicate<SearchStatistics> limit) Solves the given model using DDO, stopping when the provided limit condition becomes true.static <T> SolutionSolvers.minimizeDdo(DdoModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Core method for solving a DDO model with a custom stop condition and a solution callback.static <T> SolutionSolvers.minimizeDdo(DdoModel<T> model, Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Core method for solving a DDO model with a custom stop condition and a solution callback. -
Uses of SearchStatistics in org.ddolib.nolayer.solver
Methods in org.ddolib.nolayer.solver that return SearchStatisticsModifier and TypeMethodDescriptionSolution.statistics()Returns the statistics associated to this solution.Method parameters in org.ddolib.nolayer.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.Solver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.Constructors in org.ddolib.nolayer.solver with parameters of type SearchStatisticsModifierConstructorDescriptionSolution(List<Integer> solution, SearchStatistics statistics) Creates a new solution wrapping the given labels and search statistics. -
Uses of SearchStatistics in org.ddolib.nolayer.solving.acs.core.solver
Method parameters in org.ddolib.nolayer.solving.acs.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionAcsSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.AcsSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy. -
Uses of SearchStatistics in org.ddolib.nolayer.solving.astar.core.solver
Method parameters in org.ddolib.nolayer.solving.astar.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionAStarSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.AStarSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy. -
Uses of SearchStatistics in org.ddolib.nolayer.solving.awastar.core.solver
Method parameters in org.ddolib.nolayer.solving.awastar.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionAwAstarSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.AwAstarSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy. -
Uses of SearchStatistics in org.ddolib.nolayer.solving.ddo.core.solver
Method parameters in org.ddolib.nolayer.solving.ddo.core.solver with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionDdoSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy.DdoSolver.minimize(Predicate<SearchStatistics> limit, BiConsumer<List<Integer>, SearchStatistics> onSolution) Minimizes the objective function according to the solver strategy. -
Uses of SearchStatistics in org.ddolib.nolayer.solving.startheuristic
Method parameters in org.ddolib.nolayer.solving.startheuristic with type arguments of type SearchStatisticsModifier and TypeMethodDescriptionDFS.findSolution(Predicate<SearchStatistics> limit) Searches the first feasible solution.