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

ACGA Class Reference

#include <ACGA.h>

List of all members.

Public Methods

 ACGA (const FPGroup &G, const ACConfig &config)
bool transform (ostream &, ostream &best_out, ostream &equiv)
void putTestSet (const SetOf< PairOfWords > &s)
int fitness (Word &u, ListOf< Word > &conj)
Word randomWord ()
void print (Word &u, const ListOf< Word > &conj, ostream &out)

Private Methods

Word mutate (const Word &u)
int randomGen ()
Word crossover1 (const Word &w1, const Word &w2)
Word crossover2 (const Word &w1, const Word &w2)
int genToInsertAfter (Generator g)
int genToInsertBefore (Generator g)
int genToInsert (Generator g1, Generator g2)
Word randomPermutation ()
Word randomWordInGroup ()
void applyWhitehead (ostream &out)

Private Attributes

FPGroup theGroup
ACConfig cfg
UniformRandom r
int numberOfRelators
int numberOfGens
int numberOfTrans
VectorOf<Wordtransformations
VectorOf<WordrelatorsVector
VectorOf<WordtransferImage
VectorOf<WordcurrentBest
VectorOf<CharstrNames
AssociationsOf<int,int> reduces
int g
Word finalResult
int numberOfGenTransf
int numberOfRelTransf
bool useWhitehead
SetOf<PairOfWordstestSet

Friends

int main (int, char **)


Constructor & Destructor Documentation

ACGA::ACGA ( const FPGroup & G,
const ACConfig & config )
 


Member Function Documentation

bool ACGA::transform ( ostream &,
ostream & best_out,
ostream & equiv )
 

void ACGA::putTestSet ( const SetOf< PairOfWords > & s ) [inline]
 

Definition at line 83 of file ACGA.h.

int ACGA::fitness ( Word & u,
ListOf< Word > & conj )
 

Word ACGA::randomWord ( )
 

void ACGA::print ( Word & u,
const ListOf< Word > & conj,
ostream & out )
 

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

int ACGA::randomGen ( ) [private]
 

Word ACGA::crossover1 ( const Word & w1,
const Word & w2 ) [private]
 

Word ACGA::crossover2 ( const Word & w1,
const Word & w2 ) [private]
 

int ACGA::genToInsertAfter ( Generator g ) [private]
 

int ACGA::genToInsertBefore ( Generator g ) [private]
 

int ACGA::genToInsert ( Generator g1,
Generator g2 ) [private]
 

Word ACGA::randomPermutation ( ) [private]
 

Word ACGA::randomWordInGroup ( ) [private]
 

void ACGA::applyWhitehead ( ostream & out ) [private]
 


Friends And Related Function Documentation

int main ( int,
char ** ) [friend]
 


Member Data Documentation

FPGroup ACGA::theGroup [private]
 

Definition at line 128 of file ACGA.h.

ACConfig ACGA::cfg [private]
 

Definition at line 129 of file ACGA.h.

UniformRandom ACGA::r [private]
 

Definition at line 134 of file ACGA.h.

int ACGA::numberOfRelators [private]
 

Definition at line 135 of file ACGA.h.

int ACGA::numberOfGens [private]
 

Definition at line 136 of file ACGA.h.

int ACGA::numberOfTrans [private]
 

Definition at line 137 of file ACGA.h.

VectorOf<Word> ACGA::transformations [private]
 

Definition at line 138 of file ACGA.h.

VectorOf<Word> ACGA::relatorsVector [private]
 

Definition at line 139 of file ACGA.h.

VectorOf<Word> ACGA::transferImage [private]
 

Definition at line 140 of file ACGA.h.

VectorOf<Word> ACGA::currentBest [private]
 

Definition at line 141 of file ACGA.h.

VectorOf<Chars> ACGA::trNames [private]
 

Definition at line 142 of file ACGA.h.

AssociationsOf<int,int> ACGA::reduces [private]
 

Definition at line 143 of file ACGA.h.

int ACGA::g [private]
 

Definition at line 145 of file ACGA.h.

Word ACGA::finalResult [private]
 

Definition at line 146 of file ACGA.h.

int ACGA::numberOfGenTransf [private]
 

Definition at line 148 of file ACGA.h.

int ACGA::numberOfRelTransf [private]
 

Definition at line 149 of file ACGA.h.

bool ACGA::useWhitehead [private]
 

Definition at line 150 of file ACGA.h.

SetOf<PairOfWords> ACGA::testSet [private]
 

Definition at line 153 of file ACGA.h.


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