-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_scissor_multidep.jl
58 lines (48 loc) · 2.11 KB
/
example_scissor_multidep.jl
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
include("generator.jl")
networkshape = :crossring
# define bus types
buses = [
# type 1
Bustype(
25.0, # bus speed in km/h
15, # bus capacity according to Sales-Lentz on-demand e-buse
0.552, # energy consumption kWh/km according to Sales-Lentz on-demand e-buse
69, # max battery capacity kWh according to Sales-Lentz on-demand e-buse
),
# type 2
Bustype(
25.0, # bus speed in km/h
22, # bus capacity
0.552*1.5, # energy consumption kWh/km
69*1.5, # max battery capacity kWh
)
]
# define train lines
# ts_network = read_transit_network("crossring/")
ts_lines = [Transitline(:straight, 4, 5.0, 15.0, 60.0, 1.0),
Transitline(:straight, 4, 5.0, 15.0, 60.0, 1.0)]
# define depots
depot_coord = [[-3.0, 3.0], [3.0, -3.0]]
# define chargers
chargers = [Charger(3.0, 3.0, 50.0),
Charger(-3.0, -3.0, 100.0)] # charging speed in kWh/h: Europe DC charging speed https://alternative-fuels-observatory.ec.europa.eu/general-information/recharging-systems
# define all the parameters
params = Parameters(
buses, # set of buses
2.0, # maximum operational radius around a station
1.0, # maximum walking distance for each customer
10.0, # maximum waiting time at transit stations
10.0, # start time of operational period
15.0, # end time of operational period
depot_coord, # location of depots
5.1, # average walking speed of each customer in km/h (https://en.wikipedia.org/wiki/Preferred_walking_speed)
1.5, # detour index for each customer
chargers, # set of chargers
3, # number of dummies at each charger
0.5, # service time at each stop
15.0 # timewindow duration
)
annotate_offset = 0.4
generate(0, ts_lines, params, :scissor_deps; replace = 1)
# demand_list = collect(6:2:22)
# generate(demand_list, ts_lines, params, :scissor)