Easea.h 1.87 KB
Newer Older
moh_lo's avatar
moh_lo committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/****************************************************************************
Easea.h
General header for the EASEA language (EAsy Specification for Evolutionary Algorithms)

Pierre COLLET (Pierre.Collet@polytechnique.fr)
Ecole Polytechnique
Centre de Mathmatiques Appliques
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

#define GALIB 1
#define EO 2
#define DREAM 3
maitre's avatar
maitre committed
24
#define CUDA 4
25
#define STD 5
26
27
28

#define STD_FLAVOR_SO 0
#define STD_FLAVOR_MO 1
29
#define STD_FLAVOR_CMAES 2
30
#define CUDA_FLAVOR_SO 0
maitre's avatar
maitre committed
31
#define CUDA_FLAVOR_MO 1
32

moh_lo's avatar
moh_lo committed
33
34
35
36
37
38
#define UNIX 1
#define WINDOWS 2
#define UNKNOWN_OS 3
#define YYTEXT_SIZE 10000
class CSymbol;

maitre's avatar
maitre committed
39
40
extern CSymbol *pCURRENT_CLASS, *pCURRENT_TYPE, *pGENOME, *pCLASSES[128];
extern int nClasses_nb;
moh_lo's avatar
moh_lo committed
41
42

extern   FILE *fpOutputFile, *fpTemplateFile, *fpGenomeFile, *fpExplodedGenomeFile;  
maitre's avatar
rc-2    
maitre committed
43
extern char sRAW_PROJECT_NAME[], sPROJECT_NAME[], sEO_DIR[], sEZ_PATH[1000], sEZ_FILE_NAME[];
moh_lo's avatar
moh_lo committed
44
45
46
47
48
extern char sLOWER_CASE_PROJECT_NAME[];
extern char sREPLACEMENT[], sSELECTOR[], sSELECT_PRM[], sRED_PAR[], sRED_PAR_PRM[], sRED_FINAL[], sRED_FINAL_PRM[], sRED_OFF[], sRED_OFF_PRM[], sDISCARD[], sDISCARD_PRM[];
extern int nMINIMISE,nELITE;
extern bool bELITISM, bVERBOSE;
extern bool bPROP_SEQ;
Frederic's avatar
Frederic committed
49
50
extern char* nGENOME_NAME;
extern int nPOP_SIZE, nNB_GEN, nNB_ISLANDS, nOFF_SIZE, nSURV_PAR_SIZE, nSURV_OFF_SIZE, nPROBLEM_DIM;
moh_lo's avatar
moh_lo committed
51
52
53
54
55
56
extern float fMUT_PROB, fXOVER_PROB, fREPL_PERC, fMIG_FREQ;
extern int nMIG_CLONE, nNB_MIG, nIMMIG_REPL;
extern char sMIG_SEL[], sMIGRATOR[], sIMMIG_SEL[],sMIG_TARGET_SELECTOR[];

extern int nWARNINGS, nERRORS;
extern int TARGET, OPERATING_SYSTEM;
57
extern int TARGET_FLAVOR;
moh_lo's avatar
moh_lo committed
58
59
60

// Prototypes
extern int mystricmp(char *, char *);