Api
GeneticAlgorithm.solveRosenbrock — FunctionsolveRosenbrock(; 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 variableb: rosenbrock function variablepopSize: 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 generationselectionFunc: 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