#include <GeneticAlgorithm_MPI.h>

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 |
| Fitness * | MyFitness |
| 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 | ( | ) |
| 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] |
int GeneticAlgorithm_MPI::MyRank [private] |
int GeneticAlgorithm_MPI::NumComputers [private] |
Fitness* GeneticAlgorithm_MPI::MyFitness [private] |
Reimplemented from GeneticAlgorithm.
1.5.3