summaryrefslogtreecommitdiffstats
path: root/configOPP.py
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2022-05-06 03:11:18 -0500
committerMitsuo Tokumori <[email protected]>2022-05-06 03:11:18 -0500
commit9ac1b21b42571c0e8e3dee9619931a670f1a3c10 (patch)
tree1d8dcc5c828927f0bc291a0c146182a20382b25b /configOPP.py
parenta7c5bec4705708eb87fb8d9a60b2868471ce702a (diff)
downloadVRPTW-ACO-python-master.tar.gz
VRPTW-ACO-python-master.tar.bz2
VRPTW-ACO-python-master.zip
Refactor some functions out of example1.pyHEADmaster
Diffstat (limited to 'configOPP.py')
-rw-r--r--configOPP.py52
1 files changed, 52 insertions, 0 deletions
diff --git a/configOPP.py b/configOPP.py
new file mode 100644
index 0000000..3caad8d
--- /dev/null
+++ b/configOPP.py
@@ -0,0 +1,52 @@
+"""
+Global Variables go here
+
+OPP = OdiParPack
+"""
+
+config = {
+ 'depot_num': 3, # number of depots
+ 'veh_types': { # Vehicle type properties (capacity)
+ 'typeA': 90,
+ 'typeB': 45,
+ 'typeC': 30
+ },
+ 'veh_fleet': { # Initial vehicle fleet locations
+ 'Lima': {
+ 'typeA': 4,
+ 'typeB': 7,
+ 'typeC': 10
+ },
+ 'Areq': {
+ 'typeA': 1,
+ 'typeB': 3,
+ 'typeC': 6
+ },
+ 'Truj': {
+ 'typeA': 1,
+ 'typeB': 5,
+ 'typeC': 8
+ }
+ },
+ 'veh_speed': { # Vehicle speed (depends on natural region) (km/h)
+ 'costa': {
+ 'costa': 70,
+ 'sierra': 50,
+ 'selva': 60 # temporal, no deberian haber tramos costa-selva
+ },
+ 'sierra': {
+ 'sierra': 60,
+ 'selva': 55
+ },
+ 'selva': {
+ 'selva': 65
+ }
+ },
+ 'veh_maint': {}, # Vehicle maintenance plans
+ 'veh_breakdown_downtime': { # Segun tipo de averia de vehiculos (minutes)
+ # TODO: double check if values are correct
+ 'moderada': 12 * 60,
+ 'fuerte': 72 * 60,
+ 'siniestro': 0
+ }
+}