Api

GeneticAlgorithm.solveRosenbrockFunction

solveRosenbrock(; a::Integer, b::Integer, popSize::Integer, fitnessFunc::Function, unitValues::Union{Type, AbstractVector{<:AbstractFloat}, AbstractRange{<:Real}}, unitShape::AbstractVector{<:Integer}, genNum::Integer, crossRate::Real, mutRate::Real, nextGenAmt::Number, selectionFunc::Function, crossoverFunc::Function, mutationFunc::Function , terminationNum::Real )

Runs the rosenbrock function with the geneticAlgorithm

Arguments

  • a: rosenbrock function variable
  • b: rosenbrock function variable
  • popSize: Size of population.
  • fitnessFunc: Fitness function.
  • unitValues: Type of unit.
  • unitShape: Length of a unit vector.
  • genNum: Number of generations.
  • crossRate: Crossover rate.
  • mutRate: Mutation rate.
  • nextGenAmt: amount of genes that are automatically copied to new generation
  • selectionFunc: Selection function.
  • crossoverFunc: Crossover function.
  • mutationFunc: Mutation function.
  • terminationNum: number of iteration after which the algorithm aborts if there is no change in fitness value from the best gene
source