• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

main.h

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 /* Real operator settings */
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 /* Binary operator settings */
00028 #define P_CROSS_B  0.8
00029 
00030 /* Nominal operator settings */
00031 #define P_CROSS_N  0.8
00032 
00033 // Mutation probability is 1/n for all types
00034 
00035 /* Population memory allocation */
00036 void allocateMemoryPop(population* P, int size); // Function to allocate memory to a population 
00037 void allocateMemoryInd(individual* ind); // Function to allocate memory to an individual 
00038 void deallocateMemoryPop(population* P, int size); // Function to deallocate memory to a population 
00039 void deallocateMemoryInd(individual* ind); // Function to deallocate memory to an individual 
00040 
00041 /* Wrapper function to execute MOTestFunctions and WDN member functions from the Deb C nsga2-v1.1 code */
00042 void simulatorWrapper(double* xreal, double* xbin, int** gene, int* xnom, double* obj, double* constr);
00043 
00044 /* Log time that was needed to complete generation */
00045 void writeLog(double id, time_t elapsed, int currGen, bool feedback);
00046 
00047 

Generated on Tue Oct 4 2011 16:25:19 for WDN by  doxygen 1.7.2