Uses of Class
net.bmahe.genetics4j.core.Genotype
Packages that use Genotype
Package
Description
-
Uses of Genotype in net.bmahe.genetics4j.core
Fields in net.bmahe.genetics4j.core declared as GenotypeModifier and TypeFieldDescriptionprivate Genotype
ImmutableIndividual.Builder.genotype
private final Genotype
ImmutableIndividual.genotype
Fields in net.bmahe.genetics4j.core with type parameters of type GenotypeMethods in net.bmahe.genetics4j.core that return GenotypeModifier and TypeMethodDescriptionImmutableIndividual.genotype()
Returns the genotype of this individual.Individual.genotype()
Returns the genotype of this individual.Population.getGenotype
(int index) Returns the genotype at the specified index.Methods in net.bmahe.genetics4j.core that return types with arguments of type GenotypeModifier and TypeMethodDescriptionEASystem.combineParents
(Population<T> parents, GenotypeCombinator genotypeCombinator) EASystem.createBasicOffsprings
(Population<T> population, int offspringsNeeded) Create offsprings without mutationEASystem.createOffsprings
(Population<T> population, int offspringsNeeded) Creates offspring from the given population through selection, crossover, and mutation.Population.getAllGenotypes()
Returns all genotypes in this population.EASystem.initializePopulation()
EASystem.mutateGenotypes
(List<Genotype> genotypes) Methods in net.bmahe.genetics4j.core with parameters of type GenotypeModifier and TypeMethodDescriptionvoid
Adds an individual to the population by specifying its genotype and fitness separately.Computes the fitness value for the specified genotype.final ImmutableIndividual.Builder
<T> Initializes the value for thegenotype
attribute.static <T extends Comparable<T>>
ImmutableIndividual<T> Construct a new immutableIndividual
instance.static <U extends Comparable<U>>
Individual<U> Creates a new individual with the specified genotype and fitness.final ImmutableIndividual
<T> ImmutableIndividual.withGenotype
(Genotype value) Copy the current immutable object by setting a value for thegenotype
attribute.Method parameters in net.bmahe.genetics4j.core with type arguments of type GenotypeModifier and TypeMethodDescriptionFitnessBulkAsync.compute
(ExecutorService executorService, List<Genotype> genotypes) Asynchronously computes fitness values for an entire population of genotypes.EASystem.evaluateOnce
(long generation, List<Genotype> genotypes) Evaluates a collection of genotypes once without running the full evolutionary process.EASystem.mutateGenotypes
(List<Genotype> genotypes) static <U extends Comparable<U>>
Population<U> Creates a new population with the specified genotypes and fitnesses.Constructors in net.bmahe.genetics4j.core with parameters of type GenotypeModifierConstructorDescriptionprivate
ImmutableIndividual
(Genotype genotype, T fitness) private
ImmutableIndividual
(ImmutableIndividual<T> original, Genotype genotype, T fitness) Constructor parameters in net.bmahe.genetics4j.core with type arguments of type GenotypeModifierConstructorDescriptionPopulation
(List<Genotype> _genotype, List<T> _fitnesses) Creates a population with the specified genotypes and fitnesses. -
Uses of Genotype in net.bmahe.genetics4j.core.combination
Methods in net.bmahe.genetics4j.core.combination that return types with arguments of type GenotypeModifier and TypeMethodDescriptionAllCasesGenotypeCombinator.combine
(AbstractEAConfiguration eaConfiguration, List<List<Chromosome>> chromosomes) GenotypeCombinator.combine
(AbstractEAConfiguration eaConfiguration, List<List<Chromosome>> chromosomes) -
Uses of Genotype in net.bmahe.genetics4j.core.evaluation
Method parameters in net.bmahe.genetics4j.core.evaluation with type arguments of type GenotypeModifier and TypeMethodDescriptionEvaluates the fitness of all genotypes in the given population. -
Uses of Genotype in net.bmahe.genetics4j.core.evolutionlisteners
Fields in net.bmahe.genetics4j.core.evolutionlisteners with type parameters of type GenotypeMethod parameters in net.bmahe.genetics4j.core.evolutionlisteners with type arguments of type GenotypeModifier and TypeMethodDescriptionstatic <U extends Comparable<U>>
EvolutionListener<U> EvolutionListeners.ofLogTopN
(org.apache.logging.log4j.Logger logger, int topN, int skipN, Comparator<U> comparator, Function<Genotype, String> prettyPrinter) static <U extends Comparable<U>>
EvolutionListener<U> EvolutionListeners.ofLogTopN
(org.apache.logging.log4j.Logger logger, int topN, Comparator<U> comparator, Function<Genotype, String> prettyPrinter) static <U extends Comparable<U>>
EvolutionListener<U> EvolutionListeners.ofLogTopN
(org.apache.logging.log4j.Logger logger, int topN, Function<Genotype, String> prettyPrinter) void
EvolutionListener.onEvolution
(long generation, List<Genotype> population, List<T> fitness, boolean isDone) Called after each generation to notify about evolution progress.void
EvolutionListenerLogTopN.onEvolution
(long generation, List<Genotype> population, List<T> fitness, boolean isDone) void
SimpleEvolutionListener.onEvolution
(long generation, List<Genotype> population, List<T> fitness, boolean isDone) Constructor parameters in net.bmahe.genetics4j.core.evolutionlisteners with type arguments of type GenotypeModifierConstructorDescriptionEvolutionListenerLogTopN
(org.apache.logging.log4j.Logger _logger, int _topN, int _skipN, Comparator<T> _comparator, Function<Genotype, String> _prettyPrinter) -
Uses of Genotype in net.bmahe.genetics4j.core.mutation
Methods in net.bmahe.genetics4j.core.mutation that return GenotypeModifier and TypeMethodDescriptionApplies mutation to the given genotype and returns a new mutated genotype.Methods in net.bmahe.genetics4j.core.mutation with parameters of type Genotype -
Uses of Genotype in net.bmahe.genetics4j.core.postevaluationprocess
Fields in net.bmahe.genetics4j.core.postevaluationprocess with type parameters of type GenotypeModifier and TypeFieldDescriptionprivate BiFunction
<Genotype, Genotype, Double> ImmutableFitnessSharing.Builder.distance
private BiFunction
<Genotype, Genotype, Double> ImmutableFitnessSharing.Builder.distance
private final BiFunction
<Genotype, Genotype, Double> ImmutableFitnessSharing.distance
private final BiFunction
<Genotype, Genotype, Double> ImmutableFitnessSharing.distance
Methods in net.bmahe.genetics4j.core.postevaluationprocess that return types with arguments of type GenotypeModifier and TypeMethodDescriptionabstract BiFunction
<Genotype, Genotype, Double> FitnessSharing.distance()
abstract BiFunction
<Genotype, Genotype, Double> FitnessSharing.distance()
ImmutableFitnessSharing.distance()
ImmutableFitnessSharing.distance()
Method parameters in net.bmahe.genetics4j.core.postevaluationprocess with type arguments of type GenotypeModifier and TypeMethodDescriptionfinal ImmutableFitnessSharing.Builder
<T> ImmutableFitnessSharing.Builder.distance
(BiFunction<Genotype, Genotype, Double> distance) Initializes the value for thedistance
attribute.final ImmutableFitnessSharing.Builder
<T> ImmutableFitnessSharing.Builder.distance
(BiFunction<Genotype, Genotype, Double> distance) Initializes the value for thedistance
attribute.static FitnessSharing
<Double> static FitnessSharing
<Double> static <T extends Comparable<T>>
ImmutableFitnessSharing<T> ImmutableFitnessSharing.of
(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) Construct a new immutableFitnessSharing
instance.static <T extends Comparable<T>>
ImmutableFitnessSharing<T> ImmutableFitnessSharing.of
(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) Construct a new immutableFitnessSharing
instance.static FitnessSharing
<Float> FitnessSharing.ofFloatFitness
(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing) static FitnessSharing
<Float> FitnessSharing.ofFloatFitness
(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing) static FitnessSharing
<Double> FitnessSharing.ofStandard
(BiFunction<Genotype, Genotype, Double> distance, double sigma) static FitnessSharing
<Double> FitnessSharing.ofStandard
(BiFunction<Genotype, Genotype, Double> distance, double sigma) static FitnessSharing
<Double> FitnessSharing.ofStandard
(BiFunction<Genotype, Genotype, Double> distance, double sigma, double alpha) static FitnessSharing
<Double> FitnessSharing.ofStandard
(BiFunction<Genotype, Genotype, Double> distance, double sigma, double alpha) final ImmutableFitnessSharing
<T> ImmutableFitnessSharing.withDistance
(BiFunction<Genotype, Genotype, Double> value) Copy the current immutable object by setting a value for thedistance
attribute.final ImmutableFitnessSharing
<T> ImmutableFitnessSharing.withDistance
(BiFunction<Genotype, Genotype, Double> value) Copy the current immutable object by setting a value for thedistance
attribute.Constructor parameters in net.bmahe.genetics4j.core.postevaluationprocess with type arguments of type GenotypeModifierConstructorDescriptionprivate
ImmutableFitnessSharing
(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) private
ImmutableFitnessSharing
(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) private
ImmutableFitnessSharing
(ImmutableFitnessSharing<T> original, BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) private
ImmutableFitnessSharing
(ImmutableFitnessSharing<T> original, BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) -
Uses of Genotype in net.bmahe.genetics4j.core.replacement
Method parameters in net.bmahe.genetics4j.core.replacement with type arguments of type GenotypeModifier and TypeMethodDescriptionDeleteNLastImpl.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> populationScores, List<Genotype> offsprings, List<T> offspringScores) ElitismImpl.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> populationScores, List<Genotype> offsprings, List<T> offspringScores) GenerationalReplacementImpl.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> populationScores, List<Genotype> offsprings, List<T> offspringScores) ReplacementStrategyImplementor.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> populationScores, List<Genotype> offsprings, List<T> offspringScores) -
Uses of Genotype in net.bmahe.genetics4j.core.selection
Method parameters in net.bmahe.genetics4j.core.selection with type arguments of type GenotypeModifier and TypeMethodDescriptionprivate List
<Individual<T>> MultiTournamentsSelectionPolicyHandler.pickRandomCandidates
(RandomGenerator randomGenerator, List<Genotype> population, List<T> fitnessScore, int numCandidates) protected Individual
<T> DoubleTournamentSelector.randomIndividual
(List<Genotype> population, List<T> fitnessScore) private Individual
<T> MultiTournamentsSelectionPolicyHandler.runTournament
(Tournament<T> tournament, List<Genotype> population, List<T> fitnessScore, List<Individual<T>> candidates) DoubleTournamentSelector.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> fitnessScore) ProportionalTournamentSelector.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> fitnessScore) Selector.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> fitnessScore) Selects a specified number of individuals from the given population based on their fitness values.TournamentSelector.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> fitnessScore) protected Individual
<T> DoubleTournamentSelector.selectForFitness
(AbstractEAConfiguration<T> eaConfiguration, Comparator<Individual<T>> fitnessComparator, int numCandidates, List<Genotype> population, List<T> fitnessScore) -
Uses of Genotype in net.bmahe.genetics4j.core.spec
Fields in net.bmahe.genetics4j.core.spec declared as GenotypeModifier and TypeFieldDescriptionprivate Genotype
ImmutableGenotypeFitness.Builder.genotype
private final Genotype
ImmutableGenotypeFitness.genotype
Fields in net.bmahe.genetics4j.core.spec with type parameters of type GenotypeModifier and TypeFieldDescriptionImmutableEAConfiguration.Builder.genotypeGenerator
ImmutableEAConfiguration.genotypeGenerator
ImmutableEAConfigurationBulkAsync.Builder.genotypeGenerator
ImmutableEAConfigurationBulkAsync.genotypeGenerator
ImmutableEvolutionResult.Builder.population
ImmutableEvolutionResult.population
private Collection
<Genotype> ImmutableEAConfiguration.Builder.seedPopulation
private Collection
<Genotype> ImmutableEAConfiguration.InitShim.seedPopulation
private final Collection
<Genotype> ImmutableEAConfiguration.seedPopulation
private Collection
<Genotype> ImmutableEAConfigurationBulkAsync.Builder.seedPopulation
private Collection
<Genotype> ImmutableEAConfigurationBulkAsync.InitShim.seedPopulation
private final Collection
<Genotype> ImmutableEAConfigurationBulkAsync.seedPopulation
Methods in net.bmahe.genetics4j.core.spec that return GenotypeModifier and TypeMethodDescriptionEvolutionResult.bestGenotype()
GenotypeFitness.genotype()
ImmutableGenotypeFitness.genotype()
Methods in net.bmahe.genetics4j.core.spec that return types with arguments of type GenotypeModifier and TypeMethodDescriptionAbstractEAConfiguration.genotypeGenerator()
Defines how to generate individualsImmutableEAConfiguration.genotypeGenerator()
Defines how to generate individualsImmutableEAConfigurationBulkAsync.genotypeGenerator()
Defines how to generate individualsEvolutionResult.population()
ImmutableEvolutionResult.population()
AbstractEAConfiguration.seedPopulation()
Seed the initial population with specific individuals(package private) Collection
<Genotype> ImmutableEAConfiguration.InitShim.seedPopulation()
ImmutableEAConfiguration.seedPopulation()
Seed the initial population with specific individuals(package private) Collection
<Genotype> ImmutableEAConfigurationBulkAsync.InitShim.seedPopulation()
ImmutableEAConfigurationBulkAsync.seedPopulation()
Seed the initial population with specific individualsMethods in net.bmahe.genetics4j.core.spec with parameters of type GenotypeModifier and TypeMethodDescriptionImmutableEvolutionResult.Builder.addPopulation
(Genotype element) Adds one element topopulation
list.ImmutableEvolutionResult.Builder.addPopulation
(Genotype... elements) Adds elements topopulation
list.Initializes the value for thegenotype
attribute.static <U> GenotypeFitness
<U> static <T> ImmutableGenotypeFitness
<T> Construct a new immutableGenotypeFitness
instance.final ImmutableGenotypeFitness
<T> ImmutableGenotypeFitness.withGenotype
(Genotype value) Copy the current immutable object by setting a value for thegenotype
attribute.final ImmutableEvolutionResult
<T> ImmutableEvolutionResult.withPopulation
(Genotype... elements) Copy the current immutable object with elements that replace the content ofpopulation
.Method parameters in net.bmahe.genetics4j.core.spec with type arguments of type GenotypeModifier and TypeMethodDescriptionImmutableEvolutionResult.Builder.addAllPopulation
(Iterable<? extends Genotype> elements) Adds elements topopulation
list.final EAConfiguration.Builder
<T> ImmutableEAConfiguration.Builder.genotypeGenerator
(Supplier<Genotype> genotypeGenerator) Initializes the optional valuegenotypeGenerator
to genotypeGenerator.final EAConfiguration.Builder
<T> ImmutableEAConfiguration.Builder.genotypeGenerator
(Optional<? extends Supplier<Genotype>> genotypeGenerator) Initializes the optional valuegenotypeGenerator
to genotypeGenerator.ImmutableEAConfigurationBulkAsync.Builder.genotypeGenerator
(Supplier<Genotype> genotypeGenerator) Initializes the optional valuegenotypeGenerator
to genotypeGenerator.ImmutableEAConfigurationBulkAsync.Builder.genotypeGenerator
(Optional<? extends Supplier<Genotype>> genotypeGenerator) Initializes the optional valuegenotypeGenerator
to genotypeGenerator.static <T extends Comparable<T>>
ImmutableEvolutionResult<T> ImmutableEvolutionResult.of
(AbstractEAConfiguration<T> eaConfiguration, long generation, Iterable<? extends Genotype> population, Iterable<? extends T> fitness) Construct a new immutableEvolutionResult
instance.static <T extends Comparable<T>>
ImmutableEvolutionResult<T> ImmutableEvolutionResult.of
(AbstractEAConfiguration<T> eaConfiguration, long generation, List<Genotype> population, List<T> fitness) Construct a new immutableEvolutionResult
instance.ImmutableEvolutionResult.Builder.population
(Iterable<? extends Genotype> elements) Sets or replaces all elements forpopulation
list.final EAConfiguration.Builder
<T> ImmutableEAConfiguration.Builder.seedPopulation
(Collection<Genotype> seedPopulation) Initializes the value for theseedPopulation
attribute.(package private) void
ImmutableEAConfiguration.InitShim.seedPopulation
(Collection<Genotype> seedPopulation) ImmutableEAConfigurationBulkAsync.Builder.seedPopulation
(Collection<Genotype> seedPopulation) Initializes the value for theseedPopulation
attribute.(package private) void
ImmutableEAConfigurationBulkAsync.InitShim.seedPopulation
(Collection<Genotype> seedPopulation) final ImmutableEAConfiguration
<T> ImmutableEAConfiguration.withGenotypeGenerator
(Supplier<Genotype> value) Copy the current immutable object by setting a present value for the optionalgenotypeGenerator
attribute.final ImmutableEAConfiguration
<T> ImmutableEAConfiguration.withGenotypeGenerator
(Optional<? extends Supplier<Genotype>> optional) Copy the current immutable object by setting an optional value for thegenotypeGenerator
attribute.ImmutableEAConfigurationBulkAsync.withGenotypeGenerator
(Supplier<Genotype> value) Copy the current immutable object by setting a present value for the optionalgenotypeGenerator
attribute.ImmutableEAConfigurationBulkAsync.withGenotypeGenerator
(Optional<? extends Supplier<Genotype>> optional) Copy the current immutable object by setting an optional value for thegenotypeGenerator
attribute.final ImmutableEvolutionResult
<T> ImmutableEvolutionResult.withPopulation
(Iterable<? extends Genotype> elements) Copy the current immutable object with elements that replace the content ofpopulation
.final ImmutableEAConfiguration
<T> ImmutableEAConfiguration.withSeedPopulation
(Collection<Genotype> value) Copy the current immutable object by setting a value for theseedPopulation
attribute.ImmutableEAConfigurationBulkAsync.withSeedPopulation
(Collection<Genotype> value) Copy the current immutable object by setting a value for theseedPopulation
attribute.Constructors in net.bmahe.genetics4j.core.spec with parameters of type GenotypeModifierConstructorDescriptionprivate
ImmutableGenotypeFitness
(Genotype genotype, T fitness) private
ImmutableGenotypeFitness
(ImmutableGenotypeFitness<T> original, Genotype genotype, T fitness) Constructor parameters in net.bmahe.genetics4j.core.spec with type arguments of type GenotypeModifierConstructorDescriptionprivate
ImmutableEAConfiguration
(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, Function<Population<T>, Population<T>> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, Fitness<T> fitness) private
ImmutableEAConfiguration
(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, Function<Population<T>, Population<T>> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, Fitness<T> fitness) private
ImmutableEAConfigurationBulkAsync
(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, Function<Population<T>, Population<T>> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, FitnessBulkAsync<T> fitness) private
ImmutableEAConfigurationBulkAsync
(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, Function<Population<T>, Population<T>> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, FitnessBulkAsync<T> fitness) private
ImmutableEvolutionResult
(AbstractEAConfiguration<T> eaConfiguration, long generation, Iterable<? extends Genotype> population, Iterable<? extends T> fitness) private
ImmutableEvolutionResult
(ImmutableEvolutionResult<T> original, AbstractEAConfiguration<T> eaConfiguration, long generation, List<Genotype> population, List<T> fitness) -
Uses of Genotype in net.bmahe.genetics4j.core.termination
Method parameters in net.bmahe.genetics4j.core.termination with type arguments of type Genotype -
Uses of Genotype in net.bmahe.genetics4j.core.util
Fields in net.bmahe.genetics4j.core.util with type parameters of type GenotypeMethods in net.bmahe.genetics4j.core.util that return types with arguments of type GenotypeModifier and TypeMethodDescriptionGenotypeGenerator.generateGenotypes
(int numPopulation) Generates a specified number of random genotypes for initial population creation. -
Uses of Genotype in net.bmahe.genetics4j.extras.evolutionlisteners
Fields in net.bmahe.genetics4j.extras.evolutionlisteners declared as GenotypeModifier and TypeFieldDescriptionprivate Genotype
ImmutableEvolutionStep.Builder.individual
private final Genotype
ImmutableEvolutionStep.individual
Methods in net.bmahe.genetics4j.extras.evolutionlisteners that return GenotypeMethods in net.bmahe.genetics4j.extras.evolutionlisteners with parameters of type GenotypeModifier and TypeMethodDescriptionfinal EvolutionStep.Builder
<T, U> ImmutableEvolutionStep.Builder.individual
(Genotype individual) Initializes the value for theindividual
attribute.static <T extends Comparable<T>,
U>
EvolutionStep<T, U> EvolutionStep.of
(Optional<U> context, long generation, int individualIndex, Genotype individual, T fitness, boolean isDone) static <T extends Comparable<T>,
U>
ImmutableEvolutionStep<T, U> ImmutableEvolutionStep.of
(Optional<? extends U> context, long generation, int individualIndex, Genotype individual, T fitness, boolean isDone) Construct a new immutableEvolutionStep
instance.final ImmutableEvolutionStep
<T, U> ImmutableEvolutionStep.withIndividual
(Genotype value) Copy the current immutable object by setting a value for theindividual
attribute.Method parameters in net.bmahe.genetics4j.extras.evolutionlisteners with type arguments of type GenotypeModifier and TypeMethodDescriptionGenerationFunction.apply
(long generation, List<Genotype> population, List<T> fitness, boolean isDone) void
CSVEvolutionListener.onEvolution
(long generation, List<Genotype> population, List<T> fitness, boolean isDone) Constructors in net.bmahe.genetics4j.extras.evolutionlisteners with parameters of type GenotypeModifierConstructorDescriptionprivate
ImmutableEvolutionStep
(Optional<? extends U> context, long generation, int individualIndex, Genotype individual, T fitness, boolean isDone) private
ImmutableEvolutionStep
(ImmutableEvolutionStep<T, U> original, U context, long generation, int individualIndex, Genotype individual, T fitness, boolean isDone) -
Uses of Genotype in net.bmahe.genetics4j.gp.mutation
Methods in net.bmahe.genetics4j.gp.mutation that return GenotypeModifier and TypeMethodDescriptionMethods in net.bmahe.genetics4j.gp.mutation with parameters of type GenotypeModifier and TypeMethodDescription -
Uses of Genotype in net.bmahe.genetics4j.gp.postevaluationprocess
Fields in net.bmahe.genetics4j.gp.postevaluationprocess with type parameters of type GenotypeModifier and TypeFieldDescriptionImmutableTarpeianMethod.Builder.sizeFunction
ImmutableTarpeianMethod.sizeFunction
Methods in net.bmahe.genetics4j.gp.postevaluationprocess that return types with arguments of type GenotypeModifier and TypeMethodDescriptionImmutableTarpeianMethod.sizeFunction()
TarpeianMethod.sizeFunction()
Method parameters in net.bmahe.genetics4j.gp.postevaluationprocess with type arguments of type GenotypeModifier and TypeMethodDescriptionstatic ImmutableTarpeianMethod
ImmutableTarpeianMethod.of
(RandomGenerator randomGenerator, Function<Genotype, Integer> sizeFunction, double probability, double newValue) Construct a new immutableTarpeianMethod
instance.static TarpeianMethod
TarpeianMethod.of
(RandomGenerator randomGenerator, Function<Genotype, Integer> sizeFunction, double probability, double newValue) ImmutableTarpeianMethod.Builder.sizeFunction
(Function<Genotype, Integer> sizeFunction) Initializes the value for thesizeFunction
attribute.final ImmutableTarpeianMethod
ImmutableTarpeianMethod.withSizeFunction
(Function<Genotype, Integer> value) Copy the current immutable object by setting a value for thesizeFunction
attribute.Constructor parameters in net.bmahe.genetics4j.gp.postevaluationprocess with type arguments of type GenotypeModifierConstructorDescriptionprivate
ImmutableTarpeianMethod
(RandomGenerator randomGenerator, Function<Genotype, Integer> sizeFunction, double probability, double newValue) private
ImmutableTarpeianMethod
(ImmutableTarpeianMethod original, RandomGenerator randomGenerator, Function<Genotype, Integer> sizeFunction, double probability, double newValue) -
Uses of Genotype in net.bmahe.genetics4j.gp.utils
Methods in net.bmahe.genetics4j.gp.utils with parameters of type GenotypeModifier and TypeMethodDescriptionstatic <T> boolean
static <T> int
static String
TreeNodeUtils.toStringTreeNode
(Genotype genotype, int chromosomeIndex) -
Uses of Genotype in net.bmahe.genetics4j.gpu
Method parameters in net.bmahe.genetics4j.gpu with type arguments of type Genotype -
Uses of Genotype in net.bmahe.genetics4j.gpu.spec
Fields in net.bmahe.genetics4j.gpu.spec with type parameters of type GenotypeModifier and TypeFieldDescriptionImmutableGPUEAConfiguration.Builder.genotypeGenerator
ImmutableGPUEAConfiguration.genotypeGenerator
private Collection
<Genotype> ImmutableGPUEAConfiguration.Builder.seedPopulation
private Collection
<Genotype> ImmutableGPUEAConfiguration.InitShim.seedPopulation
private final Collection
<Genotype> ImmutableGPUEAConfiguration.seedPopulation
Methods in net.bmahe.genetics4j.gpu.spec that return types with arguments of type GenotypeModifier and TypeMethodDescriptionImmutableGPUEAConfiguration.genotypeGenerator()
(package private) Collection
<Genotype> ImmutableGPUEAConfiguration.InitShim.seedPopulation()
ImmutableGPUEAConfiguration.seedPopulation()
Method parameters in net.bmahe.genetics4j.gpu.spec with type arguments of type GenotypeModifier and TypeMethodDescriptionfinal GPUEAConfiguration.Builder
<T> ImmutableGPUEAConfiguration.Builder.genotypeGenerator
(Supplier<Genotype> genotypeGenerator) Initializes the optional valuegenotypeGenerator
to genotypeGenerator.final GPUEAConfiguration.Builder
<T> ImmutableGPUEAConfiguration.Builder.genotypeGenerator
(Optional<? extends Supplier<Genotype>> genotypeGenerator) Initializes the optional valuegenotypeGenerator
to genotypeGenerator.final GPUEAConfiguration.Builder
<T> ImmutableGPUEAConfiguration.Builder.seedPopulation
(Collection<Genotype> seedPopulation) Initializes the value for theseedPopulation
attribute.(package private) void
ImmutableGPUEAConfiguration.InitShim.seedPopulation
(Collection<Genotype> seedPopulation) final ImmutableGPUEAConfiguration
<T> ImmutableGPUEAConfiguration.withGenotypeGenerator
(Supplier<Genotype> value) Copy the current immutable object by setting a present value for the optionalgenotypeGenerator
attribute.final ImmutableGPUEAConfiguration
<T> ImmutableGPUEAConfiguration.withGenotypeGenerator
(Optional<? extends Supplier<Genotype>> optional) Copy the current immutable object by setting an optional value for thegenotypeGenerator
attribute.final ImmutableGPUEAConfiguration
<T> ImmutableGPUEAConfiguration.withSeedPopulation
(Collection<Genotype> value) Copy the current immutable object by setting a value for theseedPopulation
attribute.Constructor parameters in net.bmahe.genetics4j.gpu.spec with type arguments of type GenotypeModifierConstructorDescriptionprivate
ImmutableGPUEAConfiguration
(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, Function<Population<T>, Population<T>> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, Program program, OpenCLFitness<T> fitness) private
ImmutableGPUEAConfiguration
(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, Function<Population<T>, Population<T>> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, Program program, OpenCLFitness<T> fitness) -
Uses of Genotype in net.bmahe.genetics4j.gpu.spec.fitness
Method parameters in net.bmahe.genetics4j.gpu.spec.fitness with type arguments of type GenotypeModifier and TypeMethodDescriptionvoid
MultiStageFitness.afterEvaluation
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) void
OpenCLFitness.afterEvaluation
(long generation, List<Genotype> genotypes) Global cleanup hook called after each generation evaluation.void
OpenCLFitness.afterEvaluation
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) Per-device cleanup hook called after each device partition evaluation.void
SingleKernelFitness.afterEvaluation
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) private void
MultiStageFitness.allocateLocalMemory
(OpenCLExecutionContext openCLExecutionContext, StageDescriptor stageDescriptor, long generation, List<Genotype> genotypes, KernelExecutionContext kernelExecutionContext) void
OpenCLFitness.beforeEvaluation
(long generation, List<Genotype> genotypes) Global preparation hook called before each generation evaluation.void
OpenCLFitness.beforeEvaluation
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) Per-device preparation hook called before each device partition evaluation.void
SingleKernelFitness.beforeEvaluation
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) FitnessExtractor.compute
(OpenCLExecutionContext openCLExecutionContext, KernelExecutionContext kernelExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes, ResultExtractor resultExtractor) int
MultipleComputer.compute
(OpenCLExecutionContext openCLExecutionContext, KernelExecutionContext kernelExecutionContext, long generation, List<Genotype> genotypes) MultiStageFitness.compute
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) abstract CompletableFuture
<List<T>> OpenCLFitness.compute
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) Performs the actual fitness computation using OpenCL kernels on the GPU.SingleKernelFitness.compute
(OpenCLExecutionContext openCLExecutionContext, ExecutorService executorService, long generation, List<Genotype> genotypes) protected void
MultiStageFitness.loadData
(OpenCLExecutionContext openCLExecutionContext, StageDescriptor stageDescriptor, Map<Integer, CLData> data, long generation, List<Genotype> genotypes) -
Uses of Genotype in net.bmahe.genetics4j.gpu.spec.fitness.cldata
Method parameters in net.bmahe.genetics4j.gpu.spec.fitness.cldata with type arguments of type GenotypeModifier and TypeMethodDescriptionDataSupplier.get
(OpenCLExecutionContext openCLExecutionContext, long generation, List<Genotype> genotypes) DataLoader.load
(OpenCLExecutionContext openCLExecutionContext, long generation, List<Genotype> genotypes) Loads genotype data into OpenCL device memory for GPU processing.long
LocalMemoryAllocator.load
(OpenCLExecutionContext openCLExecutionContext, KernelExecutionContext kernelExecutionContext, long generation, List<Genotype> genotypes) ResultAllocator.load
(OpenCLExecutionContext openCLExecutionContext, KernelExecutionContext kernelExecutionContext, long generation, List<Genotype> genotypes) -
Uses of Genotype in net.bmahe.genetics4j.gpu.spec.fitness.kernelcontext
Method parameters in net.bmahe.genetics4j.gpu.spec.fitness.kernelcontext with type arguments of type GenotypeModifier and TypeMethodDescriptionKernelExecutionContextComputer.compute
(OpenCLExecutionContext openCLExecutionContext, String kernelName, long generation, List<Genotype> genotypes) -
Uses of Genotype in net.bmahe.genetics4j.moo.nsga2.impl
Method parameters in net.bmahe.genetics4j.moo.nsga2.impl with type arguments of type GenotypeModifier and TypeMethodDescriptionNSGA2Selector.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> fitnessScore) TournamentNSGA2Selector.select
(AbstractEAConfiguration<T> eaConfiguration, int numIndividuals, List<Genotype> population, List<T> fitnessScore) -
Uses of Genotype in net.bmahe.genetics4j.moo.nsga2.spec
Fields in net.bmahe.genetics4j.moo.nsga2.spec with type parameters of type GenotypeModifier and TypeFieldDescriptionprivate Optional
<Comparator<Genotype>> ImmutableNSGA2Selection.Builder.deduplicate
private final Optional
<Comparator<Genotype>> ImmutableNSGA2Selection.deduplicate
private Optional
<Comparator<Genotype>> ImmutableNSGA2Selection.InitShim.deduplicate
private Optional
<Comparator<Genotype>> ImmutableTournamentNSGA2Selection.Builder.deduplicate
private final Optional
<Comparator<Genotype>> ImmutableTournamentNSGA2Selection.deduplicate
private Optional
<Comparator<Genotype>> ImmutableTournamentNSGA2Selection.InitShim.deduplicate
Methods in net.bmahe.genetics4j.moo.nsga2.spec that return types with arguments of type GenotypeModifier and TypeMethodDescriptionImmutableNSGA2Selection.deduplicate()
Comparator used for deduplication of solution prior to processing(package private) Optional
<Comparator<Genotype>> ImmutableNSGA2Selection.InitShim.deduplicate()
ImmutableTournamentNSGA2Selection.deduplicate()
Comparator used for deduplication of solution prior to processing(package private) Optional
<Comparator<Genotype>> ImmutableTournamentNSGA2Selection.InitShim.deduplicate()
NSGA2Selection.deduplicate()
Comparator used for deduplication of solution prior to processingTournamentNSGA2Selection.deduplicate()
Comparator used for deduplication of solution prior to processingMethod parameters in net.bmahe.genetics4j.moo.nsga2.spec with type arguments of type GenotypeModifier and TypeMethodDescriptionfinal NSGA2Selection.Builder
<T> ImmutableNSGA2Selection.Builder.deduplicate
(Optional<Comparator<Genotype>> deduplicate) Initializes the value for thededuplicate
attribute.(package private) void
ImmutableNSGA2Selection.InitShim.deduplicate
(Optional<Comparator<Genotype>> deduplicate) ImmutableTournamentNSGA2Selection.Builder.deduplicate
(Optional<Comparator<Genotype>> deduplicate) Initializes the value for thededuplicate
attribute.(package private) void
ImmutableTournamentNSGA2Selection.InitShim.deduplicate
(Optional<Comparator<Genotype>> deduplicate) static <U extends Number & Comparable<U>>
NSGA2Selection<FitnessVector<U>> NSGA2Selection.ofFitnessVector
(int numberObjectives, Comparator<Genotype> deduplicate) Factory method to instantiate a NSGA2Selection when fitness is defined as a FitnessVector of a Numberstatic <U extends Number & Comparable<U>>
TournamentNSGA2Selection<FitnessVector<U>> TournamentNSGA2Selection.ofFitnessVector
(int numberObjectives, int numberCandidates, Comparator<Genotype> deduplicate) Factory method to instantiate a Tournament based NSGA2 selection when fitness is defined as a FitnessVector of a Numberfinal ImmutableNSGA2Selection
<T> ImmutableNSGA2Selection.withDeduplicate
(Optional<Comparator<Genotype>> value) Copy the current immutable object by setting a value for thededuplicate
attribute.ImmutableTournamentNSGA2Selection.withDeduplicate
(Optional<Comparator<Genotype>> value) Copy the current immutable object by setting a value for thededuplicate
attribute.Constructor parameters in net.bmahe.genetics4j.moo.nsga2.spec with type arguments of type GenotypeModifierConstructorDescriptionprivate
ImmutableNSGA2Selection
(int numberObjectives, Comparator<T> dominance, Optional<Comparator<Genotype>> deduplicate, Function<Integer, Comparator<T>> objectiveComparator, ObjectiveDistance<T> distance) private
ImmutableTournamentNSGA2Selection
(int numberObjectives, Comparator<T> dominance, Optional<Comparator<Genotype>> deduplicate, Function<Integer, Comparator<T>> objectiveComparator, ObjectiveDistance<T> distance, int numCandidates) -
Uses of Genotype in net.bmahe.genetics4j.moo.spea2.replacement
Method parameters in net.bmahe.genetics4j.moo.spea2.replacement with type arguments of type Genotype -
Uses of Genotype in net.bmahe.genetics4j.moo.spea2.spec.replacement
Fields in net.bmahe.genetics4j.moo.spea2.spec.replacement with type parameters of type GenotypeModifier and TypeFieldDescriptionprivate Optional
<Comparator<Genotype>> ImmutableSPEA2Replacement.Builder.deduplicate
private final Optional
<Comparator<Genotype>> ImmutableSPEA2Replacement.deduplicate
private Optional
<Comparator<Genotype>> ImmutableSPEA2Replacement.InitShim.deduplicate
Methods in net.bmahe.genetics4j.moo.spea2.spec.replacement that return types with arguments of type GenotypeModifier and TypeMethodDescriptionImmutableSPEA2Replacement.deduplicate()
Comparator used for deduplication of solution prior to processing(package private) Optional
<Comparator<Genotype>> ImmutableSPEA2Replacement.InitShim.deduplicate()
SPEA2Replacement.deduplicate()
Comparator used for deduplication of solution prior to processingMethod parameters in net.bmahe.genetics4j.moo.spea2.spec.replacement with type arguments of type GenotypeModifier and TypeMethodDescriptionfinal SPEA2Replacement.Builder
<T> ImmutableSPEA2Replacement.Builder.deduplicate
(Optional<Comparator<Genotype>> deduplicate) Initializes the value for thededuplicate
attribute.(package private) void
ImmutableSPEA2Replacement.InitShim.deduplicate
(Optional<Comparator<Genotype>> deduplicate) static <U extends Number & Comparable<U>>
SPEA2Replacement<FitnessVector<U>> SPEA2Replacement.ofFitnessVector
(Comparator<Genotype> deduplicate) Factory method to instantiate a SPEA2Selection when fitness is defined as a FitnessVector of a Numberfinal ImmutableSPEA2Replacement
<T> ImmutableSPEA2Replacement.withDeduplicate
(Optional<Comparator<Genotype>> value) Copy the current immutable object by setting a value for thededuplicate
attribute.Constructor parameters in net.bmahe.genetics4j.moo.spea2.spec.replacement with type arguments of type GenotypeModifierConstructorDescriptionprivate
ImmutableSPEA2Replacement
(Comparator<T> dominance, Optional<Comparator<Genotype>> deduplicate, Optional<Integer> k, BiFunction<T, T, Double> distance) -
Uses of Genotype in net.bmahe.genetics4j.neat
Methods in net.bmahe.genetics4j.neat with parameters of type GenotypeModifier and TypeMethodDescriptionstatic float
NeatUtils.compatibilityDistance
(Genotype genotype1, Genotype genotype2, int chromosomeIndex, float c1, float c2, float c3) -
Uses of Genotype in net.bmahe.genetics4j.neat.selection
Method parameters in net.bmahe.genetics4j.neat.selection with type arguments of type Genotype -
Uses of Genotype in net.bmahe.genetics4j.samples
Methods in net.bmahe.genetics4j.samples with parameters of type GenotypeModifier and TypeMethodDescriptionstatic int
FitnessSharingExample.toPhenotype
(Genotype genotype) -
Uses of Genotype in net.bmahe.genetics4j.samples.clustering
Methods in net.bmahe.genetics4j.samples.clustering with parameters of type GenotypeModifier and TypeMethodDescriptionstatic double[][]
PhenotypeUtils.toPhenotype
(Genotype genotype) -
Uses of Genotype in net.bmahe.genetics4j.samples.mixturemodel
Fields in net.bmahe.genetics4j.samples.mixturemodel with type parameters of type GenotypeModifier and TypeFieldDescriptionstatic final Comparator
<Genotype> Main.deduplicator
private final Comparator
<Genotype> MooCPU.deduplicator
private final Comparator
<Genotype> MooGPU.deduplicator
Methods in net.bmahe.genetics4j.samples.mixturemodel that return GenotypeModifier and TypeMethodDescriptionstatic Genotype
Main.toGenotype
(int maxPossibleDistributions, org.apache.commons.math3.distribution.MixtureMultivariateNormalDistribution mixtureMultivariateNormalDistribution) Methods in net.bmahe.genetics4j.samples.mixturemodel with parameters of type GenotypeModifier and TypeMethodDescriptionstatic int[]
ClusteringUtils.assignClustersDoubleChromosome
(int distributionNumParameters, double[][] samples, Genotype genotype) static int[]
ClusteringUtils.assignClustersFloatChromosome
(int distributionNumParameters, double[][] samples, Genotype genotype) Method parameters in net.bmahe.genetics4j.samples.mixturemodel with type arguments of type GenotypeModifier and TypeMethodDescriptionMooCPU.run
(int maxPossibleDistributions, double[][] samples, float[] x, float[] y, String algorithmName, Collection<Genotype> seedPopulation) void
MooGPU.run
(int maxPossibleDistributions, int numDistributions, double[][] samplesDouble, float[][] samples, float[] x, float[] y, String algorithmName, Collection<Genotype> seedPopulation, EvolutionResult<FitnessVector<Float>> bestCPUResult) SingleObjectiveMethod.run
(int maxPossibleDistributions, double[][] samples, float[] x, float[] y, String algorithmName, Collection<Genotype> seedPopulation) Constructor parameters in net.bmahe.genetics4j.samples.mixturemodel with type arguments of type GenotypeModifierConstructorDescriptionMooCPU
(int _distributionNumParameters, Comparator<Genotype> _deduplicator, String _baseDir, int _maxGenerations) MooGPU
(int _distributionNumParameters, Comparator<Genotype> _deduplicator, String _baseDir, int _maxGenerations) -
Uses of Genotype in net.bmahe.genetics4j.samples.symbolicregression
Method parameters in net.bmahe.genetics4j.samples.symbolicregression with type arguments of type GenotypeModifier and TypeMethodDescriptionstatic <T extends Comparable<T>>
EvolutionListener<T> SymbolicRegressionUtils.csvLogger
(String filename, Function<EvolutionStep<T, List<Set<Integer>>>, Double> computeScore, Function<EvolutionStep<T, List<Set<Integer>>>, Double> computeComplexity, BiFunction<List<Genotype>, List<T>, List<FitnessVector<Double>>> convert2FitnessVector)