Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.optaplanner.core.impl.heuristic.selector.common.decorator
Interface SelectionProbabilityWeightFactory<T>

All Known Implementing Classes:
  FairSelectorProbabilityWeightFactory, FixedSelectorProbabilityWeightFactory, MrMachineProbabilityWeightFactory

    public interface SelectionProbabilityWeightFactory<T>

Create a probabilityWeight for a selection (which is a `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.

Method Summary
`double` | `createProbabilityWeight(ScoreDirector scoreDirector, T selection)`

Method Detail

### createProbabilityWeight

    double createProbabilityWeight(ScoreDirector scoreDirector,
                                   T selection)

  Parameters:
    `scoreDirector` - never null, the `ScoreDirector` which has the `ScoreDirector.getWorkingSolution()` to which the selection belongs or applies to
    `selection` - never null, a `PlanningEntity`, a planningValue, a `Move` or a `Selector` to create the probabilityWeight for
  Returns:
    0.0 <= returnValue < `Double.POSITIVE_INFINITY`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.0.0.CR1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 JBoss by Red Hat. All Rights Reserved.