HillClimb_MPI Class Reference

#include <HillClimb_MPI.h>

Inheritance diagram for HillClimb_MPI:

HillClimb

List of all members.

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
FitnessMyFitness


Constructor & Destructor Documentation

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 (  ) 


Member Function Documentation

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]


Member Data Documentation

int HillClimb_MPI::MyRank [private]

int HillClimb_MPI::NumComputers [private]

Fitness* HillClimb_MPI::MyFitness [private]

Reimplemented from HillClimb.


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