|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojavax.ga.GAStoppingCriteria.MaximumGeneration
public static class GAStoppingCriteria.MaximumGeneration
Simple Implementation of GAStoppingCriteria, signals
a GeneticAlgorithm to stop after n generations
GeneticAlgorithm again.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.biojavax.ga.GAStoppingCriteria |
|---|
GAStoppingCriteria.MaximumGeneration |
| Constructor Summary | |
|---|---|
GAStoppingCriteria.MaximumGeneration(int maxGenerations)
Public Constructer |
|
| Method Summary | |
|---|---|
int |
getMaxGenerations()
|
boolean |
stop(GeneticAlgorithm ga)
Stops the Algorithm if the iterations are >= maxGenerations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GAStoppingCriteria.MaximumGeneration(int maxGenerations)
maxGenerations - the number of generations to stop after| Method Detail |
|---|
public boolean stop(GeneticAlgorithm ga)
maxGenerations
stop in interface GAStoppingCriteriaga - the genetic algorithm to assess for stopping
ga should stoppublic int getMaxGenerations()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||