public class SteadyStateGA<T extends Chromosome> extends GeneticAlgorithm<T>
Modifier and Type | Class and Description |
---|---|
static class |
SteadyStateGA.SelectionMethod
Provides the available selection methods
|
GeneticAlgorithm.ElitismStrategy, GeneticAlgorithm.ResizeStrategy, GeneticAlgorithm.Statistics
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_GENERATION_LIMIT
The default generation limit
|
static SteadyStateGA.SelectionMethod |
DEFAULT_SELECTION_METHOD |
algorithmListeners, body, DEFAULT_HISTORY_SIZE, elitism, elitismStrategy, fullEvaluationForced, generation, generationLimit, generationListeners, initialPopulation, MAX_HISTORY_SIZE, MIN_HISTORY_SIZE, random, randomization, resizeStrategy, statistics
Constructor and Description |
---|
SteadyStateGA(Fitness fitness)
Builds a new SteadyStateGA with null population, default generation limit, default replacement rate,
defaul selection rate, default selection method.
|
SteadyStateGA(Fitness fitness,
Population<T> pop)
Builds a new SteadyStateGA with default generation limit, default replacement rate,
defaul selection rate, default selection method.
|
SteadyStateGA(Fitness fitness,
Population<T> pop,
int genlimit)
Builds a new SteadyStateGA with default replacement rate,
defaul selection rate, default selection method.
|
SteadyStateGA(Fitness fitness,
Population<T> pop,
int genlimit,
int rr,
int sr,
Selector<T> selector,
AbstractStage<T>... stages)
Builds a new SteadyStateGA
|
SteadyStateGA(Fitness fitness,
Population<T> pop,
int genlimit,
int rr,
int sr,
SteadyStateGA.SelectionMethod selmethod,
AbstractStage<T>... stages)
Builds a new SteadyStateGA
|
SteadyStateGA(Fitness fitness,
Population<T> pop,
int genlimit,
Selector<T> selector,
AbstractStage<T>... stages)
Builds a new SteadyStateGA
|
SteadyStateGA(Fitness fitness,
Population<T> pop,
int genlimit,
SteadyState<T> ss)
Builds a new SteadyStateGA
|
SteadyStateGA(Fitness fitness,
Population<T> pop,
int genlimit,
SteadyStateGA.SelectionMethod selmethod,
AbstractStage<T>... stages)
Builds a new SteadyStateGA with default replacement rate,
defaul selection rate
|
addAlgorithmEventListener, addGenerationEventListener, addStage, applyElitism, end, evaluateIndividual, evaluatePopulation, evaluatePopulation, evolve, evolve, evolve, getBody, getCurrentPopulation, getElitism, getElitismStrategy, getFitness, getGeneration, getGenerationLimit, getHistoryAt, getHistorySize, getInitialPopulation, getLastPopulation, getNextPopulation, getPool, getRandomization, getResizeStrategy, getRunner, getStatistics, isBiggerBetter, isFitnessChanged, isFullEvaluationForced, onGeneration, onInit, onStart, onStop, randomizeIndividual, randomizePopulation, removeAlgorithmEventListener, removeGenerationEventListener, setBiggerIsBetter, setElitism, setElitismStrategy, setFitness, setFullEvaluationForced, setGenerationLimit, setHistorySize, setRandomization, setRandomization, setRandomSeed, setResizeStrategy, setRunner, start, stop, toString, updateStatistics
public static final SteadyStateGA.SelectionMethod DEFAULT_SELECTION_METHOD
public static final int DEFAULT_GENERATION_LIMIT
public SteadyStateGA(Fitness fitness)
fitness
- the fitness to usepublic SteadyStateGA(Fitness fitness, Population<T> pop)
fitness
- the fitness to usepop
- the initial populationpublic SteadyStateGA(Fitness fitness, Population<T> pop, int genlimit)
fitness
- - the fitness to usepop
- - the initial populationgenlimit
- - generation limitpublic SteadyStateGA(Fitness fitness, Population<T> pop, int genlimit, SteadyStateGA.SelectionMethod selmethod, AbstractStage<T>... stages)
fitness
- - the fitness to usepop
- - the initial populationgenlimit
- - generation limitselmethod
- - selection methodstages
- - stages of algorithmpublic SteadyStateGA(Fitness fitness, Population<T> pop, int genlimit, int rr, int sr, SteadyStateGA.SelectionMethod selmethod, AbstractStage<T>... stages)
fitness
- - the fitness to usepop
- - the initial populationgenlimit
- - generation limitrr
- - replace ratesr
- - selection methodselmethod
- - selection methodstages
- - stages of algorithmpublic SteadyStateGA(Fitness fitness, Population<T> pop, int genlimit, Selector<T> selector, AbstractStage<T>... stages)
fitness
- - the fitness to usepop
- - the initial populationgenlimit
- - generation limitselector
- - selectorstages
- - stages of algorithmpublic SteadyStateGA(Fitness fitness, Population<T> pop, int genlimit, int rr, int sr, Selector<T> selector, AbstractStage<T>... stages)
fitness
- - the fitness to usepop
- - the initial populationgenlimit
- - generation limitrr
- - replace ratesr
- - selection methodselector
- - selectorstages
- - stages of algorithmpublic SteadyStateGA(Fitness fitness, Population<T> pop, int genlimit, SteadyState<T> ss)
fitness
- - the fitness to usepop
- - the initial populationgenlimit
- - generation limitss
- - a SteadyState stage