Evocosm - A C++ Framework for Evolutionary Computing

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.


Public Member Functions
libevocosm::function_optimizer Class Reference

A generic function optimizer. More...

#include <function_optimizer.h>

Inheritance diagram for libevocosm::function_optimizer:
libevocosm::fopt_global libevocosm::function_listener libevocosm::null_listener< function_solution > libevocosm::listener< function_solution >

List of all members.

Public Member Functions


Detailed Description

Using instances of the other classes, this class binds together the pieces to create a complete function optimizer. A user of this class defines two functions -- a solution initializer and a fitness test -- that define the target problem.


Constructor & Destructor Documentation

libevocosm::function_optimizer::function_optimizer ( t_function a_function,
size_t  a_nargs,
double  a_minarg,
double  a_maxarg,
size_t  a_norgs,
double  a_mutation_rate,
size_t  a_iterations 
)

Creates a new function_optimizer with the given set of parameters.

Parameters:
a_function- Address of the function to be optimized.
a_nargs- number of arguments per solution
a_minarg- minimum argument value
a_maxarg- maximum argument value
a_norgs- The size of the solution population.
a_mutation_rate- Mutation rate in the range [0,1].
a_iterations- Number of iterations to perform when doing a run.

Cleans up resources by removing allocated objects.


Member Function Documentation

This is where the work gets done; run iterates the number of times specificed when creating this function_optimizer, reporting via a function_analyzer object on the progress of optimization.


The documentation for this class was generated from the following file:

© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.