T
- The class chromosomes flowing across the stage.public class Evaluator<T extends Chromosome> extends AbstractStage<T>
force
that if set, forces the evaluation of all individuals, despite
the fact that the some individuals cold have been already evaluated.
Modifier and Type | Field and Description |
---|---|
protected boolean |
force
The property controlling if evaluation should be extened also to individuals already evaluated.
|
biggerIsBetter, fitness, ga
Constructor and Description |
---|
Evaluator()
Creates a new Evaluator instance.
|
Evaluator(boolean force)
Creates a new Evaluator instance, specifying the value of
|
Modifier and Type | Method and Description |
---|---|
boolean |
isForce()
Returns the current value of
force . |
void |
process(Population<T> in,
Population<T> out)
Performs an evaluation of input population.
|
void |
setForce(boolean force)
Sets the value of
force . |
dispose, getFitness, init, isBiggerBetter, isFitnessChanged, setBiggerIsBetter, setBiggerIsBetter, setFitness, setFitness
protected boolean force
public Evaluator()
public Evaluator(boolean force)
force
- - if true, all individuals are forced to be evaluated in any case.public boolean isForce()
force
. By default this value is false.force
.public void setForce(boolean force)
force
.force
- - if true, all individuals are forced to be evaluated in any case.public void process(Population<T> in, Population<T> out) throws StageException
process
in class AbstractStage<T extends Chromosome>
in
- - the input population.out
- - equals the input populationStageException