-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNetworkData.m
77 lines (63 loc) · 1.32 KB
/
NetworkData.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
%% Network Data
sim_dt = 3;
% On-ramp Flow Blending Coefficient
% Gamma = 1;
Gamma = 0;
v_ramp = 1;
% Split Ratios
beta1 = 0;
% beta1 = 0;
% beta1 = 0.1;
beta2 = 0;
% Multi Parametric Solution
MP = 0;
% Demands
d1 = 2.5;
d2 = 0.8;
d3 = 0.8;
% d1 = 2;%0*0.35* sim_dt;
% %d2 =2.002;0.1*0.5 * sim_dt;
% d2 = 0.4;%0.1*0.5 * sim_dt;
% d3 = 0.4;%0.1*0.5 * sim_dt;
% %d3 = 2.0002;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Period of time we consider non-zero demands
% K_dem = 25;
K_dem = 30;
% Cool down period
K_cool = 0;
%%%%%%%%%%%%%%%%%%%%%%%%%%%%
K = K_dem + K_cool;
% beta_bar = 1 - beta
beta1_bar = 1-beta1;
beta2_bar = 1-beta2;
% beta3_bar = 1-beta3;
% Free Flow Speeds
v1 = 0.24135 * sim_dt;
v2 = 0.24135 * sim_dt;
% Congestion Wave speed
w1 = 0.06034 * sim_dt;
w2 = 0.06034 * sim_dt;
% Jam densities for on-ramps
l1_jam = 9;
l2_jam = 9;
% The ratio of available speed in the main-line that can be allocated to
% on-ramps
N_c = 1-w1;
% Maximum Flow(Capacity)
f1_bar = 3*0.5556 * sim_dt;
% f1_bar = 4;
% f2_bar = 4;
f2_bar = 3*0.5556 * sim_dt;
r1_bar = 2*0.5556 * sim_dt;
% r1_bar = 2;
r2_bar = 2*0.5556 * sim_dt;
% r2_bar = 2;
% Jam Densities
n1_jam = f1_bar*(1/v1/beta1_bar+1/w1);
n2_jam = f2_bar*(1/v2/beta2_bar+1/w2);
% The weight of flows in the cost
% etha = 0.1;
etha = 1;
n1_crit = f1_bar/v1/beta1_bar;
n2_crit = f2_bar/v2/beta2_bar;