@Deprecated public class GeneticAlgorithm extends Object
| Constructor and Description |
|---|
GeneticAlgorithm(List<Double[]> paramSet)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getTheBestSolution()
Deprecated.
Returns the best chromosome's genes presented as double array.
|
void |
run()
Deprecated.
The main method for genetic algorithm.
|
void |
runParallel(LearningEnvironment environment)
Deprecated.
The main method for genetic algorithm.
|
GeneticAlgorithm |
withAmountOfEliteChromosomes(int amountOfEliteChromosomes)
Deprecated.
|
GeneticAlgorithm |
withAmountOfGenerations(int amountOfGenerations)
Deprecated.
|
GeneticAlgorithm |
withCrossingoverProbability(double crossingoverProbability)
Deprecated.
|
GeneticAlgorithm |
withCrossoverStgy(CrossoverStrategy crossoverStgy)
Deprecated.
|
GeneticAlgorithm |
withFitnessFunction(Function<Chromosome,Double> fitnessFunction)
Deprecated.
Sets the custom fitness function.
|
GeneticAlgorithm |
withMutationOperator(BiFunction<Integer,Double,Double> mutationOperator)
Deprecated.
|
GeneticAlgorithm |
withMutationProbability(double mutationProbability)
Deprecated.
|
GeneticAlgorithm |
withPopulationSize(int populationSize)
Deprecated.
|
GeneticAlgorithm |
withSelectionStgy(SelectionStrategy selectionStgy)
Deprecated.
|
public void run()
public void runParallel(LearningEnvironment environment)
environment - The environment.public GeneticAlgorithm withFitnessFunction(Function<Chromosome,Double> fitnessFunction)
fitnessFunction - Fitness function.public double[] getTheBestSolution()
public GeneticAlgorithm withAmountOfEliteChromosomes(int amountOfEliteChromosomes)
amountOfEliteChromosomes - Amount of elite chromosomes.public GeneticAlgorithm withAmountOfGenerations(int amountOfGenerations)
amountOfGenerations - Amount of generations.public GeneticAlgorithm withMutationOperator(BiFunction<Integer,Double,Double> mutationOperator)
mutationOperator - Mutation operator.public GeneticAlgorithm withPopulationSize(int populationSize)
populationSize - Population size.public GeneticAlgorithm withCrossingoverProbability(double crossingoverProbability)
crossingoverProbability - Crossingover probability.public GeneticAlgorithm withMutationProbability(double mutationProbability)
mutationProbability - Mutation probability.public GeneticAlgorithm withCrossoverStgy(CrossoverStrategy crossoverStgy)
crossoverStgy - Crossover strategy.public GeneticAlgorithm withSelectionStgy(SelectionStrategy selectionStgy)
selectionStgy - Selection strategy.
GridGain In-Memory Computing Platform : ver. 8.9.38 Release Date : September 22 2026