public class GeneticAlgorithm extends Object
Constructor and Description |
---|
GeneticAlgorithm(List<Double[]> paramSet) |
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.15 Release Date : December 3 2024