#include <HillClimb_MPI.h>

Public Member Functions | |
| HillClimb_MPI (Gene *G, Fitness *F, glotzmath::RandomNumberGenerator *RG, const int &Rank, const int &NumCPU) | |
| HillClimb_MPI (Gene *G, Fitness *F, glotzmath::RandomNumberGenerator *RG, const char &SType, const int &Rank, const int &NumCPU) | |
| HillClimb_MPI (std::ifstream &Input, Fitness *F, glotzmath::RandomNumberGenerator *RG, const int &Rank, const int &NumCPU) | |
| void | Run (const unsigned int &NumSteps) |
| bool | RunToLocalMax () |
| bool | RunToLocalMax (const unsigned int &MaxSteps) |
| virtual unsigned int | EvaluateAllFitness (Gene **Successors, double *FitArray, const unsigned int &NumSuccessors) |
| void | PrintGene () |
| virtual bool | GetSuccess (const bool &Suc) |
| ~HillClimb_MPI () | |
Private Member Functions | |
| void | SlaveRun (Gene **G) const |
Private Attributes | |
| int | MyRank |
| int | NumComputers |
| Fitness * | MyFitness |
| HillClimb_MPI::HillClimb_MPI | ( | Gene * | G, | |
| Fitness * | F, | |||
| glotzmath::RandomNumberGenerator * | RG, | |||
| const int & | Rank, | |||
| const int & | NumCPU | |||
| ) |
| HillClimb_MPI::HillClimb_MPI | ( | Gene * | G, | |
| Fitness * | F, | |||
| glotzmath::RandomNumberGenerator * | RG, | |||
| const char & | SType, | |||
| const int & | Rank, | |||
| const int & | NumCPU | |||
| ) |
| HillClimb_MPI::HillClimb_MPI | ( | std::ifstream & | Input, | |
| Fitness * | F, | |||
| glotzmath::RandomNumberGenerator * | RG, | |||
| const int & | Rank, | |||
| const int & | NumCPU | |||
| ) |
| HillClimb_MPI::~HillClimb_MPI | ( | ) |
| void HillClimb_MPI::Run | ( | const unsigned int & | NumSteps | ) |
Reimplemented from HillClimb.
| bool HillClimb_MPI::RunToLocalMax | ( | ) |
Reimplemented from HillClimb.
| bool HillClimb_MPI::RunToLocalMax | ( | const unsigned int & | MaxSteps | ) |
Reimplemented from HillClimb.
| unsigned int HillClimb_MPI::EvaluateAllFitness | ( | Gene ** | Successors, | |
| double * | FitArray, | |||
| const unsigned int & | NumSuccessors | |||
| ) | [virtual] |
Reimplemented from HillClimb.
| void HillClimb_MPI::PrintGene | ( | ) |
Reimplemented from HillClimb.
| bool HillClimb_MPI::GetSuccess | ( | const bool & | Suc | ) | [virtual] |
Reimplemented from HillClimb.
| void HillClimb_MPI::SlaveRun | ( | Gene ** | G | ) | const [private] |
int HillClimb_MPI::MyRank [private] |
int HillClimb_MPI::NumComputers [private] |
Fitness* HillClimb_MPI::MyFitness [private] |
Reimplemented from HillClimb.
1.5.3