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

GANagataConfig Class Reference

#include <GANagata.h>

Inheritance diagram for GANagataConfig::

GAConfig List of all members.

Public Methods

 GANagataConfig (int popSize=50, int numOfGens=-1, int crossChance=100, int mutChance=100, ElitistSelectionType elitType=GAConfig::SIMPLE, bool fitScaling=true, int Report=1, int FitnessPrint=10, int PopulationPrint=100, int NumberOfVariables=3, Polynomial< Int2 > aPolynomial=Polynomial< Int2 >("x1+x2^2,"), int MaximalCoefficient=2, int MaximalPower=5, int MaximalNumberOfMonomials=1)
virtual bool setUserVariable (Chars varName, Chars value)
int numberOfVariables () const
Polynomial<Int2polynomial () const
int maximalCoefficient () const
int maximalPower () const
int maximalNumberOfMonomials () const
void printOn (ostream &ostr) const

Private Attributes

int theNumberOfVariables
Polynomial<Int2thePolynomial
int theMaximalCoefficient
int theMaximalPower
int theMaximalNumberOfMonomials

Constructor & Destructor Documentation

GANagataConfig::GANagataConfig ( int popSize = 50,
int numOfGens = -1,
int crossChance = 100,
int mutChance = 100,
ElitistSelectionType elitType = GAConfig::SIMPLE,
bool fitScaling = true,
int Report = 1,
int FitnessPrint = 10,
int PopulationPrint = 100,
int NumberOfVariables = 3,
Polynomial< Int2 > aPolynomial = Polynomial<Int2>("x1 + x2^2,"),
int MaximalCoefficient = 2,
int MaximalPower = 5,
int MaximalNumberOfMonomials = 1 )
 


Member Function Documentation

virtual bool GANagataConfig::setUserVariable ( Chars varName,
Chars value ) [virtual]
 

Reimplemented from GAConfig.

int GANagataConfig::numberOfVariables ( ) const [inline]
 

Definition at line 82 of file GANagata.h.

Polynomial< Int2 > GANagataConfig::polynomial<Int2> ( ) const [inline]
 

Definition at line 84 of file GANagata.h.

int GANagataConfig::maximalCoefficient ( ) const [inline]
 

Definition at line 86 of file GANagata.h.

int GANagataConfig::maximalPower ( ) const [inline]
 

Definition at line 88 of file GANagata.h.

int GANagataConfig::maximalNumberOfMonomials ( ) const [inline]
 

Definition at line 90 of file GANagata.h.

void GANagataConfig::printOn ( ostream & ostr ) const [virtual]
 

Reimplemented from GAConfig.


Member Data Documentation

int GANagataConfig::theNumberOfVariables [private]
 

Definition at line 117 of file GANagata.h.

Polynomial<Int2> GANagataConfig::thePolynomial [private]
 

Definition at line 118 of file GANagata.h.

int GANagataConfig::theMaximalCoefficient [private]
 

Definition at line 119 of file GANagata.h.

int GANagataConfig::theMaximalPower [private]
 

Definition at line 120 of file GANagata.h.

int GANagataConfig::theMaximalNumberOfMonomials [private]
 

Definition at line 121 of file GANagata.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:49:54 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001