Class GeneticOptimizer

java.lang.Object
org.episteme.core.mathematics.optimization.GeneticOptimizer

public class GeneticOptimizer extends Object
High-level optimizer that uses a Genetic Algorithm. Refactored to delegate to a high-performance technical backend using the Provider pattern.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • GeneticOptimizer

      public GeneticOptimizer()
  • Method Details

    • optimize

      public static Real[] optimize(Function<Real[],Real> fitnessFunction, int dimensions, int populationSize, int generations, double mutationRate)
      Optimizes a function using a genetic algorithm.
      Parameters:
      fitnessFunction - the function to minimize
      dimensions - number of variables
      populationSize - size of the population
      generations - number of iterations
      mutationRate - probability of mutation
      Returns:
      the best individual found