-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconst.py
24 lines (17 loc) · 865 Bytes
/
const.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
POPULATION_SIZE = 25
NUMBER_OF_PARENTS = 4
NUMBER_OF_GENERATIONS = 40
TIME_STEPS_GROUPOFPEOPLE = 100
MUTATION_PROBABILITY = 0.7
MAX_MUTATION = 0.3
X = 100
Y = 100
CHANCE_OF_INITIAL_INFECTION = 0.0005
FITNESS_ACCURACY = 200
QUARANTINE_DURATION = 10
ISOLATION_DURATION = 10
GENE_TYPES = {'healthcare', 'hygiene', 'mask', 'distancing', 'curfew', 'test_rate', 'quarantine_rules', 'isolation_rules'}
RUN_DATA = {'POPULATION_SIZE':POPULATION_SIZE, 'NUMBER_OF_PARENTS':NUMBER_OF_PARENTS, 'NUMBER_OF_GENERATIONS':NUMBER_OF_GENERATIONS,
'TIME_STEPS_GROUPOFPEOPLE':TIME_STEPS_GROUPOFPEOPLE, 'MUTATION_PROBABILITY':MUTATION_PROBABILITY, 'MAX_MUTATION':MAX_MUTATION,
'X':X, 'Y':Y, 'CHANCE_OF_INITIAL_INFECTION':CHANCE_OF_INITIAL_INFECTION, 'FITNESS_ACCURACY':FITNESS_ACCURACY,
'QUARANTINE_DURATION':QUARANTINE_DURATION, 'ISOLATION_DURATION':ISOLATION_DURATION}