Uses of Interface
io.github.nhtc2005.alns.model.Solution
Packages that use Solution
Package
Description
Provides candidate acceptance policies and their search context.
Runs ALNS searches and provides results, statistics, and iteration callbacks.
Defines solution visit tracking policies to support reward eligibility.
Defines problem-specific solutions and candidate outcome statuses.
Defines destroy, repair, and optional local search operators.
Defines operator selection policies and their search context and feedback.
Provides search termination criteria and their search context.
-
Uses of Solution in io.github.nhtc2005.alns.acceptance
Classes in io.github.nhtc2005.alns.acceptance with type parameters of type SolutionModifier and TypeClassDescriptionfinal recordAcceptanceContext<S extends Solution<S>>Provides the search state for a candidate acceptance decision.interfaceAcceptanceCriterion<S extends Solution<S>>Decides whether to accept a candidate solution during an ALNS iteration.final classHillClimbing<S extends Solution<S>>Accepts only candidates whose objective is not worse than the current solution's objective.final classSimulatedAnnealing<S extends Solution<S>>Accepts candidates probabilistically using simulated annealing for minimization.Methods in io.github.nhtc2005.alns.acceptance with type parameters of type SolutionModifier and TypeMethodDescriptionstatic <S extends Solution<S>>
SimulatedAnnealing<S>SimulatedAnnealing.autofit(double initialObjectiveValue, double worse, double acceptProbability, long numIterations) Fits exponential cooling with an end temperature of1.0.static <S extends Solution<S>>
SimulatedAnnealing<S>SimulatedAnnealing.autofit(double initialObjectiveValue, double worse, double acceptProbability, long numIterations, double endTemperature) Fits exponential cooling with the specified end temperature.static <S extends Solution<S>>
SimulatedAnnealing<S>SimulatedAnnealing.autofit(double initialObjectiveValue, double worse, double acceptProbability, long numIterations, double endTemperature, SimulatedAnnealing.CoolingMethod method) Fits a cooling schedule to an initial acceptance probability.static <S extends Solution<S>>
SimulatedAnnealing<S>SimulatedAnnealing.autofit(double initialObjectiveValue, double worse, double acceptProbability, long numIterations, SimulatedAnnealing.CoolingMethod method) Fits the specified cooling method with an end temperature of1.0. -
Uses of Solution in io.github.nhtc2005.alns.core
Classes in io.github.nhtc2005.alns.core with type parameters of type SolutionModifier and TypeClassDescriptionfinal classRuns Adaptive Large Neighborhood Search with configurable operators and search policies.static final classAlns.Builder<S extends Solution<S>>Configures a solver, using uniform random selection unless a selector is supplied.final recordAlnsResult<S extends Solution<S>>Contains the best solution and measurements from a completed ALNS search.interfaceIterationCallback<S extends Solution<S>>Observes completed ALNS iterations synchronously on the search thread.final recordIterationContext<S extends Solution<S>>Provides the search state after a completed ALNS iteration.Methods in io.github.nhtc2005.alns.core with type parameters of type SolutionModifier and TypeMethodDescriptionstatic <S extends Solution<S>>
Alns.Builder<S>Alns.builder()Returns a builder with statistics, visit tracking, local search, and callbacks disabled. -
Uses of Solution in io.github.nhtc2005.alns.memory
Classes in io.github.nhtc2005.alns.memory with type parameters of type SolutionModifier and TypeClassDescriptionfinal classHashSetVisitedSolutionTracker<K,S extends Solution<S>> Tracks visits by storing extracted keys in a hash set.interfaceSolutionKey<K,S extends Solution<S>> Extracts a key identifying a solution's structure, independently of its objective value.interfaceVisitedSolutionTracker<S extends Solution<S>>Tracks solution visits to support reward eligibility during an ALNS search.Methods in io.github.nhtc2005.alns.memory with type parameters of type SolutionModifier and TypeMethodDescriptionstatic <S extends Solution<S>>
VisitedSolutionTracker<S>VisitedSolutionTracker.disabled()Returns a stateless tracker that stores nothing and treats every solution as new. -
Uses of Solution in io.github.nhtc2005.alns.model
Classes in io.github.nhtc2005.alns.model with type parameters of type Solution -
Uses of Solution in io.github.nhtc2005.alns.operator
Classes in io.github.nhtc2005.alns.operator with type parameters of type SolutionModifier and TypeInterfaceDescriptioninterfaceDestroyOperator<S extends Solution<S>>Removes or disrupts part of a solution before repair in an ALNS iteration.interfaceLocalSearch<S extends Solution<S>>Optionally refines a feasible repaired solution before candidate evaluation.interfaceRepairOperator<S extends Solution<S>>Repairs a destroyed solution to produce a candidate for an ALNS iteration.interfaceSolutionOperator<S extends Solution<S>>Transforms a solution during an ALNS iteration. -
Uses of Solution in io.github.nhtc2005.alns.selection
Classes in io.github.nhtc2005.alns.selection with type parameters of type SolutionModifier and TypeClassDescriptionfinal recordOperatorSelectionContext<S extends Solution<S>>Provides the search state for selecting an operator pair.final recordOperatorSelectionFeedback<S extends Solution<S>>Reports a candidate's outcome to the operator selector.interfaceOperatorSelector<S extends Solution<S>>Selects a destroy and repair operator pair for each ALNS iteration.final classRandomOperatorSelector<S extends Solution<S>>Selects destroy and repair operators independently and uniformly using the search's random generator.final classRouletteWheelOperatorSelector<S extends Solution<S>>Selects destroy and repair operators independently in proportion to their weights.final classSegmentedRouletteWheelOperatorSelector<S extends Solution<S>>Selects operators by weight and updates selected operators' weights after each fixed-length feedback segment. -
Uses of Solution in io.github.nhtc2005.alns.stopping
Classes in io.github.nhtc2005.alns.stopping with type parameters of type SolutionModifier and TypeClassDescriptionfinal classAnyOfStoppingCriterion<S extends Solution<S>>Stops when any contained criterion requests termination.final classMaxIterations<S extends Solution<S>>Stops once the number of completed iterations reaches the configured limit.final classMaxRuntime<S extends Solution<S>>Stops when elapsed search time reaches the configured duration.final classNoImprovement<S extends Solution<S>>Stops after a configured number of iterations without a strictly better best objective.final recordStoppingContext<S extends Solution<S>>Provides the search state when checking a stopping criterion.interfaceStoppingCriterion<S extends Solution<S>>Decides whether an ALNS search should stop before the next iteration.