Easea.h 2.34 KB
Newer Older
1 2 3
#ifndef _EASEA__H
#define _EASEA__H

moh_lo's avatar
moh_lo committed
4 5 6 7 8 9
/****************************************************************************
Easea.h
General header for the EASEA language (EAsy Specification for Evolutionary Algorithms)

Pierre COLLET (Pierre.Collet@polytechnique.fr)
Ecole Polytechnique
10
Centre de Math?matiques Appliqu?es
moh_lo's avatar
moh_lo committed
11 12 13 14 15 16 17 18 19 20 21 22 23
91128 Palaiseau cedex
****************************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <assert.h>
#include <errno.h>

#define true 1
#define false 0

24
#define CUDA 4
25
#define STD 5
kruger's avatar
kruger committed
26 27
#define CMAES 6
#define MEMETIC 7
28 29 30 31

#define STD_FLAVOR_SO 0
#define STD_FLAVOR_MO 1
#define CUDA_FLAVOR_SO 0
maitre's avatar
maitre committed
32
#define CUDA_FLAVOR_MO 1
Ogier Maitre's avatar
Ogier Maitre committed
33
#define FLAVOR_GP 2
34 35
#define NSGAII 11 
#define ASREA  12
36
#define ASREAII 15
maitre's avatar
maitre committed
37

38

moh_lo's avatar
moh_lo committed
39 40 41 42
#define UNIX 1
#define WINDOWS 2
#define UNKNOWN_OS 3
#define YYTEXT_SIZE 10000
43

moh_lo's avatar
moh_lo committed
44 45
class CSymbol;

46 47
extern CSymbol *pCURRENT_CLASS, *pCURRENT_TYPE, *pGENOME, *pCLASSES[128];
extern int nClasses_nb;
moh_lo's avatar
moh_lo committed
48 49

extern   FILE *fpOutputFile, *fpTemplateFile, *fpGenomeFile, *fpExplodedGenomeFile;  
kruger's avatar
kruger committed
50
extern char sRAW_PROJECT_NAME[], sPROJECT_NAME[], sEO_DIR[], sEZ_PATH[1000],  sTPL_DIR[1000], sEZ_FILE_NAME[];
moh_lo's avatar
moh_lo committed
51
extern char sLOWER_CASE_PROJECT_NAME[];
maitre's avatar
maitre committed
52
extern char  sSELECTOR[], sSELECTOR_OPERATOR[], sRED_PAR[], sRED_PAR_OPERATOR[], sRED_FINAL[], sRED_FINAL_OPERATOR[], sRED_OFF[], sRED_OFF_OPERATOR[];
kruger's avatar
kruger committed
53
extern char sIP_FILE[];
moh_lo's avatar
moh_lo committed
54
extern bool bELITISM, bVERBOSE;
kruger's avatar
kruger committed
55 56
extern bool bBALDWINISM;
extern bool bPRINT_STATS, bPLOT_STATS, bGENERATE_CSV_FILE, bGENERATE_GNUPLOT_SCRIPT, bGENERATE_R_SCRIPT;
kruger's avatar
kruger committed
57
extern bool bSAVE_POPULATION, bSTART_FROM_FILE;
kruger's avatar
kruger committed
58 59
extern bool bREMOTE_ISLAND_MODEL;
extern bool bLINE_NUM_EZ_FILE;
Frederic's avatar
Frederic committed
60
extern char* nGENOME_NAME;
61
extern int nPOP_SIZE, nNB_GEN,nARCH_SIZE, nNB_OPT_IT, nOFF_SIZE, nPROBLEM_DIM, nTIME_LIMIT;
62
extern int nSERVER_PORT;
moh_lo's avatar
moh_lo committed
63 64
extern int nWARNINGS, nERRORS;
extern int TARGET, OPERATING_SYSTEM;
65
extern int TARGET_FLAVOR;
kruger's avatar
kruger committed
66 67 68
extern int nMINIMISE,nELITE;
extern float fMUT_PROB, fXOVER_PROB, fSURV_PAR_SIZE, fSURV_OFF_SIZE;
extern float fSELECT_PRM, fRED_PAR_PRM, fRED_FINAL_PRM, fRED_OFF_PRM;
69
extern float fMIGRATION_PROBABILITY;
kruger's avatar
kruger committed
70

71
extern unsigned iMAX_INIT_TREE_D,iMIN_INIT_TREE_D,iMAX_TREE_D,iNB_GPU,iPRG_BUF_SIZE,iMAX_TREE_DEPTH,iNO_FITNESS_CASES;
moh_lo's avatar
moh_lo committed
72 73

// Prototypes
Ogier Maitre's avatar
Ogier Maitre committed
74
extern int mystricmp(const char *, const char *);
75 76

#endif