-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun_Basic.py
97 lines (47 loc) · 2.44 KB
/
Run_Basic.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from optimization_All import *
###############
### ADDITIONAL CONFIGURATIONS CAN BE FOUND IN THE 'initilization()' METHOD IN 'optimization_all'
###############
dictVar = initialization()
files = ['optimalMinCost_Budget_Basic.json',\
'optimalMinCost_rFrac_Basic.json',\
'optimalMinCost_rTgt_Basic.json']
###############################
### Constant Cost Strategy
###############################
## OUTPUT FILE FOR SIMULATION / INPUT FILE FOR PLOTS
dictVar['filename'] = [files[0],]
## RUN SIMULATION
# optimalMinCost_Budget_Simulation(dictVar,t1 = 51, tstep = 2, minCost = 0, maxCost = 5.1E7, cStep = 2.5E6)
## 2D PLOT WITH DEATHS AS WHITE CONTOURS, COST AS COLOR REGIONS
# optimalMinCost_Budget_plots(dictVar)
# 2D PLOTS SHOWING DAY BY DAY INFORMATION BASED ON THE OPTIMAL VALUES ON EACH CONTOUR
# dictVar['filename'] = [ files[0] , 'optimalMinCost_Budget_Basic_Pareto.json' ]
# dictVar['recomputeData'] = False # SET FALSE IF YOU HAVE ALREADY COMPUTED THE DATA AND SAVED THE FILE.
# ctrlMeasures_paretoHeatmaps_Budget(dictVar)
###############################
### R-Frac Strategy
###############################
dictVar['rFrac'] = True
## OUTPUT FILE FOR SIMULATION / INPUT FILE FOR PLOTS
dictVar['filename'] = [files[1],]
# optimalMinCost_R_Simulation(dictVar,t1 = 51, tstep = 2, f0 = 0.5, ff = 1.0, fstep =0.02)
## 2D PLOT WITH DEATHS AS WHITE CONTOURS, COST AS COLOR REGIONS
# optimalMinCost_R_plots(dictVar)
## 2D PLOTS SHOWING DAY BY DAY INFORMATION BASED ON THE OPTIMAL VALUES ON EACH CONTOUR
# dictVar['filename'] = [ files[1] , 'optimalMinCost_rFrac_Basic_Pareto.json' ]
# dictVar['recomputeData'] = False # SET FALSE IF YOU HAVE ALREADY COMPUTED THE DATA AND SAVED THE FILE.
# ctrlMeasures_paretoHeatmaps_R(dictVar)
###############################
### R-Target Strategy
###############################
dictVar['rFrac'] = False
## OUTPUT FILE FOR SIMULATION / INPUT FILE FOR PLOTS
dictVar['filename'] = [files[2],]
# optimalMinCost_R_Simulation(dictVar,t1 = 51, tstep = 2, f0 = 0.5, ff = 1.0, fstep =0.02)
## 2D PLOT WITH DEATHS AS WHITE CONTOURS, COST AS COLOR REGIONS
# optimalMinCost_R_plots(dictVar)
## 2D PLOTS SHOWING DAY BY DAY INFORMATION BASED ON THE OPTIMAL VALUES ON EACH CONTOUR
# dictVar['filename'] = [ files[2] , 'optimalMinCost_rTgt_Basic_Pareto.json' ]
# dictVar['recomputeData'] = False # SET FALSE IF YOU HAVE ALREADY COMPUTED THE DATA AND SAVED THE FILE.
# ctrlMeasures_paretoHeatmaps_R(dictVar)