Class DefaultLocalSearchPhase<Solution_>
java.lang.Object
org.optaplanner.core.impl.phase.AbstractPhase<Solution_>
org.optaplanner.core.impl.localsearch.DefaultLocalSearchPhase<Solution_>
- Type Parameters:
- Solution_- the solution type, the class with the- PlanningSolutionannotation
- All Implemented Interfaces:
- EventListener,- LocalSearchPhaseLifecycleListener<Solution_>,- LocalSearchPhase<Solution_>,- PhaseLifecycleListener<Solution_>,- Phase<Solution_>,- SolverLifecycleListener<Solution_>
public class DefaultLocalSearchPhase<Solution_>
extends AbstractPhase<Solution_>
implements LocalSearchPhase<Solution_>, LocalSearchPhaseLifecycleListener<Solution_>
Default implementation of 
LocalSearchPhase.- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final AtomicLongprotected final Map<io.micrometer.core.instrument.Tags,List<AtomicReference<Number>>> protected final Map<io.micrometer.core.instrument.Tags,List<AtomicReference<Number>>> protected final Map<io.micrometer.core.instrument.Tags,AtomicLong> protected final Map<io.micrometer.core.instrument.Tags,AtomicLong> protected final LocalSearchDecider<Solution_>protected final AtomicLongFields inherited from class org.optaplanner.core.impl.phase.AbstractPhaseassertExpectedStepScore, assertShadowVariablesAreNotStaleAfterStep, assertStepScoreFromScratch, logger, logIndentation, phaseIndex, phaseLifecycleSupport, phaseTermination, solver
- 
Method SummaryModifier and TypeMethodDescriptionprotected voiddoStep(LocalSearchStepScope<Solution_> stepScope) voidphaseEnded(LocalSearchPhaseScope<Solution_> phaseScope) voidphaseStarted(LocalSearchPhaseScope<Solution_> phaseScope) voidsolve(SolverScope<Solution_> solverScope) voidsolvingEnded(SolverScope<Solution_> solverScope) voidsolvingError(SolverScope<Solution_> solverScope, Exception exception) Invoked in case of an exception in theSolverrun.voidsolvingStarted(SolverScope<Solution_> solverScope) voidstepEnded(LocalSearchStepScope<Solution_> stepScope) voidstepStarted(LocalSearchStepScope<Solution_> stepScope) Methods inherited from class org.optaplanner.core.impl.phase.AbstractPhaseaddPhaseLifecycleListener, assertWorkingSolutionInitialized, calculateWorkingStepScore, getPhaseIndex, getPhaseTermination, getSolver, isAssertExpectedStepScore, isAssertShadowVariablesAreNotStaleAfterStep, isAssertStepScoreFromScratch, phaseEnded, phaseStarted, predictWorkingStepScore, removePhaseLifecycleListener, setSolver, stepEnded, stepStartedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.optaplanner.core.impl.phase.PhaseaddPhaseLifecycleListener, removePhaseLifecycleListenerMethods inherited from interface org.optaplanner.core.impl.phase.event.PhaseLifecycleListenerphaseEnded, phaseStarted, stepEnded, stepStarted
- 
Field Details- 
decider
- 
acceptedMoveCountPerStep
- 
selectedMoveCountPerStep
- 
constraintMatchTotalTagsToStepCountprotected final Map<io.micrometer.core.instrument.Tags,AtomicLong> constraintMatchTotalTagsToStepCount
- 
constraintMatchTotalTagsToBestCountprotected final Map<io.micrometer.core.instrument.Tags,AtomicLong> constraintMatchTotalTagsToBestCount
- 
constraintMatchTotalStepScoreMapprotected final Map<io.micrometer.core.instrument.Tags,List<AtomicReference<Number>>> constraintMatchTotalStepScoreMap
- 
constraintMatchTotalBestScoreMapprotected final Map<io.micrometer.core.instrument.Tags,List<AtomicReference<Number>>> constraintMatchTotalBestScoreMap
 
- 
- 
Method Details- 
getPhaseTypeString- Specified by:
- getPhaseTypeStringin class- AbstractPhase<Solution_>
 
- 
solve
- 
doStep
- 
solvingStarted- Specified by:
- solvingStartedin interface- SolverLifecycleListener<Solution_>
- Overrides:
- solvingStartedin class- AbstractPhase<Solution_>
 
- 
phaseStarted- Specified by:
- phaseStartedin interface- LocalSearchPhaseLifecycleListener<Solution_>
 
- 
stepStarted- Specified by:
- stepStartedin interface- LocalSearchPhaseLifecycleListener<Solution_>
 
- 
stepEnded- Specified by:
- stepEndedin interface- LocalSearchPhaseLifecycleListener<Solution_>
 
- 
phaseEnded- Specified by:
- phaseEndedin interface- LocalSearchPhaseLifecycleListener<Solution_>
 
- 
solvingEnded- Specified by:
- solvingEndedin interface- SolverLifecycleListener<Solution_>
- Overrides:
- solvingEndedin class- AbstractPhase<Solution_>
 
- 
solvingErrorDescription copied from interface:SolverLifecycleListenerInvoked in case of an exception in theSolverrun. In that case, theSolverLifecycleListener.solvingEnded(SolverScope)is never called. For internal purposes only.- Specified by:
- solvingErrorin interface- SolverLifecycleListener<Solution_>
 
 
-