Class TrendBasedScoreBounder
java.lang.Object
ai.timefold.solver.core.impl.exhaustivesearch.node.bounder.TrendBasedScoreBounder
- All Implemented Interfaces:
ScoreBounder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InitializingScoreTrendprotected final ScoreDefinition -
Constructor Summary
ConstructorsConstructorDescriptionTrendBasedScoreBounder(ScoreDefinition scoreDefinition, InitializingScoreTrend initializingScoreTrend) -
Method Summary
Modifier and TypeMethodDescriptioncalculateOptimisticBound(ScoreDirector scoreDirector, Score score) In OR terms, this is called the lower bound if they minimize, and upper bound if they maximize.calculatePessimisticBound(ScoreDirector scoreDirector, Score score) In OR terms, this is called the upper bound if they minimize, and lower bound if they maximize.
-
Field Details
-
scoreDefinition
-
initializingScoreTrend
-
-
Constructor Details
-
TrendBasedScoreBounder
public TrendBasedScoreBounder(ScoreDefinition scoreDefinition, InitializingScoreTrend initializingScoreTrend)
-
-
Method Details
-
calculateOptimisticBound
Description copied from interface:ScoreBounderIn OR terms, this is called the lower bound if they minimize, and upper bound if they maximize. Because we always maximize theScore, calling it lower bound would be a contradiction.- Specified by:
calculateOptimisticBoundin interfaceScoreBounder- Parameters:
scoreDirector- never null, useScoreDirector.getWorkingSolution()to get the workingPlanningSolutionscore- never null, theScoreof the workingPlanningSolution- Returns:
- never null, never worse than the best possible
Scorewe can get by initializing the uninitialized variables of the workingPlanningSolution. - See Also:
-
calculatePessimisticBound
Description copied from interface:ScoreBounderIn OR terms, this is called the upper bound if they minimize, and lower bound if they maximize. Because we always maximize theScore, calling it upper bound would be a contradiction.- Specified by:
calculatePessimisticBoundin interfaceScoreBounder- Parameters:
scoreDirector- never null, useScoreDirector.getWorkingSolution()to get the workingPlanningSolutionscore- never null, theScoreof the workingPlanningSolution- Returns:
- never null, never better than the worst possible
Scorewe can get by initializing the uninitialized variables of the workingPlanningSolution. - See Also:
-