Go to the documentation of this file.00001 #ifndef MOTestFunctions_
00002 #define MOTestFunctions_
00003
00004 #include "mies/SerialES/MixedIntegerES.h"
00005 extern "C"
00006 {
00007 #include "nsga2-v1.1/global.h"
00008 }
00009
00010 class MOTestFunctions
00011 {
00012 public:
00013 MOTestFunctions() { F.resize(3, 0); }
00014
00015 void DTLZ1(Individual* I) { DTLZ1(I, NULL, I->R.size(), NULL); }
00016 void DTLZ1(double* xreal, int nreal) { DTLZ1(NULL, xreal, nreal, NULL); }
00017
00018 void DTLZ2(Individual* I) { DTLZ2(I, NULL, I->R.size(), NULL); }
00019 void DTLZ2(double* xreal, int nreal) { DTLZ2(NULL, xreal, nreal, NULL); }
00020
00021 vector<double>* getF() { return &F; }
00022 protected:
00023 vector<double> F;
00024
00031 void DTLZ1(Individual* I, double* xreal, int n, double* inputNoise);
00032
00039 void DTLZ2(Individual* I, double* xreal, int n, double* inputNoise);
00040 };
00041
00042 #endif