Class FairSelectorProbabilityWeightFactory<Solution_>
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.decorator.FairSelectorProbabilityWeightFactory<Solution_>
- All Implemented Interfaces:
SelectionProbabilityWeightFactory<Solution_,
IterableSelector>
public class FairSelectorProbabilityWeightFactory<Solution_>
extends Object
implements SelectionProbabilityWeightFactory<Solution_,IterableSelector>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
createProbabilityWeight
(ScoreDirector<Solution_> scoreDirector, IterableSelector selector)
-
Constructor Details
-
FairSelectorProbabilityWeightFactory
public FairSelectorProbabilityWeightFactory()
-
-
Method Details
-
createProbabilityWeight
public double createProbabilityWeight(ScoreDirector<Solution_> scoreDirector, IterableSelector selector) - Specified by:
createProbabilityWeight
in interfaceSelectionProbabilityWeightFactory<Solution_,
IterableSelector> - Parameters:
scoreDirector
- never null, theScoreDirector
which has theScoreDirector.getWorkingSolution()
to which the selection belongs or applies toselector
- never null, aPlanningEntity
, a planningValue, aMove
or aSelector
to create the probabilityWeight for- Returns:
0.0 <= returnValue <
Double.POSITIVE_INFINITY
-