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

GraphicEquationSolver Class Reference

#include <GAEquationSolver.h>

List of all members.

Public Methods

 GraphicEquationSolver (FreeGroup F, VectorOf< Chars > vNames, Word eq, const GHNConfig &config, Chars fn="")
Map getSolution (const Word &u, ostream *out=NULL)

Private Methods

Word mutate (const Word &u)
char mutateChar (char u)
int randomGen ()
Word randomWord ()
Word crossover (const Word &u, const Word &v)
char crossoverChar (char u, char v)
int fitness (Word u, Word v) const

Private Attributes

FreeGroup theGroup
GHNConfig cfg
VectorOf<CharsvarNames
int numOfVars
int numOfConsts
bool keepDetails
UniformRandom r
int maxWordLen
Word equation
Chars popFile


Constructor & Destructor Documentation

GraphicEquationSolver::GraphicEquationSolver ( FreeGroup F,
VectorOf< Chars > vNames,
Word eq,
const GHNConfig & config,
Chars fn = "" )
 


Member Function Documentation

Map GraphicEquationSolver::getSolution ( const Word & u,
ostream * out = NULL )
 

Word GraphicEquationSolver::mutate ( const Word & u ) [private]
 

char GraphicEquationSolver::mutateChar ( char u ) [private]
 

int GraphicEquationSolver::randomGen ( ) [private]
 

Word GraphicEquationSolver::randomWord ( ) [private]
 

Word GraphicEquationSolver::crossover ( const Word & u,
const Word & v ) [private]
 

char GraphicEquationSolver::crossoverChar ( char u,
char v ) [private]
 

int GraphicEquationSolver::fitness ( Word u,
Word v ) const [private]
 


Member Data Documentation

FreeGroup GraphicEquationSolver::theGroup [private]
 

Definition at line 164 of file GAEquationSolver.h.

GHNConfig GraphicEquationSolver::cfg [private]
 

Definition at line 165 of file GAEquationSolver.h.

VectorOf<Chars> GraphicEquationSolver::varNames [private]
 

Definition at line 166 of file GAEquationSolver.h.

int GraphicEquationSolver::numOfVars [private]
 

Definition at line 167 of file GAEquationSolver.h.

int GraphicEquationSolver::numOfConsts [private]
 

Definition at line 167 of file GAEquationSolver.h.

bool GraphicEquationSolver::keepDetails [private]
 

Definition at line 168 of file GAEquationSolver.h.

UniformRandom GraphicEquationSolver::r [private]
 

Definition at line 169 of file GAEquationSolver.h.

int GraphicEquationSolver::maxWordLen [private]
 

Definition at line 170 of file GAEquationSolver.h.

Word GraphicEquationSolver::equation [private]
 

Definition at line 171 of file GAEquationSolver.h.

Chars GraphicEquationSolver::popFile [private]
 

Definition at line 172 of file GAEquationSolver.h.


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