Coupure prévue mardi 3 Août au matin pour maintenance du serveur. Nous faisons au mieux pour que celle-ci soit la plus brève possible.

Easea.h 2.01 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
/****************************************************************************
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

maitre's avatar
maitre committed
21
#define CUDA 4
22
#define STD 5
23
24
25

#define STD_FLAVOR_SO 0
#define STD_FLAVOR_MO 1
26
#define STD_FLAVOR_CMAES 2
kruger's avatar
kruger committed
27
#define STD_FLAVOR_MEMETIC 3
28
#define CUDA_FLAVOR_SO 0
maitre's avatar
maitre committed
29
#define CUDA_FLAVOR_MO 1
Frederic's avatar
Frederic committed
30
#define CUDA_FLAVOR_CMAES 2
maitre's avatar
maitre committed
31
#define CUDA_FLAVOR_GP 3
32
#define CUDA_FLAVOR_MEMETIC 4
maitre's avatar
maitre committed
33

34

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

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

extern   FILE *fpOutputFile, *fpTemplateFile, *fpGenomeFile, *fpExplodedGenomeFile;  
kruger's avatar
kruger committed
45
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
46
extern char sLOWER_CASE_PROJECT_NAME[];
maitre's avatar
maitre committed
47
48
extern float fSELECT_PRM, fRED_PAR_PRM, fRED_FINAL_PRM, fRED_OFF_PRM;
extern char  sSELECTOR[], sSELECTOR_OPERATOR[], sRED_PAR[], sRED_PAR_OPERATOR[], sRED_FINAL[], sRED_FINAL_OPERATOR[], sRED_OFF[], sRED_OFF_OPERATOR[];
moh_lo's avatar
moh_lo committed
49
50
extern int nMINIMISE,nELITE;
extern bool bELITISM, bVERBOSE;
kruger's avatar
kruger committed
51
52
extern bool bBALDWINISM;
extern bool bPRINT_STATS, bPLOT_STATS, bGENERATE_CSV_FILE, bGENERATE_GNUPLOT_SCRIPT, bGENERATE_R_SCRIPT;
Frederic's avatar
Frederic committed
53
extern char* nGENOME_NAME;
kruger's avatar
kruger committed
54
extern int nPOP_SIZE, nNB_GEN, nNB_OPT_IT, nOFF_SIZE, nPROBLEM_DIM, nTIME_LIMIT;
maitre's avatar
maitre committed
55
extern float fMUT_PROB, fXOVER_PROB, fSURV_PAR_SIZE, fSURV_OFF_SIZE;
moh_lo's avatar
moh_lo committed
56
57
58

extern int nWARNINGS, nERRORS;
extern int TARGET, OPERATING_SYSTEM;
59
extern int TARGET_FLAVOR;
60
extern bool bLINE_NUM_EZ_FILE;
moh_lo's avatar
moh_lo committed
61
62
63

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