00001 00019 #ifndef _MA2PH_H 00020 00021 #define _MA2PH_H 1 00022 00023 #include "hybrid.h" 00024 00025 namespace realea { 00026 00034 class Hybrid2Ph : public Hybrid { 00035 public: 00044 Hybrid2Ph(IEAlgorithm *alg, ILocalSearch *ls) : Hybrid(alg,ls) { 00045 m_effort = -1; 00046 } 00047 00048 void setRunning(Running *running); 00049 00056 void setEffortRatio(double ratio); 00057 00061 unsigned realApply(tChromosomeReal &sol, tFitness &fitness); 00062 00063 void setMaxEval(unsigned int maxeval); 00064 00065 unsigned init(void); 00066 00067 private: 00068 double m_effort; 00069 }; 00070 00071 } 00072 00073 #endif