Go to the documentation of this file.00001 #include <stdio.h>
00002 #include <sys/stat.h>
00003 #include "mies/SerialES/global.h"
00004
00005 #include "MOTestFunctions.h"
00006 #include "WDN.h"
00007
00008 #ifdef MIES
00009 #include "mies/SerialES/TestFunctions_MIES.h"
00010 #include "WDN_MIES.h"
00011 #endif
00012
00013 extern "C"
00014 {
00015 #include "nsga2-v1.1/global.h"
00016 #include "nsga2-v1.1/rand.h"
00017 }
00018
00019 #define SNAPSHOTS "generate_snap_shots"
00020 #define REPORT_WINDOW 50 // Number of generations progress is reported for
00021
00022
00023 #define P_CROSS_R 0.8
00024 #define DIST_IDX_C 15 // 5-20
00025 #define DIST_IDX_M 20 // 5-50
00026
00027
00028 #define P_CROSS_B 0.8
00029
00030
00031 #define P_CROSS_N 0.8
00032
00033
00034
00035
00036 void allocateMemoryPop(population* P, int size);
00037 void allocateMemoryInd(individual* ind);
00038 void deallocateMemoryPop(population* P, int size);
00039 void deallocateMemoryInd(individual* ind);
00040
00041
00042 void simulatorWrapper(double* xreal, double* xbin, int** gene, int* xnom, double* obj, double* constr);
00043
00044
00045 void writeLog(double id, time_t elapsed, int currGen, bool feedback);
00046
00047