00001 00020 #ifndef _CEC2005_H 00021 00022 #define _CEC2005_H 1 00023 00024 #include <stdio.h> 00025 #include <stdlib.h> 00026 00027 #include <string> 00028 #include "global.h" 00029 #include "rand.h" 00030 #include "sub.h" 00031 #include "../../common/define.h" 00032 00033 using namespace std; 00034 00035 #ifndef _tGen 00036 typedef long double tGen; 00037 #define _tGen 00038 #endif 00039 00045 bool isBound_cec2005(void); 00046 00054 void init_cec2005(Random *random, int nfun, int dim); 00055 00062 double eval_cec2005(const long double *x, int ndim); 00063 double eval_cec2005(const double *x, int ndim); 00064 00065 00070 void finish_cec2005(void); 00071 00080 void getInfo_cec2005(int fun, string &name, double &min, double &max, double &optime); 00081 00082 #endif