Solution_
- the solution type, the class with the PlanningSolution
annotationT
- the selection typepublic interface SelectionProbabilityWeightFactory<Solution_,T>
PlanningEntity
, a planningValue, a Move
or a Selector
).
A probabilityWeight represents the random chance that a selection will be selected.
Some use cases benefit from focusing moves more actively on specific selections.Modifier and Type | Method and Description |
---|---|
double |
createProbabilityWeight(ScoreDirector<Solution_> scoreDirector,
T selection) |
double createProbabilityWeight(ScoreDirector<Solution_> scoreDirector, T selection)
scoreDirector
- never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution()
to which the selection belongs or applies toselection
- never null, a PlanningEntity
, a planningValue, a Move
or a Selector
to create the probabilityWeight for0.0 <= returnValue <
Double.POSITIVE_INFINITY
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.