Created by Scott Robert Ladd at Coyote Gulch Productions.
Reports the state of a population of solutions. More...
#include <function_optimizer.h>
A simple analyzer for diaplying information about the populations as it evolves.
libevocosm::function_analyzer::function_analyzer | ( | listener< function_solution > & | a_listener, |
size_t | max_iterations | ||
) | [inline] |
Creates a new analyzer object
a_listener | - a listener for events |
virtual bool libevocosm::function_analyzer::analyze | ( | const vector< function_solution > & | a_population, |
size_t | a_iteration, | ||
double & | a_fitness | ||
) | [virtual] |
The report method can do almost anything. In most case, it will display the "best" chromosome, draw a progress graph, or notify the user that another generation has passed. The return value tells an evocosm whether to continue evolution (changes in the population) or not.
a_population | - A population of organisms |
a_iteration | - Iteration count for this report |
a_fitness | - Assigned the fitness value; implementation-defined |
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.