Class RuinRecreateConstructionHeuristicPhase<Solution_>
java.lang.Object
ai.timefold.solver.core.impl.phase.AbstractPhase<Solution_>
ai.timefold.solver.core.impl.phase.AbstractPossiblyInitializingPhase<Solution_>
ai.timefold.solver.core.impl.constructionheuristic.DefaultConstructionHeuristicPhase<Solution_>
ai.timefold.solver.core.impl.heuristic.selector.move.generic.RuinRecreateConstructionHeuristicPhase<Solution_>
- All Implemented Interfaces:
ConstructionHeuristicPhase<Solution_>,PhaseLifecycleListener<Solution_>,Phase<Solution_>,PossiblyInitializingPhase<Solution_>,SolverLifecycleListener<Solution_>,EventListener
@NullMarked
public final class RuinRecreateConstructionHeuristicPhase<Solution_>
extends DefaultConstructionHeuristicPhase<Solution_>
implements ConstructionHeuristicPhase<Solution_>
-
Nested Class Summary
Nested classes/interfaces inherited from class ai.timefold.solver.core.impl.constructionheuristic.DefaultConstructionHeuristicPhase
DefaultConstructionHeuristicPhase.DefaultConstructionHeuristicPhaseBuilder<Solution_>Nested classes/interfaces inherited from class ai.timefold.solver.core.impl.phase.AbstractPossiblyInitializingPhase
AbstractPossiblyInitializingPhase.AbstractPossiblyInitializingPhaseBuilder<Solution_>Nested classes/interfaces inherited from class ai.timefold.solver.core.impl.phase.AbstractPhase
AbstractPhase.AbstractPhaseBuilder<Solution_>Nested classes/interfaces inherited from interface ai.timefold.solver.core.impl.phase.PossiblyInitializingPhase
PossiblyInitializingPhase.TerminationStatus -
Field Summary
Fields inherited from class ai.timefold.solver.core.impl.constructionheuristic.DefaultConstructionHeuristicPhase
decider, moveRepositoryFields inherited from class ai.timefold.solver.core.impl.phase.AbstractPhase
assertExpectedStepScore, assertPhaseScoreFromScratch, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, logger, logIndentation, phaseIndex, phaseLifecycleSupport, phaseTermination -
Method Summary
Modifier and TypeMethodDescriptionprotected ConstructionHeuristicPhaseScope<Solution_>buildPhaseScope(SolverScope<Solution_> solverScope, int phaseIndex) protected voiddoStep(ConstructionHeuristicStepScope<Solution_> stepScope) protected booleanisNested()Whether this phase is nested inside another phase.Methods inherited from class ai.timefold.solver.core.impl.constructionheuristic.DefaultConstructionHeuristicPhase
getEntityPlacer, getTerminationStatus, phaseEnded, phaseStarted, solve, solvingEnded, solvingError, solvingStarted, stepEnded, stepStartedMethods inherited from class ai.timefold.solver.core.impl.phase.AbstractPossiblyInitializingPhase
ensureCorrectTermination, isLastInitializingPhase, translateEarlyTerminationMethods inherited from class ai.timefold.solver.core.impl.phase.AbstractPhase
addPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getPhaseTermination, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, stepEnded, stepStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.phase.Phase
addPhaseLifecycleListener, removePhaseLifecycleListener, solveMethods inherited from interface ai.timefold.solver.core.impl.phase.event.PhaseLifecycleListener
phaseEnded, phaseStarted, stepEnded, stepStartedMethods inherited from interface ai.timefold.solver.core.impl.phase.PossiblyInitializingPhase
getTerminationStatus, isLastInitializingPhaseMethods inherited from interface ai.timefold.solver.core.impl.solver.event.SolverLifecycleListener
solvingEnded, solvingError, solvingStarted
-
Method Details
-
buildPhaseScope
protected ConstructionHeuristicPhaseScope<Solution_> buildPhaseScope(SolverScope<Solution_> solverScope, int phaseIndex) - Overrides:
buildPhaseScopein classDefaultConstructionHeuristicPhase<Solution_>
-
isNested
protected boolean isNested()Description copied from class:AbstractPhaseWhether this phase is nested inside another phase. Nested phases, such as ruin and recreate, must not notify the solver of their starting; otherwise unimproved termination of local search would be reset every time the nested phase starts, effectively disabling this termination. Nested phases also do not collect step and phase metrics.- Overrides:
isNestedin classAbstractPhase<Solution_>- Returns:
- false for nested phases, true for every other phase
-
getPhaseTypeString
- Overrides:
getPhaseTypeStringin classDefaultConstructionHeuristicPhase<Solution_>
-
doStep
- Overrides:
doStepin classDefaultConstructionHeuristicPhase<Solution_>
-
getMissingUpdatedElementsMap
-