Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## cz.pcland.ga.selection
Interface SelectionOperator

All Known Implementing Classes:
  RandomSelection, RankSelection, RouletteSelection, RouletteSelection2, TournamentSelection

    public interface SelectionOperator

Method Summary
`void` | `init(BaseIndividual[] population, double sumOfFitness)` Called before every selection
`void` | `onStart(BaseIndividual[] population)` Called at the begining of run before first evaluation and after population is fully created
`BaseIndividual` | `select(BaseIndividual[] population, int popSize, double sumOfFitness)` Method representing selection operator itself.
`java.lang.String` | `toString()` Public name of this operator

Method Detail

### toString

    java.lang.String toString()

  Public name of this operator

  Overrides:
    `toString` in class `java.lang.Object`

### init

    void init(BaseIndividual[] population,
              double sumOfFitness)

  Called before every selection

### onStart

    void onStart(BaseIndividual[] population)

  Called at the begining of run before first evaluation and after population is fully created

### select

    BaseIndividual select(BaseIndividual[] population,
                          int popSize,
                          double sumOfFitness)
                          throws SelectionException

  Method representing selection operator itself.

  Throws:
    `SelectionException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD