00001 00020 #ifndef _LSCROSS_H 00021 00022 #define _LSCROSS_H 1 00023 00024 #include <realea/common/ilocalsearch.h> 00025 00026 namespace realea { 00027 00031 class LSCross : public ILocalSearch { 00032 public: 00033 LSCross(double alpha); 00034 00035 protected: 00036 unsigned apply(ILSParameters *opt, tChromosomeReal &sol, tFitness &fitness, unsigned itera); 00037 ILSParameters *getInitOptions(tChromosomeReal &sol); 00038 private: 00039 unsigned applyNeigh(tChromosomeReal &sol, PopulationReal *pop, tFitness &fitness, unsigned maxeval); 00040 double m_alpha; 00041 }; 00042 00043 } 00044 00045 #endif