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 GenotypeImmutableIndividual.Builder.genotypeprivate final GenotypeImmutableIndividual.genotypeFields 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(long generation, Population<T> population, int offspringsNeeded) Create offsprings without mutationEASystem.createOffsprings(long generation, 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(long generation, List<Genotype> genotypes) Methods in net.bmahe.genetics4j.core with parameters of type GenotypeModifier and TypeMethodDescriptionvoidAdds 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 thegenotypeattribute.static <T extends Comparable<T>>
Individual<T> Construct a new immutableIndividualinstance.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 thegenotypeattribute.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(long generation, 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 GenotypeModifierConstructorDescriptionprivateImmutableIndividual(Genotype genotype, T fitness) privateImmutableIndividual(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 GenotypeModifier and TypeFieldDescriptionDefaultEvolutionListener.prettyPrinterEvolutionListenerLogTopN.prettyPrinterMethod parameters in net.bmahe.genetics4j.core.evolutionlisteners with type arguments of type GenotypeModifier and TypeMethodDescriptionstatic <U extends Comparable<U>>
EvolutionListener<U> Creates a fully configurable default evolution listener.static <U extends Comparable<U>>
EvolutionListener<U> Creates a default evolution listener with custom genotype formatting.static <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) voidDefaultEvolutionListener.onEvolution(long generation, List<Genotype> population, List<T> fitness, boolean isDone) Called after each generation to notify about evolution progress.voidEvolutionListener.onEvolution(long generation, List<Genotype> population, List<T> fitness, boolean isDone) Called after each generation to notify about evolution progress.voidEvolutionListenerLogTopN.onEvolution(long generation, List<Genotype> population, List<T> fitness, boolean isDone) Logs the top N individuals for the current generation.voidSimpleEvolutionListener.onEvolution(long generation, List<Genotype> population, List<T> fitness, boolean isDone) Constructor parameters in net.bmahe.genetics4j.core.evolutionlisteners with type arguments of type GenotypeModifierConstructorDescriptionDefaultEvolutionListener(int topN, int skipN, Comparator<T> userComparator, Function<Genotype, String> prettyPrinter) Creates a fully configurable default evolution listener.DefaultEvolutionListener(int topN, Function<Genotype, String> prettyPrinter) Creates a default evolution listener with custom genotype formatting.EvolutionListenerLogTopN(org.apache.logging.log4j.Logger _logger, int _topN, int _skipN, Comparator<T> _userComparator, Function<Genotype, String> _prettyPrinter) Constructs a new EvolutionListenerLogTopN with full configuration options. -
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 GenotypeModifier and TypeMethodDescriptionApplies mutation to the given genotype and returns a new mutated 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.distanceprivate BiFunction<Genotype, Genotype, Double> ImmutableFitnessSharing.Builder.distanceprivate final BiFunction<Genotype, Genotype, Double> ImmutableFitnessSharing.distanceprivate final BiFunction<Genotype, Genotype, Double> ImmutableFitnessSharing.distanceMethods 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 thedistanceattribute.final ImmutableFitnessSharing.Builder<T> ImmutableFitnessSharing.Builder.distance(BiFunction<Genotype, Genotype, Double> distance) Initializes the value for thedistanceattribute.static FitnessSharing<Double> static FitnessSharing<Double> static <T extends Comparable<T>>
FitnessSharing<T> ImmutableFitnessSharing.of(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) Construct a new immutableFitnessSharinginstance.static <T extends Comparable<T>>
FitnessSharing<T> ImmutableFitnessSharing.of(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) Construct a new immutableFitnessSharinginstance.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 thedistanceattribute.final ImmutableFitnessSharing<T> ImmutableFitnessSharing.withDistance(BiFunction<Genotype, Genotype, Double> value) Copy the current immutable object by setting a value for thedistanceattribute.Constructor parameters in net.bmahe.genetics4j.core.postevaluationprocess with type arguments of type GenotypeModifierConstructorDescriptionprivateImmutableFitnessSharing(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) privateImmutableFitnessSharing(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) privateImmutableFitnessSharing(ImmutableFitnessSharing<T> original, BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing, BiFunction<Individual<T>, Double, T> scaleFitness) privateImmutableFitnessSharing(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, long generation, int numIndividuals, List<Genotype> population, List<T> populationScores, List<Genotype> offsprings, List<T> offspringScores) ElitismImpl.select(AbstractEAConfiguration<T> eaConfiguration, long generation, int numIndividuals, List<Genotype> population, List<T> populationScores, List<Genotype> offsprings, List<T> offspringScores) GenerationalReplacementImpl.select(AbstractEAConfiguration<T> eaConfiguration, long generation, int numIndividuals, List<Genotype> population, List<T> populationScores, List<Genotype> offsprings, List<T> offspringScores) ReplacementStrategyImplementor.select(AbstractEAConfiguration<T> eaConfiguration, long generation, 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> SelectiveRefinementTournamentSelector.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) ProportionalTournamentSelector.select(AbstractEAConfiguration<T> eaConfiguration, long generation, int numIndividuals, List<Genotype> population, List<T> fitnessScore) SelectiveRefinementTournamentSelector.select(AbstractEAConfiguration<T> eaConfiguration, long generation, int numIndividuals, List<Genotype> population, List<T> fitnessScore) Selector.select(AbstractEAConfiguration<T> eaConfiguration, long generation, 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, long generation, int numIndividuals, List<Genotype> population, List<T> fitnessScore) protected Individual<T> SelectiveRefinementTournamentSelector.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 GenotypeImmutableGenotypeFitness.Builder.genotypeprivate final GenotypeImmutableGenotypeFitness.genotypeFields in net.bmahe.genetics4j.core.spec with type parameters of type GenotypeModifier and TypeFieldDescriptionImmutableEAConfiguration.Builder.genotypeGeneratorImmutableEAConfiguration.genotypeGeneratorImmutableEAConfigurationBulkAsync.Builder.genotypeGeneratorImmutableEAConfigurationBulkAsync.genotypeGeneratorImmutableEvolutionResult.Builder.populationImmutableEvolutionResult.populationprivate Collection<Genotype> ImmutableEAConfiguration.Builder.seedPopulationprivate Collection<Genotype> ImmutableEAConfiguration.InitShim.seedPopulationprivate final Collection<Genotype> ImmutableEAConfiguration.seedPopulationprivate Collection<Genotype> ImmutableEAConfigurationBulkAsync.Builder.seedPopulationprivate Collection<Genotype> ImmutableEAConfigurationBulkAsync.InitShim.seedPopulationprivate final Collection<Genotype> ImmutableEAConfigurationBulkAsync.seedPopulationMethods 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 topopulationlist.ImmutableEvolutionResult.Builder.addPopulation(Genotype... elements) Adds elements topopulationlist.Initializes the value for thegenotypeattribute.static <U> GenotypeFitness<U> static <T> GenotypeFitness<T> Construct a new immutableGenotypeFitnessinstance.final ImmutableGenotypeFitness<T> ImmutableGenotypeFitness.withGenotype(Genotype value) Copy the current immutable object by setting a value for thegenotypeattribute.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 topopulationlist.final EAConfiguration.Builder<T> ImmutableEAConfiguration.Builder.genotypeGenerator(Supplier<Genotype> genotypeGenerator) Initializes the optional valuegenotypeGeneratorto genotypeGenerator.final EAConfiguration.Builder<T> ImmutableEAConfiguration.Builder.genotypeGenerator(Optional<? extends Supplier<Genotype>> genotypeGenerator) Initializes the optional valuegenotypeGeneratorto genotypeGenerator.ImmutableEAConfigurationBulkAsync.Builder.genotypeGenerator(Supplier<Genotype> genotypeGenerator) Initializes the optional valuegenotypeGeneratorto genotypeGenerator.ImmutableEAConfigurationBulkAsync.Builder.genotypeGenerator(Optional<? extends Supplier<Genotype>> genotypeGenerator) Initializes the optional valuegenotypeGeneratorto genotypeGenerator.static <T extends Comparable<T>>
EvolutionResult<T> ImmutableEvolutionResult.of(AbstractEAConfiguration<T> eaConfiguration, long generation, Iterable<? extends Genotype> population, Iterable<? extends T> fitness) Construct a new immutableEvolutionResultinstance.static <T extends Comparable<T>>
EvolutionResult<T> ImmutableEvolutionResult.of(AbstractEAConfiguration<T> eaConfiguration, long generation, List<Genotype> population, List<T> fitness) Construct a new immutableEvolutionResultinstance.ImmutableEvolutionResult.Builder.population(Iterable<? extends Genotype> elements) Sets or replaces all elements forpopulationlist.final EAConfiguration.Builder<T> ImmutableEAConfiguration.Builder.seedPopulation(Collection<Genotype> seedPopulation) Initializes the value for theseedPopulationattribute.(package private) voidImmutableEAConfiguration.InitShim.seedPopulation(Collection<Genotype> seedPopulation) ImmutableEAConfigurationBulkAsync.Builder.seedPopulation(Collection<Genotype> seedPopulation) Initializes the value for theseedPopulationattribute.(package private) voidImmutableEAConfigurationBulkAsync.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 optionalgenotypeGeneratorattribute.final ImmutableEAConfiguration<T> ImmutableEAConfiguration.withGenotypeGenerator(Optional<? extends Supplier<Genotype>> optional) Copy the current immutable object by setting an optional value for thegenotypeGeneratorattribute.ImmutableEAConfigurationBulkAsync.withGenotypeGenerator(Supplier<Genotype> value) Copy the current immutable object by setting a present value for the optionalgenotypeGeneratorattribute.ImmutableEAConfigurationBulkAsync.withGenotypeGenerator(Optional<? extends Supplier<Genotype>> optional) Copy the current immutable object by setting an optional value for thegenotypeGeneratorattribute.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 theseedPopulationattribute.ImmutableEAConfigurationBulkAsync.withSeedPopulation(Collection<Genotype> value) Copy the current immutable object by setting a value for theseedPopulationattribute.Constructors in net.bmahe.genetics4j.core.spec with parameters of type GenotypeModifierConstructorDescriptionprivateImmutableGenotypeFitness(Genotype genotype, T fitness) privateImmutableGenotypeFitness(ImmutableGenotypeFitness<T> original, Genotype genotype, T fitness) Constructor parameters in net.bmahe.genetics4j.core.spec with type arguments of type GenotypeModifierConstructorDescriptionprivateImmutableEAConfiguration(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, PostEvaluationProcessor<T> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, Fitness<T> fitness) privateImmutableEAConfiguration(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, PostEvaluationProcessor<T> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, Fitness<T> fitness) privateImmutableEAConfigurationBulkAsync(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, PostEvaluationProcessor<T> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, FitnessBulkAsync<T> fitness) privateImmutableEAConfigurationBulkAsync(List<ChromosomeSpec> chromosomeSpecs, SelectionPolicy parentSelectionPolicy, CombinationPolicy combinationPolicy, List<MutationPolicy> mutationPolicies, ReplacementStrategy replacementStrategy, PostEvaluationProcessor<T> postEvaluationProcessor, Termination<T> termination, Supplier<Genotype> genotypeGenerator, Collection<Genotype> seedPopulation, GenotypeCombinator genotypeCombinator, double offspringGeneratedRatio, Optimization optimization, FitnessBulkAsync<T> fitness) privateImmutableEvolutionResult(AbstractEAConfiguration<T> eaConfiguration, long generation, Iterable<? extends Genotype> population, Iterable<? extends T> fitness) privateImmutableEvolutionResult(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.