Commit a8ce538a authored by guido basten's avatar guido basten

Corrected test_3

Changed test_1
updated test_explanation.txt
parent acc7761c
Pipeline #21793 passed with stages
in 9 minutes and 13 seconds
......@@ -7,170 +7,40 @@
<room id="0" caption="hall">
<subroom id="0" caption="start" class="subroom" A_x="0" B_y="0" C_z="0">
<polygon caption="wall" type="internal">
<vertex px="7" py="5"/>
<vertex px="7" py="0"/>
<vertex px="5" py="5"/>
<vertex px="0" py="5"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="7" py="0"/>
<vertex px="14" py="0"/>
<vertex px="0" py="5"/>
<vertex px="0" py="0"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="14" py="0"/>
<vertex px="14" py="5"/>
<vertex px="0" py="0"/>
<vertex px="5" py="0"/>
</polygon>
</subroom>
<subroom id="1" caption="hall" class="subroom" A_x="0" B_y="0" C_z="0">
<polygon caption="wall" type="internal">
<vertex px="4" py="5"/>
<vertex px="7" py="5"/>
<vertex px="5" py="5"/>
<vertex px="60" py="5"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="14" py="5"/>
<vertex px="17" py="5"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="21" py="5"/>
<vertex px="21" py="6"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="21" py="10"/>
<vertex px="21" py="15"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="21" py="20"/>
<vertex px="21" py="19"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="17" py="20"/>
<vertex px="4" py="20"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="0" py="16"/>
<vertex px="0" py="9"/>
<vertex px="5" py="0"/>
<vertex px="60" py="0"/>
</polygon>
</subroom>
<crossings>
<crossing id="0" subroom1_id="0" subroom2_id="1">
<vertex px="7" py="5"/>
<vertex px="14" py="5"/>
<vertex px="5" py="0"/>
<vertex px="5" py="5"/>
</crossing>
</crossings>
</room>
<room id="1" caption="floor">
<subroom id="0" caption="floor" class="subroom" A_x="0" B_y="0" C_z="0">
<polygon caption="wall" type="internal">
<vertex px="21" py="15"/>
<vertex px="34" py="15"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="34" py="15"/>
<vertex px="34" py="19"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="34" py="19"/>
<vertex px="32" py="19"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="30" py="19"/>
<vertex px="29" py="19"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="27" py="19"/>
<vertex px="26" py="19"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="24" py="19"/>
<vertex px="21" py="19"/>
</polygon>
</subroom>
<subroom id="1" caption="floor" class="subroom" A_x="0" B_y="0" C_z="0">
<polygon caption="wall" type="internal">
<vertex px="21" py="10"/>
<vertex px="34" py="10"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="34" py="10"/>
<vertex px="34" py="0"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="34" py="0"/>
<vertex px="32" py="0"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="30" py="0"/>
<vertex px="29" py="0"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="27" py="0"/>
<vertex px="26" py="0"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="24" py="0"/>
<vertex px="21" py="0"/>
</polygon>
<polygon caption="wall" type="internal">
<vertex px="21" py="0"/>
<vertex px="21" py="6"/>
</polygon>
</subroom>
</room>
</rooms>
<transitions>
<transition id="0" caption="main exit" type="emergency" room1_id="0" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="0" py="20"/>
<vertex px="4" py="20"/>
</transition>
<transition id="1" caption="main exit" type="emergency" room1_id="0" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="17" py="20"/>
<vertex px="21" py="20"/>
</transition>
<transition id="2" caption="main exit" type="emergency" room1_id="0" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="0" py="20"/>
<vertex px="0" py="16"/>
</transition>
<transition id="3" caption="main exit" type="emergency" room1_id="0" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="0" py="9"/>
<vertex px="0" py="5"/>
</transition>
<transition id="4" caption="main exit" type="emergency" room1_id="0" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="0" py="5"/>
<vertex px="4" py="5"/>
</transition>
<transition id="5" caption="main exit" type="emergency" room1_id="0" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="17" py="5"/>
<vertex px="21" py="5"/>
</transition>
<transition id="6" caption="transition" type="emergency" room1_id="0" subroom1_id="1" room2_id="1" subroom2_id="0">
<vertex px="21" py="19"/>
<vertex px="21" py="15"/>
</transition>
<transition id="7" caption="transition" type="emergency" room1_id="0" subroom1_id="1" room2_id="1" subroom2_id="1">
<vertex px="21" py="10"/>
<vertex px="21" py="6"/>
</transition>
<transition id="10" caption="main_exit" type="emergency" room1_id="1" subroom1_id="0" room2_id="-1" subroom2_id="-1">
<vertex px="24" py="19"/>
<vertex px="26" py="19"/>
</transition>
<transition id="11" caption="main_exit" type="emergency" room1_id="1" subroom1_id="0" room2_id="-1" subroom2_id="-1">
<vertex px="27" py="19"/>
<vertex px="29" py="19"/>
</transition>
<transition id="12" caption="main_exit" type="emergency" room1_id="1" subroom1_id="0" room2_id="-1" subroom2_id="-1">
<vertex px="30" py="19"/>
<vertex px="32" py="19"/>
</transition>
<transition id="13" caption="main_exit" type="emergency" room1_id="1" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="24" py="0"/>
<vertex px="26" py="0"/>
</transition>
<transition id="14" caption="main_exit" type="emergency" room1_id="1" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="27" py="0"/>
<vertex px="29" py="0"/>
</transition>
<transition id="15" caption="main_exit" type="emergency" room1_id="1" subroom1_id="1" room2_id="-1" subroom2_id="-1">
<vertex px="30" py="0"/>
<vertex px="32" py="0"/>
<vertex px="60" py="0"/>
<vertex px="60" py="5"/>
</transition>
</transitions>
</geometry>
......@@ -7,181 +7,88 @@
<!-- seed used for initialising random generator -->
<seed>12542</seed>
<!-- geometry file -->
<max_sim_time>300</max_sim_time>
<max_sim_time>500</max_sim_time>
<geometry>geometry.xml</geometry>
<!--<geometry>wa_triangle_geo_wa_outside3.xml</geometry>-->
<events_file>events_list.xml</events_file>
<event_realtime>events.txt</event_realtime>
<!-- traectories file and format -->
<trajectories format="xml-plain" fps="8">
<trajectories format="xml-plain" fps="8" color_mode="velocity">
<file location="WA_test_01_traj.xml" />
</trajectories>
<!-- where to store the logs -->
<show_statistics>true</show_statistics>
<logfile>log_test_1.txt</logfile>
<logfile>log_wa_test_1.txt</logfile>
<!-- traffic information: e.g closed doors or smoked rooms -->
<!--<traffic_constraints>-->
<!--&lt;!&ndash; doors states are: close or open &ndash;&gt;-->
<!--<doors>-->
<!--<door trans_id="0" caption="main_exit" state="open" />-->
<!--</doors>-->
<!--</traffic_constraints>-->
<traffic_constraints/>
<routing>
<goals>
<waiting_area caption="wa1" id="1" waiting_time="20" min_peds="1" max_peds="100" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="8" py="12" />
<vertex px="13" py="12" />
<vertex px="13" py="7" />
<vertex px="8" py="7" />
<vertex px="8" py="12" />
</polygon>
<next_wa id="2" p="0.15"/>
<next_wa id="3" p="0.15"/>
<next_wa id="4" p="0.35"/>
<next_wa id="5" p="0.35"/>
</waiting_area>
<waiting_area caption="wa2a" id="2" waiting_time="20" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="1" py="19" />
<vertex px="1" py="16" />
<vertex px="4" py="16" />
<vertex px="4" py="19" />
<vertex px="1" py="19" />
</polygon>
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa2b" id="3" waiting_time="20" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="4" py="9" />
<vertex px="4" py="6" />
<vertex px="1" py="6" />
<vertex px="1" py="9" />
<vertex px="4" py="9" />
</polygon>
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa2c" id="4" waiting_time="20" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="17" py="19" />
<vertex px="17" py="16" />
<vertex px="20" py="16" />
<vertex px="20" py="19" />
<vertex px="17" py="19" />
</polygon>
<next_wa in="-1" p="0.25"/>
<next_wa id="12" p="0.25"/>
<next_wa id="11" p="0.25"/>
<next_wa id="10" p="0.25"/>
</waiting_area>
<waiting_area caption="wa2d" id="5" waiting_time="20" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="17" py="9" />
<vertex px="17" py="6" />
<vertex px="20" py="6" />
<vertex px="20" py="9" />
<vertex px="17" py="9" />
</polygon>
<next_wa id="-1" p="0.25"/>
<next_wa id="15" p="0.25"/>
<next_wa id="14" p="0.25"/>
<next_wa id="13" p="0.25"/>
</waiting_area>
<waiting_area caption="wa3a" id="10" waiting_time="15" min_peds="1" max_peds="20" is_open="true" room_id="1" subroom_id="0">
<polygon>
<vertex px="24" py="16" />
<vertex px="24" py="18" />
<vertex px="26" py="18" />
<vertex px="26" py="16" />
<vertex px="24" py="16" />
</polygon>
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa3b" id="11" waiting_time="10" min_peds="1" max_peds="20" is_open="true" room_id="1" subroom_id="0">
<waiting_area caption="wa1" id="1" waiting_time="10" min_peds="1" max_peds="100" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="27" py="16" />
<vertex px="27" py="18" />
<vertex px="29" py="18" />
<vertex px="29" py="16" />
<vertex px="27" py="16" />
<vertex px="10" py="4" />
<vertex px="15" py="4" />
<vertex px="15" py="1" />
<vertex px="10" py="1" />
<vertex px="10" py="4" />
</polygon>
<next_wa id="-1" p="1"/>
<next_wa id="2" p="1"/>
</waiting_area>
<waiting_area caption="wa3c" id="12" waiting_time="5" min_peds="1" max_peds="20" is_open="true" room_id="1" subroom_id="0">
<waiting_area caption="wa2" id="2" waiting_time="10" min_peds="1" max_peds="100" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="30" py="16" />
<vertex px="30" py="18" />
<vertex px="32" py="18" />
<vertex px="32" py="16" />
<vertex px="30" py="16" />
</polygon>
<next_wa id="-1" p="1"/>
<vertex px="20" py="4" />
<vertex px="25" py="4" />
<vertex px="25" py="1" />
<vertex px="20" py="1" />
<vertex px="20" py="4" />
</polygon>1
<next_wa id="3" p="1"/>
</waiting_area>
<waiting_area caption="wa4a" id="13" waiting_time="15" min_peds="1" max_peds="20" is_open="true" room_id="1" subroom_id="1">
<waiting_area caption="wa3" id="3" waiting_time="10" min_peds="1" max_peds="100" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="24" py="1" />
<vertex px="24" py="3" />
<vertex px="26" py="3" />
<vertex px="26" py="1" />
<vertex px="24" py="1" />
<vertex px="30" py="4" />
<vertex px="35" py="4" />
<vertex px="35" py="1" />
<vertex px="30" py="1" />
<vertex px="30" py="4" />
</polygon>
<next_wa id="-1" p="1"/>
<next_wa id="4" p="1"/>
</waiting_area>
<waiting_area caption="wa4b" id="14" waiting_time="10" min_peds="1" max_peds="20" is_open="true" room_id="1" subroom_id="1">
<waiting_area caption="wa4" id="4" waiting_time="10" min_peds="1" max_peds="100" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="27" py="1" />
<vertex px="27" py="3" />
<vertex px="29" py="3" />
<vertex px="29" py="1" />
<vertex px="27" py="1" />
<vertex px="40" py="4" />
<vertex px="45" py="4" />
<vertex px="45" py="1" />
<vertex px="40" py="1" />
<vertex px="40" py="4" />
</polygon>
<next_wa id="-1" p="1"/>
<next_wa id="5" p="1"/>
</waiting_area>
<waiting_area caption="wa4c" id="15" waiting_time="5" min_peds="1" max_peds="20" is_open="true" room_id="1" subroom_id="1">
<waiting_area caption="wa5" id="5" waiting_time="10" min_peds="1" max_peds="100" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="30" py="1" />
<vertex px="30" py="3" />
<vertex px="32" py="3" />
<vertex px="32" py="1" />
<vertex px="30" py="1" />
<vertex px="50" py="4" />
<vertex px="55" py="4" />
<vertex px="55" py="1" />
<vertex px="50" py="1" />
<vertex px="50" py="4" />
</polygon>
<next_wa id="-1" p="1"/>
</waiting_area>
<!-- <waiting_area caption="wa4" id="4" is_open="true" transition_id="1" room_id="1" subroom_id="0"> -->
<!-- <waiting_area caption="wa4" id="4" is_open="true" transition_id="1" room_id="1" subroom_id="0">
<polygon>
<vertex px="25.5" py="25.5" />
<vertex px="25.5" py="29.5" />
<vertex px="29.5" py="29.5" />
<vertex px="29.5" py="25.5" />
<vertex px="25.5" py="25.5" />
</polygon>
<next_wa id="10" p="1"/>
</waiting_area> -->
</goals>
</routing>
<!--persons information and distribution -->
<agents operational_model_id="3">
<agents_distribution>
<group group_id="1" agent_parameter_id="1" room_id="0" subroom_id="0" number="100" goal_id="1" router_id="1" />
<group group_id="1" agent_parameter_id="1" goal_id="1" router_id="1" room_id="0" subroom_id="0"/>
<group group_id="2" agent_parameter_id="1" goal_id="1" router_id="1" room_id="0" subroom_id="0"/>
</agents_distribution>
<agents_sources>
<source id="10" group_id="1" frequency="30" N_create="20" agents_max="60" time_min="60" time_max="160" percent="0.1" rate="2" greedy="false"/>
<source id="11" group_id="2" frequency="40" N_create="20" agents_max="60" time_min="1" time_max="160" percent="0.2" rate="2" greedy="false"/>
</agents_sources>
</agents>
<!-- These parameters may be overwritten -->
......@@ -245,7 +152,7 @@
<model_parameters>
<solver>euler</solver>
<stepsize>0.01</stepsize>
<exit_crossing_strategy>11</exit_crossing_strategy>
<exit_crossing_strategy>8</exit_crossing_strategy>
<!--<exit_crossing_strategy>8</exit_crossing_strategy>-->
<linkedcells enabled="true" cell_size="2.2" />
<force_ped a="8" D="0.1" />
......@@ -284,6 +191,9 @@
<!--<write_VTK_files>true</write_VTK_files>-->
</parameters>
</router>
<router router_id="2" description="global_shortest">
</router>
<router router_id="3" description="ff_global_shortest"/>
</route_choice_models>
<!--<route_choice_models>-->
......
import matplotlib.pyplot as plt
def get_crossings(id):
name = 'WA_test_01_traj.xml_flow_exit_id_{}.dat'.format(id)
data = open(name)
peds = []
for i in range(3) :
data.readline()
for line in data:
if len(line) > 5:
line = line.split(' ')
peds.append(int(line[-1].strip('\n')))
return peds[-1]
WA2a = get_crossings(0) + get_crossings(2)
WA2b = get_crossings(3) + get_crossings(4)
WA2c = get_crossings(6) + get_crossings(1)# Kein Pedestrian benutzt Ausgang 1
WA2d = get_crossings(5) + get_crossings(7)
WA3a = get_crossings(10)
WA3b = get_crossings(11)
WA3c = get_crossings(12)
WA4a = get_crossings(13)
WA4b = get_crossings(14)
WA4c = get_crossings(15)
plt.bar('WA2a',WA2a)
plt.bar('WA2b',WA2b)
plt.bar('WA2c',WA2c)
plt.bar('WA2d',WA2c)
plt.bar('WA3a',WA3a)
plt.bar('WA3b',WA3b)
plt.bar('WA3c',WA3c)
plt.bar('WA4a',WA4a)
plt.bar('WA4b',WA4b)
plt.bar('WA4c',WA4c)
plt.title('Usage of wating areas')
plt.ylabel('pedestrians')
plt.xlabel('Wating Areas')
plt.grid(axis='y')
plt.savefig('Usage_of_WA.png')
......@@ -7,7 +7,7 @@
<!-- seed used for initialising random generator -->
<seed>12542</seed>
<!-- geometry file -->
<max_sim_time>300</max_sim_time>
<max_sim_time>500</max_sim_time>
<geometry>geometry.xml</geometry>
<!--<geometry>wa_triangle_geo_wa_outside3.xml</geometry>-->
<events_file>events_list.xml</events_file>
......@@ -19,7 +19,7 @@
</trajectories>
<!-- where to store the logs -->
<show_statistics>true</show_statistics>
<logfile>log_test_1.txt</logfile>
<logfile>log_wa_test_2.txt</logfile>
<!-- traffic information: e.g closed doors or smoked rooms -->
<traffic_constraints>
......@@ -45,7 +45,7 @@
<routing>
<goals>
<waiting_area caption="wa1" id="1" waiting_time="20" min_peds="1" max_peds="100" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa1" id="1" waiting_time="60" min_peds="1" max_peds="100" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="8" py="12" />
<vertex px="13" py="12" />
......@@ -59,7 +59,7 @@
<next_wa id="5" p="0.35"/>
</waiting_area>
<waiting_area caption="wa2a" id="2" waiting_time="20" min_peds="1" max_peds="50" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa2a" id="2" waiting_time="100" min_peds="1" max_peds="50" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="1" py="19" />
<vertex px="1" py="16" />
......@@ -70,7 +70,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa2b" id="3" waiting_time="20" min_peds="1" max_peds="50" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa2b" id="3" waiting_time="100" min_peds="1" max_peds="50" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="4" py="9" />
<vertex px="4" py="6" />
......@@ -81,7 +81,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa2c" id="4" waiting_time="20" min_peds="1" max_peds="50" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa2c" id="4" waiting_time="100" min_peds="1" max_peds="50" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="17" py="19" />
<vertex px="17" py="16" />
......@@ -95,7 +95,7 @@
<next_wa id="10" p="0.25"/>
</waiting_area>
<waiting_area caption="wa2d" id="5" waiting_time="20" min_peds="1" max_peds="50" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa2d" id="5" waiting_time="100" min_peds="1" max_peds="50" global_timer="true" is_open="true" room_id="0" subroom_id="1">
<polygon>
<vertex px="17" py="9" />
<vertex px="17" py="6" />
......@@ -109,7 +109,7 @@
<next_wa id="13" p="0.25"/>
</waiting_area>
<waiting_area caption="wa3a" id="10" waiting_time="15" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="0">
<waiting_area caption="wa3a" id="10" waiting_time="140" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="0">
<polygon>
<vertex px="24" py="16" />
<vertex px="24" py="18" />
......@@ -120,7 +120,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa3b" id="11" waiting_time="10" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="0">
<waiting_area caption="wa3b" id="11" waiting_time="140" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="0">
<polygon>
<vertex px="27" py="16" />
<vertex px="27" py="18" />
......@@ -131,7 +131,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa3c" id="12" waiting_time="5" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="0">
<waiting_area caption="wa3c" id="12" waiting_time="140" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="0">
<polygon>
<vertex px="30" py="16" />
<vertex px="30" py="18" />
......@@ -142,7 +142,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa4a" id="13" waiting_time="15" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="1">
<waiting_area caption="wa4a" id="13" waiting_time="140" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="1">
<polygon>
<vertex px="24" py="1" />
<vertex px="24" py="3" />
......@@ -153,7 +153,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa4b" id="14" waiting_time="10" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="1">
<waiting_area caption="wa4b" id="14" waiting_time="140" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="1">
<polygon>
<vertex px="27" py="1" />
<vertex px="27" py="3" />
......@@ -164,7 +164,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa4c" id="15" waiting_time="5" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="1">
<waiting_area caption="wa4c" id="15" waiting_time="140" min_peds="1" max_peds="20" global_timer="true" is_open="true" room_id="1" subroom_id="1">
<polygon>
<vertex px="30" py="1" />
<vertex px="30" py="3" />
......
......@@ -7,7 +7,7 @@
<!-- seed used for initialising random generator -->
<seed>12542</seed>
<!-- geometry file -->
<max_sim_time>300</max_sim_time>
<max_sim_time>500</max_sim_time>
<geometry>geometry.xml</geometry>
<!--<geometry>wa_triangle_geo_wa_outside3.xml</geometry>-->
<events_file>events_list.xml</events_file>
......@@ -18,8 +18,8 @@
<file location="WA_test_03_traj.xml" />
</trajectories>
<!-- where to store the logs -->
<!--show_statistics>true</show_statistics-->
<logfile>log_test_1.txt</logfile>
<show_statistics>true</show_statistics>
<logfile>log_wa_test_3.txt</logfile>
<!-- traffic information: e.g closed doors or smoked rooms -->
<!--<traffic_constraints>-->
......@@ -31,7 +31,7 @@
<routing>
<goals>
<waiting_area caption="wa1" id="1" waiting_time="60" min_peds="1" max_peds="100" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa1" id="1" waiting_time="60" min_peds="1" max_peds="100" is_open="true" room_id="0" subroom_id="1" global_timer="false">
<polygon>
<vertex px="8" py="12" />
<vertex px="13" py="12" />
......@@ -45,7 +45,7 @@
<next_wa id="5" p="0.35"/>
</waiting_area>
<waiting_area caption="wa2a" id="2" waiting_time="30" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa2a" id="2" waiting_time="30" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1" global_timer="false">
<polygon>
<vertex px="1" py="19" />
<vertex px="1" py="16" />
......@@ -56,7 +56,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa2b" id="3" waiting_time="30" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa2b" id="3" waiting_time="30" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1" global_timer="false">
<polygon>
<vertex px="4" py="9" />
<vertex px="4" py="6" />
......@@ -67,7 +67,7 @@
<next_wa id="-1" p="1"/>
</waiting_area>
<waiting_area caption="wa2c" id="4" waiting_time="30" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa2c" id="4" waiting_time="30" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1" global_timer="false">
<polygon>
<vertex px="17" py="19" />
<vertex px="17" py="16" />
......@@ -75,13 +75,13 @@
<vertex px="20" py="19" />
<vertex px="17" py="19" />
</polygon>
<next_wa in="-1" p="0.25"/>
<next_wa id="-1" p="0.25"/>
<next_wa id="12" p="0.25"/>
<next_wa id="11" p="0.25"/>
<next_wa id="10" p="0.25"/>
</waiting_area>
<waiting_area caption="wa2d" id="5" waiting_time="30" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1">
<waiting_area caption="wa2d" id="5" waiting_time="30" min_peds="1" max_peds="50" is_open="true" room_id="0" subroom_id="1" global_timer="false">
<polygon>
<vertex px="17" py="9" />
<vertex px="17" py="6" />
......@@ -179,9 +179,11 @@
<agents operational_model_id="3">
<agents_distribution>
<group group_id="0" agent_parameter_id="1" goal_id="1" router_id="1" room_id="0" subroom_id="0" />
<group group_id="1" agent_parameter_id="1" goal_id="1" router_id="1" room_id="0" subroom_id="0" />
</agents_distribution>
<agents_sources>
<source id="20" group_id="0" caption="agent_source" time_min="1" frequency="100" N_create="50" agents_max="100" rate="5" percent="0.1" greedy="false" />
<source id="20" group_id="0" caption="agent_source" time_min="1" time_max="100" frequency="5" N_create="5" agents_max="50" rate="5" percent="1" greedy="false" />
<source id="21" group_id="1" caption="agent_source" time_min="101" time_max="200" frequency="5" N_create="5" agents_max="50" rate="5" percent="1" greedy="false" />
</agents_sources>
</agents>
<!--persons information and distribution -->
......
Test 1
Pedestrian distribution = All Pedestrian at once
Wating areas = global_timer = false
WA1 => 20 WA2 => 20 [sec]
A long corridor with 5 waiting areas.
Every waiting area has a 10 seconds timer.
Agents are generated by two different sources at the same place. (120 Agents)
Test 2
Pedestrian distribution = All Pedestrian at once
Wating areas = 20 seconds global_timer = true
WA1 => 20 WA2 => 20 [sec]
Hall with a bigger waiting area in the middle and one in each corner.
A long corridor and a second hall, in each of them tree more waiting areas.(11 waiting areas)
100 Agents are spawn at once and are distributed to the corners.
Some agents also go trough the corridor or the second hall before they reach their goal.
Waiting areas are using global timer in this test case.
Test 3
Pedestrian distribution = All Pedestrian at once
Wating areas = global_timer = false
WA1 => 60 WA2 => 40 [sec]
Same geometry like Test 2.
This time an agent source is used and the waiting areas don't use a global timer.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment