Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members

AdaptiveGrid Class Reference

#include <AdaptiveGrid.h>

List of all members.

Public Member Functions

 AdaptiveGrid ()
 Constructor.

 AdaptiveGrid (int depth, int numberOfFunctions)
 Constructor.

 ~AdaptiveGrid ()
 Destructor.

void updateGridLocations (Population *population, Individual *individual)
 Update the grid locations.

int findLocation (Individual *individual)
 Find the location of the individual in the adaptive grid.


Public Attributes

int * hypercube_
 Hypercube division for keeping diversity.

double * divisionSize_
 Division sizes of the adaptive grid.

double * gridLimits_
 Limits of the adaptive grid.

long currentGridSize_
 Current size of the adaptive grid.

int mostCrowdedHypercube_
int numberOfFunctions_
int depth_
double * upperBestFitness_
double * lowerBestFitness_

Private Attributes

int * increment_
double * tmpDivisionSize_


Constructor & Destructor Documentation

AdaptiveGrid::AdaptiveGrid  ) 
 

Constructor of the class

Definition at line 16 of file AdaptiveGrid.cpp.

AdaptiveGrid::AdaptiveGrid int  depth,
int  numberOfFunctions
 

Constructor of the class

Definition at line 24 of file AdaptiveGrid.cpp.

References currentGridSize_, depth_, divisionSize_, gridLimits_, hypercube_, increment_, lowerBestFitness_, numberOfFunctions_, tmpDivisionSize_, and upperBestFitness_.

AdaptiveGrid::~AdaptiveGrid  ) 
 

Destructor of the class

Definition at line 58 of file AdaptiveGrid.cpp.


Member Function Documentation

int AdaptiveGrid::findLocation Individual individual  ) 
 

Definition at line 113 of file AdaptiveGrid.cpp.

References depth_, divisionSize_, Individual::getFitness(), increment_, lowerBestFitness_, numberOfFunctions_, and tmpDivisionSize_.

Referenced by Paes::start(), and updateGridLocations().

void AdaptiveGrid::updateGridLocations Population population,
Individual individual
 

Definition at line 65 of file AdaptiveGrid.cpp.

References depth_, divisionSize_, findLocation(), Individual::getFitness(), Population::getIth(), Population::getPopulationSize(), Individual::gridLocation_, hypercube_, lowerBestFitness_, MAX_INT, MIN_INT, mostCrowdedHypercube_, numberOfFunctions_, and upperBestFitness_.

Referenced by Paes::start().


Member Data Documentation

long AdaptiveGrid::currentGridSize_
 

Definition at line 27 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid().

int AdaptiveGrid::depth_
 

Definition at line 31 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid(), findLocation(), and updateGridLocations().

double* AdaptiveGrid::divisionSize_
 

Definition at line 25 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid(), findLocation(), and updateGridLocations().

double* AdaptiveGrid::gridLimits_
 

Definition at line 26 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid().

int* AdaptiveGrid::hypercube_
 

Definition at line 24 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid(), Paes::start(), and updateGridLocations().

int* AdaptiveGrid::increment_ [private]
 

Definition at line 50 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid(), and findLocation().

double* AdaptiveGrid::lowerBestFitness_
 

Definition at line 34 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid(), findLocation(), and updateGridLocations().

int AdaptiveGrid::mostCrowdedHypercube_
 

Definition at line 28 of file AdaptiveGrid.h.

Referenced by Paes::archiveSolution(), and updateGridLocations().

int AdaptiveGrid::numberOfFunctions_
 

Definition at line 30 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid(), findLocation(), and updateGridLocations().

double* AdaptiveGrid::tmpDivisionSize_ [private]
 

Definition at line 51 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid(), and findLocation().

double* AdaptiveGrid::upperBestFitness_
 

Definition at line 33 of file AdaptiveGrid.h.

Referenced by AdaptiveGrid(), and updateGridLocations().


The documentation for this class was generated from the following files:
Generated on Wed Feb 11 10:38:03 2004 for Paes by doxygen 1.3.3