GeneticAlgorithm_MPI Class Reference

#include <GeneticAlgorithm_MPI.h>

Inheritance diagram for GeneticAlgorithm_MPI:

GeneticAlgorithm

List of all members.

Public Member Functions

 GeneticAlgorithm_MPI (Gene *G, Fitness *F, const unsigned int &PopSize, const int &Rank, const int &NumCPU, RandomNumberGenerator *RG)
 GeneticAlgorithm_MPI (Gene **G, Fitness *F, const unsigned int &PopSize, const unsigned int &TopToKeep, const unsigned int &BottomToDrop, const double &MutationRate, const int &Rank, const int &NumCPU, RandomNumberGenerator *RG)
 GeneticAlgorithm_MPI (Gene **G, Fitness *F, const unsigned int &PopSize, const unsigned int &TopToKeep, const unsigned int &BottomToDrop, const int &Rank, const int &NumCPU, RandomNumberGenerator *RG)
 GeneticAlgorithm_MPI (std::ifstream &Input, const int &Rank, const int &NumCPU, Fitness *F, RandomNumberGenerator *RG)
bool Run (const unsigned int &NumSteps)
double GetAverageFitness ()
double GetBestFitness ()
void PrintGenes ()
void PrintGenes_Divisible ()
bool EvaluateAllFitness (Gene **G, double *FA, const unsigned int PS)
void SaveGAToFile (std::ofstream &Output) const
int GetRank () const
 ~GeneticAlgorithm_MPI ()

Private Member Functions

void SlaveRun (Gene **G) const

Private Attributes

int MyRank
int NumComputers
FitnessMyFitness


Constructor & Destructor Documentation

GeneticAlgorithm_MPI::GeneticAlgorithm_MPI ( Gene G,
Fitness F,
const unsigned int &  PopSize,
const int &  Rank,
const int &  NumCPU,
RandomNumberGenerator *  RG 
)

GeneticAlgorithm_MPI::GeneticAlgorithm_MPI ( Gene **  G,
Fitness F,
const unsigned int &  PopSize,
const unsigned int &  TopToKeep,
const unsigned int &  BottomToDrop,
const double &  MutationRate,
const int &  Rank,
const int &  NumCPU,
RandomNumberGenerator *  RG 
)

GeneticAlgorithm_MPI::GeneticAlgorithm_MPI ( Gene **  G,
Fitness F,
const unsigned int &  PopSize,
const unsigned int &  TopToKeep,
const unsigned int &  BottomToDrop,
const int &  Rank,
const int &  NumCPU,
RandomNumberGenerator *  RG 
)

GeneticAlgorithm_MPI::GeneticAlgorithm_MPI ( std::ifstream &  Input,
const int &  Rank,
const int &  NumCPU,
Fitness F,
RandomNumberGenerator *  RG 
)

GeneticAlgorithm_MPI::~GeneticAlgorithm_MPI (  ) 


Member Function Documentation

bool GeneticAlgorithm_MPI::Run ( const unsigned int &  NumSteps  ) 

Reimplemented from GeneticAlgorithm.

double GeneticAlgorithm_MPI::GetAverageFitness (  ) 

Reimplemented from GeneticAlgorithm.

double GeneticAlgorithm_MPI::GetBestFitness (  ) 

Reimplemented from GeneticAlgorithm.

void GeneticAlgorithm_MPI::PrintGenes (  ) 

Reimplemented from GeneticAlgorithm.

void GeneticAlgorithm_MPI::PrintGenes_Divisible (  ) 

Reimplemented from GeneticAlgorithm.

bool GeneticAlgorithm_MPI::EvaluateAllFitness ( Gene **  G,
double *  FA,
const unsigned int  PS 
) [virtual]

Reimplemented from GeneticAlgorithm.

void GeneticAlgorithm_MPI::SaveGAToFile ( std::ofstream &  Output  )  const

Reimplemented from GeneticAlgorithm.

int GeneticAlgorithm_MPI::GetRank (  )  const

void GeneticAlgorithm_MPI::SlaveRun ( Gene **  G  )  const [private]


Member Data Documentation

int GeneticAlgorithm_MPI::MyRank [private]

int GeneticAlgorithm_MPI::NumComputers [private]

Fitness* GeneticAlgorithm_MPI::MyFitness [private]

Reimplemented from GeneticAlgorithm.


The documentation for this class was generated from the following files:
Generated on Tue Feb 24 20:53:08 2009 by  doxygen 1.5.3