-
Notifications
You must be signed in to change notification settings - Fork 2
/
runnerLondon.m
104 lines (99 loc) · 4.51 KB
/
runnerLondon.m
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
%% TC-03 - 'london Capped HD'
utils.initEnv;
scenario.name = 'london';
scenario.subName = 'HD-capped';
scenario.sumo.seed = 1000;
scenario.sumo.startTime = 0;
scenario.sumo.endTime = 3600;
scenario.sumo.stepLength = 0.1;
scenario.sumo.cfg = './sumoCfg/sim.sumocfg';
scenario.sumo.vehicleDistribution = './scenarios/london/additional_HD.xml';
scenario.sumo.maxVehicles = 250:250:1500;
scenario.sumo.port = 8897 + (1:length(scenario.sumo.maxVehicles));
scenario.sumo.noTrafficLights = false;
scenario.sumo.ActuatedTrafficLights = true;
scenario.sumo.leftHand = true;
utils.sumoSimulate;
%% TC-04 - 'london Capped AV'
utils.initEnv;
scenario.name = 'london';
scenario.subName = 'AV-capped';
scenario.sumo.seed = 1000;
scenario.sumo.startTime = 0;
scenario.sumo.endTime = 3600;
scenario.sumo.stepLength = 0.1;
scenario.sumo.cfg = './sumoCfg/sim.sumocfg';
scenario.sumo.vehicleDistribution = './scenarios/london/additional_AV.xml';
scenario.sumo.maxVehicles = 250:250:1500;
scenario.sumo.port = 8897 + (1:length(scenario.sumo.maxVehicles));
scenario.sumo.noTrafficLights = false;
scenario.sumo.ActuatedTrafficLights = true;
scenario.sumo.leftHand = true;
utils.sumoSimulate;
%% TC-05 - 'london Capped CAV'
utils.initEnv;
scenario.name = 'london';
scenario.subName = 'CAV-capped';
scenario.sumo.seed = 1000;
scenario.sumo.startTime = 0;
scenario.sumo.endTime = 3600;
scenario.sumo.stepLength = 0.1;
scenario.sumo.cfg = './sumoCfg/sim.sumocfg';
scenario.sumo.vehicleDistribution = './scenarios/london/additional_CAV.xml';
scenario.sumo.maxVehicles = 250:250:1500;
scenario.sumo.port = 8897 + (1:length(scenario.sumo.maxVehicles));
scenario.sumo.noTrafficLights = false;
scenario.sumo.ActuatedTrafficLights = true;
scenario.sumo.leftHand = true;
utils.sumoSimulate;
%% TC-00 - 'london Uncapped HD'
utils.initEnv;
scenario.name = 'london';
scenario.subName = 'HD-uncapped';
scenario.sumo.seed = 1000;
scenario.sumo.startTime = 0;
scenario.sumo.endTime = 3600;
scenario.sumo.stepLength = 0.1;
scenario.sumo.cfg = './sumoCfg/sim.sumocfg';
scenario.sumo.vehicleDistribution = './scenarios/london/additional_HD.xml';
scenario.sumo.maxVehicles = 0;
scenario.sumo.insertRate = 1:(-0.05):0.8;
scenario.sumo.port = 8897 + (1:length(scenario.sumo.insertRate));
scenario.sumo.noTrafficLights = false;
scenario.sumo.ActuatedTrafficLights = true;
scenario.sumo.leftHand = true;
utils.sumoSimulate;
%% TC-01 - 'london Uncapped AV'
utils.initEnv;
scenario.name = 'london';
scenario.subName = 'AV-uncapped';
scenario.sumo.seed = 1000;
scenario.sumo.startTime = 0;
scenario.sumo.endTime = 3600;
scenario.sumo.stepLength = 0.1;
scenario.sumo.cfg = './sumoCfg/sim.sumocfg';
scenario.sumo.vehicleDistribution = './scenarios/london/additional_AV.xml';
scenario.sumo.maxVehicles = 0;
scenario.sumo.insertRate = 1:(-0.05):0.8;
scenario.sumo.port = 8897 + (1:length(scenario.sumo.insertRate));
scenario.sumo.noTrafficLights = false;
scenario.sumo.ActuatedTrafficLights = true;
scenario.sumo.leftHand = true;
utils.sumoSimulate;
%% TC-02 - 'london Uncapped CAV'
utils.initEnv;
scenario.name = 'london';
scenario.subName = 'CAV-uncapped';
scenario.sumo.seed = 1000;
scenario.sumo.startTime = 0;
scenario.sumo.endTime = 3600;
scenario.sumo.stepLength = 0.1;
scenario.sumo.cfg = './sumoCfg/sim.sumocfg';
scenario.sumo.vehicleDistribution = './scenarios/london/additional_CAV.xml';
scenario.sumo.maxVehicles = 0;
scenario.sumo.insertRate = 1:(-0.05):0.8;
scenario.sumo.port = 8897 + (1:length(scenario.sumo.insertRate));
scenario.sumo.noTrafficLights = false;
scenario.sumo.ActuatedTrafficLights = true;
scenario.sumo.leftHand = true;
utils.sumoSimulate;