public class TrendBasedScoreBounder extends Object implements ScoreBounder
Modifier and Type | Field and Description |
---|---|
protected InitializingScoreTrend |
initializingScoreTrend |
protected ScoreDefinition |
scoreDefinition |
Constructor and Description |
---|
TrendBasedScoreBounder(InnerScoreDirectorFactory scoreDirectorFactory) |
Modifier and Type | Method and Description |
---|---|
Score |
calculateOptimisticBound(ScoreDirector scoreDirector,
Score score)
In OR terms, this is called the lower bound if they minimize, and upper bound if they maximize.
|
Score |
calculatePessimisticBound(ScoreDirector scoreDirector,
Score score)
In OR terms, this is called the upper bound if they minimize, and lower bound if they maximize.
|
protected final ScoreDefinition scoreDefinition
protected final InitializingScoreTrend initializingScoreTrend
public TrendBasedScoreBounder(InnerScoreDirectorFactory scoreDirectorFactory)
public Score calculateOptimisticBound(ScoreDirector scoreDirector, Score score)
ScoreBounder
Score
, calling it lower bound would be a contradiction.calculateOptimisticBound
in interface ScoreBounder
scoreDirector
- never null, use ScoreDirector.getWorkingSolution()
to get the working PlanningSolution
score
- never null, the Score
of the working PlanningSolution
Score
we can get
by initializing the uninitialized variables of the working PlanningSolution
.ScoreDefinition.buildOptimisticBound(InitializingScoreTrend, Score)
public Score calculatePessimisticBound(ScoreDirector scoreDirector, Score score)
ScoreBounder
Score
, calling it upper bound would be a contradiction.calculatePessimisticBound
in interface ScoreBounder
scoreDirector
- never null, use ScoreDirector.getWorkingSolution()
to get the working PlanningSolution
score
- never null, the Score
of the working PlanningSolution
Score
we can get
by initializing the uninitialized variables of the working PlanningSolution
.ScoreDefinition.buildPessimisticBound(InitializingScoreTrend, Score)
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.