-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
125 lines (98 loc) · 3.64 KB
/
Copy pathconfig.py
File metadata and controls
125 lines (98 loc) · 3.64 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import os
BASE_DIR = os.getcwd()
JSON_DIR = os.path.join(BASE_DIR, "dataset")
MAP_DIR = os.path.join(BASE_DIR, "maps")
os.makedirs(JSON_DIR, exist_ok=True)
os.makedirs(MAP_DIR, exist_ok=True)
ROAD_NODES_FILE = os.path.join(JSON_DIR, "road_nodes.json")
ROAD_EDGES_FILE = os.path.join(JSON_DIR, "road_edges.json")
HOTSPOT_FILE = os.path.join(JSON_DIR, "hotspots.json")
DEMAND_POINTS_FILE = os.path.join(JSON_DIR, "demand_points.json")
USER_MAP_FILE = os.path.join(JSON_DIR, "user_map.json")
RU_OUTPUT_FILE = os.path.join(JSON_DIR, "radio_units.json")
DU_OUTPUT_FILE = os.path.join(JSON_DIR, "distributed_units.json")
CU_OUTPUT_FILE = os.path.join(JSON_DIR, "centralised_units.json")
RU_BACKUP_FILE = os.path.join(JSON_DIR, "radio_units_backup.json")
RU_EXISTING_FILE = os.path.join(JSON_DIR, "radio_units_exist.json")
RU_NEW_FILE = os.path.join(JSON_DIR, "radio_units_new.json")
DU_EXISTING_FILE = os.path.join(JSON_DIR, "distributed_units_exist.json")
DU_NEW_FILE = os.path.join(JSON_DIR, "distributed_units_new.json")
RU_DU_PATHS_FILE = os.path.join(JSON_DIR, "ru_du_paths.json")
RU_DU_PATHS_NEW_FILE = os.path.join(JSON_DIR, "ru_du_path_new.json")
RU_DU_PATHS_EXIST_GRAPH_FILE = os.path.join(JSON_DIR, "ru_du_path_exist_graph.json")
RU_DU_PATHS_EXIST_FILE = os.path.join(JSON_DIR, "ru_du_path_exist.json")
DU_CU_PATHS_FILE = os.path.join(JSON_DIR, "du_cu_paths.json")
DU_CU_PATHS_NEW_FILE = os.path.join(JSON_DIR, "du_cu_path_new.json")
DU_CU_PATHS_EXIST_FILE = os.path.join(JSON_DIR, "du_cu_path_exist.json")
# ============================================================
# RU Parameters
# ============================================================
NUM_RUS = 75
RU_RANGE_M = 500
RU_CAPACITY = 10000
NUM_EXISTING_RUS = 5
BACKUP_RUS_PER_HOTSPOT = 5
MIN_BACKUP_RU_SPACING_M = 50
# ============================================================
# DU Parameters
# ============================================================
NUM_DUS = 15
DU_CAPACITY = 400000
DU_PORTS = 50
NUM_EXISTING_DUS = 1
# ============================================================
# CU Parameters
# ============================================================
CU_CAPACITY = 3000000000000000000
CU_PORTS = 3000
# ============================================================
# Hotspots
# ============================================================
NUM_HOTSPOTS = 3
HOTSPOT_SIZE = 500
MIN_HOTSPOT_SPACING_M = 1500
# ============================================================
# Demand Points
# ============================================================
GRID_SIZE_M = 250
BASE_USERS_PER_DEMAND = 3
MAX_ROAD_DISTANCE_M = 250
# ============================================================
# User Clusters
# ============================================================
NUM_CLUSTERS = 2
CLUSTER_RADIUS_M = 1200
CLUSTER_CORE_USERS = 6
CLUSTER_EDGE_USERS = 5
# ============================================================
# Polygon Coordinates
# ============================================================
EXISTING_REGION_RADIUS_M = 4000
POLYGON_COORDS = [
(150.4381, -35.4124),
(150.4229, -35.4036),
(150.4320, -35.3865),
(150.4339, -35.3759),
(150.4299, -35.3698),
(150.4410, -35.3556),
(150.4470, -35.3303),
(150.4416, -35.3257),
(150.4413, -35.3217),
(150.4286, -35.3199),
(150.4252, -35.3288),
(150.4239, -35.3386),
(150.4119, -35.3458),
(150.4110, -35.3483),
(150.4068, -35.3479),
(150.4105, -35.3403),
(150.4235, -35.2976),
(150.4162, -35.2961),
(150.4179, -35.2863),
(150.4279, -35.2878),
(150.4282, -35.2945),
(150.4349, -35.3038),
(150.4612, -35.2930),
(150.4967, -35.2979),
(150.4955, -35.3689),
(150.4387, -35.4126)
]