Evocosm - A C++ Framework for Evolutionary Computing

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.


Public Member Functions
libevocosm::function_landscape Class Reference

Defines the test for a population of solutions. More...

#include <function_optimizer.h>

Inheritance diagram for libevocosm::function_landscape:
libevocosm::landscape< function_solution > libevocosm::fopt_global libevocosm::globals

List of all members.

Public Member Functions


Detailed Description

A "fitness" landscape defines the environment in which an organism competes for survival. In the case of function optimization, the "test" is (obviously!) a function.


Constructor & Destructor Documentation

Creates a new landscape with a given fitness function.

Parameters:
a_functionfunction to be tested
a_listenera listener for events during testing

Satisfies the requirements of the base class; does nothing at this time.


Member Function Documentation

virtual double libevocosm::function_landscape::test ( function_solution a_organism,
bool  a_verbose = false 
) const [inline, virtual]

Tests a single chromosome for fitness by calling the fitness function provided in the constructor.

Parameters:
a_organismthe organism to be tested by the landscape.
a_verboseshould this test produce lots of output?
Returns:
Computed fitness for this organism

Implements libevocosm::landscape< function_solution >.

References libevocosm::organism< Genotype >::fitness, libevocosm::organism< Genotype >::genes, and libevocosm::function_solution::value.


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.