PhenotypeSerialEvaluator<P extends Phenotype<G, R> , G, R extends FitnessResult> class
abstract
For use when multiple experiments should be done with each phenotype.
- Inheritance
-
- Object
- PhenotypeEvaluator<
P, G, R> - PhenotypeSerialEvaluator
Constructors
-
PhenotypeSerialEvaluator(FitnessResultCombinator<
R> _resultCombinator, R _initialResult)
Properties
- cumulativeResult ↔ R
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- printf ↔ PrintFunction
-
Set automatically by GeneticAlgorithm.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userData ↔ Object?
-
getter/setter pairinherited
Methods
-
destroy(
) → void -
When evaluators need to dispose of resources. By default, this does
nothing.
inherited
-
evaluate(
P phenotype) → Future< R> -
Takes the phenotype and returns its fitness score. The lower the
fitness score, the better the phenotype. Fitness score of
0.0
means that the phenotype is perfect.override -
init(
) → Future< void> -
When evaluators need some work for initialization. By default,
this just returns an immediate Future.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
runOneEvaluation(
P phenotype, int experimentIndex) → Future< R> -
Runs one of the experiments to be performed on the given
phenotype
. Should complete with the result of theIterativeFitnessFunction
, or withnull
when there are no other experiments to run. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited