Interface SelectionProbabilityWeightFactory<Solution_,T>
-
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotationT- the selection type
- All Known Implementing Classes:
FairSelectorProbabilityWeightFactory,FixedSelectorProbabilityWeightFactory
public interface SelectionProbabilityWeightFactory<Solution_,T>Create a probabilityWeight for a selection (which is aPlanningEntity, a planningValue, aMoveor aSelector). A probabilityWeight represents the random chance that a selection will be selected. Some use cases benefit from focusing moves more actively on specific selections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublecreateProbabilityWeight(ScoreDirector<Solution_> scoreDirector, T selection)
-
-
-
Method Detail
-
createProbabilityWeight
double createProbabilityWeight(ScoreDirector<Solution_> scoreDirector, T selection)
- Parameters:
scoreDirector- never null, theScoreDirectorwhich has theScoreDirector.getWorkingSolution()to which the selection belongs or applies toselection- never null, aPlanningEntity, a planningValue, aMoveor aSelectorto create the probabilityWeight for- Returns:
0.0 <= returnValue <Double.POSITIVE_INFINITY
-
-