Package org.biojavax.ga
Interface GAStoppingCriteria
-
- All Known Implementing Classes:
GAStoppingCriteria.MaximumGeneration
public interface GAStoppingCriteria
Used by aGeneticAlgorithm.run()
method to determine when the algorithm should stop- Since:
- 1.5
- Version:
- 1.0
- Author:
- Mark Schreiber
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
GAStoppingCriteria.MaximumGeneration
Simple Implementation of GAStoppingCriteria, signals aGeneticAlgorithm
to stop after n generations
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
stop(GeneticAlgorithm ga)
Determines if an Algorithm should stop spawning new generations
-
-
-
Method Detail
-
stop
boolean stop(GeneticAlgorithm ga)
Determines if an Algorithm should stop spawning new generations- Parameters:
ga
- the Algorithm to test- Returns:
- true if it should stop, false otherwise.
-
-