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

GAConjProblemForORGroupSolver Class Reference

#include <GACPforORGSolver.h>

Inheritance diagram for GAConjProblemForORGroupSolver::

GAConjProblemForORGroupConjecture List of all members.

Public Methods

 GAConjProblemForORGroupSolver (const OneRelatorGroup &group, const Word &W1, const Word &W2, bool createFile=true, bool cp=true)
 ~GAConjProblemForORGroupSolver ()
GAConjProblemForORGroupSolver operator= (const GAConjProblemForORGroupSolver &solver)
bool isConj ()
int getNumberOfIterations () const
Chars getFileName () const

Static Public Methods

int rnd1 (int max)
int roulette (double d1, double d2)
int roulette (int num, double *d)
Word greedyReduce (const OneRelatorGroup &group, const Word &word)
bool oneGreedyReduce (const OneRelatorGroup &group, Word &w)
void insert (Word &dst, const Word &src, int pos)

Protected Methods

 GAConjProblemForORGroupSolver (const OneRelatorGroup &group, const Word &W1, const Word &W2, File *f)
void checkImprovementTime ()
int reproduction ()
bool tournament (GACPforORGSolverGene &gene)
int selectGene () const
void toStart (const Word &W1, const Word &W2)

Protected Attributes

bool conjProblem
int lastImprovement
int fitnessRate
int theIter1
int theIter2
double bestFit
bool deleteFile
AssociationsOf< Word , int > checkedWords
int numGenes
GACPforORGSolverGene** genes
GACPforORGSolverGenenewGene [2]
OneRelatorGroup theGroup
Word theWord1
Word theWord2

Static Protected Attributes

double prob [2][3]
const int NOCONJ

Constructor & Destructor Documentation

GAConjProblemForORGroupSolver::GAConjProblemForORGroupSolver ( const OneRelatorGroup & group,
const Word & W1,
const Word & W2,
bool createFile = true,
bool cp = true )

GAConjProblemForORGroupSolver::~GAConjProblemForORGroupSolver ( )

GAConjProblemForORGroupSolver::GAConjProblemForORGroupSolver ( const OneRelatorGroup & group,
const Word & W1,
const Word & W2,
File * f ) [protected]

Member Function Documentation

GAConjProblemForORGroupSolver GAConjProblemForORGroupSolver::operator= ( const GAConjProblemForORGroupSolver & solver )

bool GAConjProblemForORGroupSolver::isConj ( )

int GAConjProblemForORGroupSolver::getNumberOfIterations ( ) const [inline]

Definition at line 251 of file GACPforORGSolver.h.

Chars GAConjProblemForORGroupSolver::getFileName ( ) const [inline]

Definition at line 254 of file GACPforORGSolver.h.

Referenced by GAWordForORGroupARCer::getFileName(), and GAConjugacyForORGroupARCer::getFileName().

int GAConjProblemForORGroupSolver::rnd1 ( int max ) [static]

int GAConjProblemForORGroupSolver::roulette ( double d1,
double d2 ) [static]

int GAConjProblemForORGroupSolver::roulette ( int num,
double * d ) [static]

Word GAConjProblemForORGroupSolver::greedyReduce ( const OneRelatorGroup & group,
const Word & word ) [static]

bool GAConjProblemForORGroupSolver::oneGreedyReduce ( const OneRelatorGroup & group,
Word & w ) [static]

void GAConjProblemForORGroupSolver::insert ( Word & dst,
const Word & src,
int pos ) [static]

void GAConjProblemForORGroupSolver::checkImprovementTime ( ) [protected]

int GAConjProblemForORGroupSolver::reproduction ( ) [protected]

bool GAConjProblemForORGroupSolver::tournament ( GACPforORGSolverGene & gene ) [protected]

int GAConjProblemForORGroupSolver::selectGene ( ) const [protected]

void GAConjProblemForORGroupSolver::toStart ( const Word & W1,
const Word & W2 ) [protected]

Member Data Documentation

double GAConjProblemForORGroupSolver::prob[2][3] [static, protected]

Definition at line 300 of file GACPforORGSolver.h.

bool GAConjProblemForORGroupSolver::conjProblem [protected]

Definition at line 303 of file GACPforORGSolver.h.

int GAConjProblemForORGroupSolver::lastImprovement [protected]

Definition at line 307 of file GACPforORGSolver.h.

int GAConjProblemForORGroupSolver::fitnessRate [protected]

Definition at line 310 of file GACPforORGSolver.h.

int GAConjProblemForORGroupSolver::theIter1 [protected]

Definition at line 312 of file GACPforORGSolver.h.

int GAConjProblemForORGroupSolver::theIter2 [protected]

Definition at line 312 of file GACPforORGSolver.h.

double GAConjProblemForORGroupSolver::bestFit [protected]

Definition at line 315 of file GACPforORGSolver.h.

File* GAConjProblemForORGroupSolver::file [protected]

Definition at line 318 of file GACPforORGSolver.h.

bool GAConjProblemForORGroupSolver::deleteFile [protected]

Definition at line 319 of file GACPforORGSolver.h.

AssociationsOf< Word , int > GAConjProblemForORGroupSolver::checkedWords [protected]

Definition at line 328 of file GACPforORGSolver.h.

int GAConjProblemForORGroupSolver::numGenes [protected]

Definition at line 337 of file GACPforORGSolver.h.

GACPforORGSolverGene** GAConjProblemForORGroupSolver::genes [protected]

Definition at line 338 of file GACPforORGSolver.h.

GACPforORGSolverGene* GAConjProblemForORGroupSolver::newGene[2] [protected]

Definition at line 339 of file GACPforORGSolver.h.

OneRelatorGroup GAConjProblemForORGroupSolver::theGroup [protected]

Definition at line 348 of file GACPforORGSolver.h.

Word GAConjProblemForORGroupSolver::theWord1 [protected]

Definition at line 349 of file GACPforORGSolver.h.

Word GAConjProblemForORGroupSolver::theWord2 [protected]

Definition at line 350 of file GACPforORGSolver.h.

const int GAConjProblemForORGroupSolver::NOCONJ [static, protected]

Definition at line 352 of file GACPforORGSolver.h.

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