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.fitness
Interface Evaluator

All Known Implementing Classes:
  CorrectionAlgorithmFitness, FunctionFitnessGray, FunctionFitnessNaive, PenalizationFitness, SATFitness, TSPFitness

    public interface Evaluator

Method Summary
`double` | `getEvaluation(BaseIndividual str)` gets evalutaion.
`void` | `init(BaseIndividual[] population)` Called before every evalutaion
`boolean` | `isEnd(BaseIndividual bi)` returns true if end value has been reached.
`void` | `onStart(BaseIndividual[] population)` Called at the begining of run before first evaluation and after population is fully created
`void` | `postEvaluate(BaseIndividual[] population, double min, double max)` For final fitness correction, eg: To set fitness to value greater than zero
`void` | `setDataObject(java.lang.Object data)` Called before GA starts to set data for evalutaion
`java.lang.String` | `toString()` Returns public name of fitness object

Method Detail

### setDataObject

    void setDataObject(java.lang.Object data)

  Called before GA starts to set data for evalutaion

### toString

    java.lang.String toString()

  Returns public name of fitness object

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

### isEnd

    boolean isEnd(BaseIndividual bi)

  returns true if end value has been reached. Algorithm does not react, only checks.

### postEvaluate

    void postEvaluate(BaseIndividual[] population,
                      double min,
                      double max)

  For final fitness correction, eg: To set fitness to value greater than zero

### init

    void init(BaseIndividual[] population)

  Called before every evalutaion

### onStart

    void onStart(BaseIndividual[] population)

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

### getEvaluation

    double getEvaluation(BaseIndividual str)

  gets evalutaion.

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

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