Rivet::MendelMin Class Reference A genetic algorithm functional minimizer. More...
Detailed DescriptionA genetic algorithm functional minimizer. MendelMin implements a home brewed genetic algorithm for finding the minimum of a function defined on a unit hypercube returning a non-negative real number (eg. a Chi-squared value). Constructor & Destructor Documentation◆ MendelMin() [1/2]
Constructor with fixed parameters Mandatory arguments: the function, fin, to be minimised; the dimension, ndim, of the unit hypercube for which fin is defined; a set of fixed parameters not to be optimised. Optional arguments are: the number, npop, of individuals in the population; and margin which determines how much randomness is involved when an individual is evolved twowards the fittest individual. ◆ MendelMin() [2/2]
Constructor without fixed parameters Mandatory arguments: the function, fin, to be minimised; the dimension, ndim, of the unit hypercube for which fin is defined. Optional arguments are: the number, npop, of individuals in the population; and margin which determines how much randomness is involved when an individual is evolved twowards the fittest individual. Member Function Documentation◆ evolve()
Evolve the population a given number of generations and return the best fit value. References Rivet::minmax(). ◆ guess()
Supply a best guess for the fittest parameter point to help things along. ◆ minmax()
Calculate the fitness values of all individuals and put the fittest one first.
◆ move()Move a bad parameter point towards a better one. The new point is picked randomly within the generalized hypercube where bad and better are at diagonally opposite corners, enlarged by a fraction _margin. The documentation for this class was generated from the following file:
Generated on Thu Feb 29 2024 15:46:48 for Rivet by 1.9.8 |