diff --git a/Data_3.0/factor-inflowrate/figure/multiM-inflowrate-n.png b/Data_3.0/factor-inflowrate/figure/multiM-inflowrate-n.png new file mode 100644 index 0000000000000000000000000000000000000000..dedd1461eb3f6a3e97a7c5802040146adc5e3aa3 Binary files /dev/null and b/Data_3.0/factor-inflowrate/figure/multiM-inflowrate-n.png differ diff --git a/Data_3.0/factor-inflowrate/figure/multiM-inflowrate-nt.png b/Data_3.0/factor-inflowrate/figure/multiM-inflowrate-nt.png new file mode 100644 index 0000000000000000000000000000000000000000..18e866a16eda81ec39e1f9bb5213085506818717 Binary files /dev/null and b/Data_3.0/factor-inflowrate/figure/multiM-inflowrate-nt.png differ diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate-n.png b/Data_3.0/factor-inflowrate/m0/inflowrate-n.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc37b8f20f3f2961b8e75ebee2a46dd5abe5ee1 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m0/inflowrate-n.png differ diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate-nt.png b/Data_3.0/factor-inflowrate/m0/inflowrate-nt.png new file mode 100644 index 0000000000000000000000000000000000000000..43fb3009aa2d30bd30376948164719f030b61f23 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m0/inflowrate-nt.png differ diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=10/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=10/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..702d98cd55f42e59bba63d5b0bbcc5b971bbf767 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_1.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..21a6ab2f53011bb633164e19b4f163bd8f547f3f --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..cdbb7ebdcdb1f0363e7c6e991af490b9a42d653b --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..315aa46d9eb437b19342cf0d9b741c055ccf8d7e --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/makeini.py b/Data_3.0/factor-inflowrate/m0/inflowrate=10/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/master_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=10/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..70ddb6a1e7db5ef179ea6a26da3d06fcbd3148b5 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/master_ini.xml @@ -0,0 +1,124 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="40" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="40" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="40" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="40" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="40" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="40" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="10" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/untitled21.py b/Data_3.0/factor-inflowrate/m0/inflowrate=10/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=10/untitled22.py b/Data_3.0/factor-inflowrate/m0/inflowrate=10/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=10/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=16/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=16/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..09d894bfbde6d98abcb693bdf99c6d22841c6da1 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_1.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..7e3df03691a3ae43b35c70dd5ac46219aada96c3 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..03887987654cc63c44adc0b0d0120a054365d777 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..1404812199e937800e99db9ac05094209eb27357 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/makeini.py b/Data_3.0/factor-inflowrate/m0/inflowrate=16/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/master_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=16/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..d8eaf43c0ea69135369e67e864630e8b386fa966 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/master_ini.xml @@ -0,0 +1,130 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="25" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="25" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="25" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="25" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="25" group_id="0" caption="source 9" greedy="false" /> + <source id="10" frequency="1" agents_max="25" group_id="1" caption="source 10" greedy="false" /> + <source id="11" frequency="1" agents_max="25" group_id="2" caption="source 11" greedy="false" /> + <source id="12" frequency="1" agents_max="25" group_id="3" caption="source 12" greedy="false" /> + <source id="13" frequency="1" agents_max="25" group_id="0" caption="source 13" greedy="false" /> + <source id="14" frequency="1" agents_max="25" group_id="1" caption="source 14" greedy="false" /> + <source id="15" frequency="1" agents_max="25" group_id="2" caption="source 15" greedy="false" /> + <source id="16" frequency="1" agents_max="25" group_id="3" caption="source 16" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/untitled21.py b/Data_3.0/factor-inflowrate/m0/inflowrate=16/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=16/untitled22.py b/Data_3.0/factor-inflowrate/m0/inflowrate=16/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=16/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=2/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=2/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..e3afc194f08aec0832abacea84e4bff6ffbac8e4 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_1.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..fcf391e140c8c2a6b12ebe5a3453d47f7e3cf09b --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..8f5cf286d4dbda6564b9ed43fc586c0fee18fade --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..3f8d91c2df900272145adfbd618deced748dcb01 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/makeini.py b/Data_3.0/factor-inflowrate/m0/inflowrate=2/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/master_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=2/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ff9f0e3b7a7c6276906292581f6056dad8b6d554 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="200" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="200" group_id="1" caption="source 2" greedy="false" /> + <!-- + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/untitled21.py b/Data_3.0/factor-inflowrate/m0/inflowrate=2/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=2/untitled22.py b/Data_3.0/factor-inflowrate/m0/inflowrate=2/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=2/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=4/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=4/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..3e0ac22e5d09a2ee2100531b3d12743f9beabfd0 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_1.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..cd5335f14a8dffa8d3c1c7dbda1d970a3577999c --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..67d4d41d84c2422773750a5a1aa48effed861159 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..9a5f95f361fb13ec66a5cd3b5332706436f51cb3 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/makeini.py b/Data_3.0/factor-inflowrate/m0/inflowrate=4/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/master_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=4/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..0ec10449d272015a4c0b13a92b9c9f42d8044bc1 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="100" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="100" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="100" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="100" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/untitled21.py b/Data_3.0/factor-inflowrate/m0/inflowrate=4/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=4/untitled22.py b/Data_3.0/factor-inflowrate/m0/inflowrate=4/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=4/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=8/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=8/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..7fdbff38af7de143d133491c1f482f7b869a2620 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_1.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..fcf0c5e963aa9101af6ad5e1cea55c68dff8cbd8 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..a1e0143495ce217848edd67624dcc48818848700 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..692f0dc3f6ab3431c2bebab566d9a78f07e96645 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/makeini.py b/Data_3.0/factor-inflowrate/m0/inflowrate=8/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/master_ini.xml b/Data_3.0/factor-inflowrate/m0/inflowrate=8/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..cdb3d3d0c7071c40fe95589381383b19bc2b08f9 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/untitled21.py b/Data_3.0/factor-inflowrate/m0/inflowrate=8/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m0/inflowrate=8/untitled22.py b/Data_3.0/factor-inflowrate/m0/inflowrate=8/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m0/inflowrate=8/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate-n.png b/Data_3.0/factor-inflowrate/m1/inflowrate-n.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc37b8f20f3f2961b8e75ebee2a46dd5abe5ee1 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m1/inflowrate-n.png differ diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate-nt.png b/Data_3.0/factor-inflowrate/m1/inflowrate-nt.png new file mode 100644 index 0000000000000000000000000000000000000000..43fb3009aa2d30bd30376948164719f030b61f23 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m1/inflowrate-nt.png differ diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=10/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=10/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..489f552f32848136d0fcf5818b67648c24b70b77 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_1.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..8522280dfbf8a45b4546c906f21037e199794171 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c5a442a2817d1dc4bf29644da001e89c916eac3 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..7d5a0d9306c56fd858592dd281bb0f0969bd6d29 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/makeini.py b/Data_3.0/factor-inflowrate/m1/inflowrate=10/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/master_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=10/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..77420e42512a7cefdd066d8c2085ea78d0b52799 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/master_ini.xml @@ -0,0 +1,124 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="40" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="40" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="40" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="40" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="40" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="40" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="10" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/untitled21.py b/Data_3.0/factor-inflowrate/m1/inflowrate=10/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=10/untitled22.py b/Data_3.0/factor-inflowrate/m1/inflowrate=10/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=10/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=16/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=16/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..85329de709b3eff1908a220ae51f6a0fc8772407 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_1.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..4a80cea1526ba3d24e0df079fb9aff28a737c4ed --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..817d60edc10d35c1a2222ae990bd312953102170 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..c7d3e6fe296681f85606ec4f5b35d48a9ad6fec0 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/makeini.py b/Data_3.0/factor-inflowrate/m1/inflowrate=16/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/master_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=16/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..fd713cba3c0a2cdaad66eaae045bdb5580bfbbea --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/master_ini.xml @@ -0,0 +1,130 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="25" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="25" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="25" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="25" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="25" group_id="0" caption="source 9" greedy="false" /> + <source id="10" frequency="1" agents_max="25" group_id="1" caption="source 10" greedy="false" /> + <source id="11" frequency="1" agents_max="25" group_id="2" caption="source 11" greedy="false" /> + <source id="12" frequency="1" agents_max="25" group_id="3" caption="source 12" greedy="false" /> + <source id="13" frequency="1" agents_max="25" group_id="0" caption="source 13" greedy="false" /> + <source id="14" frequency="1" agents_max="25" group_id="1" caption="source 14" greedy="false" /> + <source id="15" frequency="1" agents_max="25" group_id="2" caption="source 15" greedy="false" /> + <source id="16" frequency="1" agents_max="25" group_id="3" caption="source 16" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/untitled21.py b/Data_3.0/factor-inflowrate/m1/inflowrate=16/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=16/untitled22.py b/Data_3.0/factor-inflowrate/m1/inflowrate=16/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=16/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=2/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=2/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..e48b0e7615abe5cf51af000867dc28ebfa3635b0 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_1.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..a8abc9820d5842e3651f3323900f4b24777b9543 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..78eb1f0d7a74a0a08c5617a953267a6dd1b24686 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..e6b760cae2edf620a7fa5ffa7110c6eef59c4733 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/makeini.py b/Data_3.0/factor-inflowrate/m1/inflowrate=2/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/master_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=2/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..4e21dacefd03bc09ee92fe47c6bde00476b48c61 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="200" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="200" group_id="1" caption="source 2" greedy="false" /> + <!-- + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/untitled21.py b/Data_3.0/factor-inflowrate/m1/inflowrate=2/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=2/untitled22.py b/Data_3.0/factor-inflowrate/m1/inflowrate=2/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=2/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=4/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=4/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..1a74726dd15f3a81f83502981c50a6f044f8e884 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_1.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..26850c3cf2b5dcf438336a37676237ac0b09c494 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..95fe3b786c5e075fb4404baf4249675efbf3f702 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..16577abc494aaaf487aee8552aaee8ff9e90652d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/makeini.py b/Data_3.0/factor-inflowrate/m1/inflowrate=4/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/master_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=4/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..6125b70e2859c8564f9eb0c0bd6847dd69453719 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="100" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="100" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="100" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="100" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/untitled21.py b/Data_3.0/factor-inflowrate/m1/inflowrate=4/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=4/untitled22.py b/Data_3.0/factor-inflowrate/m1/inflowrate=4/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=4/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=8/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=8/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..335eaf72f9ae1671c51559fbb5f1e3a8f10c9219 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_1.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..5bbc391bde62c1938fa4d520b3e5f90d3bced245 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..824bd288e25f5dd5a0c854d90cb85596ca4a3fc1 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..5f6e05bfd691c7a32f73cb1eece7eb9875cd767b --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/makeini.py b/Data_3.0/factor-inflowrate/m1/inflowrate=8/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/master_ini.xml b/Data_3.0/factor-inflowrate/m1/inflowrate=8/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..7120e36c2acd5cfc75af5a71cb660cbbb6526740 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/untitled21.py b/Data_3.0/factor-inflowrate/m1/inflowrate=8/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m1/inflowrate=8/untitled22.py b/Data_3.0/factor-inflowrate/m1/inflowrate=8/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m1/inflowrate=8/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/W-N.png b/Data_3.0/factor-inflowrate/m2/W-N.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc37b8f20f3f2961b8e75ebee2a46dd5abe5ee1 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m2/W-N.png differ diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate-n.png b/Data_3.0/factor-inflowrate/m2/inflowrate-n.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc37b8f20f3f2961b8e75ebee2a46dd5abe5ee1 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m2/inflowrate-n.png differ diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate-nt.png b/Data_3.0/factor-inflowrate/m2/inflowrate-nt.png new file mode 100644 index 0000000000000000000000000000000000000000..43fb3009aa2d30bd30376948164719f030b61f23 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m2/inflowrate-nt.png differ diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=10/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=10/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..298f8e00c2b6236a0ce51512a51340a334aed2d8 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_1.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..0c48338e5dad896352711ff3ff9de484ce8f33bb --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..0b476f6c18514877a7a44c74e9af9a3e57564430 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..32cbe0fcd7b0ada72b26cdd612c0e2f3e2396112 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/makeini.py b/Data_3.0/factor-inflowrate/m2/inflowrate=10/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/master_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=10/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..92d33dd15d064a551f1db491d7a9730567cab5be --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/master_ini.xml @@ -0,0 +1,124 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="40" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="40" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="40" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="40" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="40" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="40" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="10" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/untitled21.py b/Data_3.0/factor-inflowrate/m2/inflowrate=10/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=10/untitled22.py b/Data_3.0/factor-inflowrate/m2/inflowrate=10/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=10/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=16/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=16/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..f1ad29c79ae0965d028b050c132b5918ed99e80c --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_1.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..0bc2a70ea84c1444c0fb1c6ad8e98ff85f33bc7b --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..88ec926a986c67f56a93c5f6b9a14a8493a147c3 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..15bac21d3ca58ebc2b75582ac09f2dd1d62ffe61 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/makeini.py b/Data_3.0/factor-inflowrate/m2/inflowrate=16/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/master_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=16/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..23f62b095e75e0d53629d517567af09c03275f91 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/master_ini.xml @@ -0,0 +1,130 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="25" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="25" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="25" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="25" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="25" group_id="0" caption="source 9" greedy="false" /> + <source id="10" frequency="1" agents_max="25" group_id="1" caption="source 10" greedy="false" /> + <source id="11" frequency="1" agents_max="25" group_id="2" caption="source 11" greedy="false" /> + <source id="12" frequency="1" agents_max="25" group_id="3" caption="source 12" greedy="false" /> + <source id="13" frequency="1" agents_max="25" group_id="0" caption="source 13" greedy="false" /> + <source id="14" frequency="1" agents_max="25" group_id="1" caption="source 14" greedy="false" /> + <source id="15" frequency="1" agents_max="25" group_id="2" caption="source 15" greedy="false" /> + <source id="16" frequency="1" agents_max="25" group_id="3" caption="source 16" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/untitled21.py b/Data_3.0/factor-inflowrate/m2/inflowrate=16/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=16/untitled22.py b/Data_3.0/factor-inflowrate/m2/inflowrate=16/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=16/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=2/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=2/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..5437c106622321322963a763f140f53671b0f09a --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_1.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..16fe9e6e89cd1311d93123cc9c0f38dbe87270cd --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..2da519ce8f45db6c6648eb812b7dbb90ca1d5d00 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..9799de5a751ce2a5cb56c4b4e7cf79b724c459bd --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/makeini.py b/Data_3.0/factor-inflowrate/m2/inflowrate=2/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/master_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=2/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..2f81ef2138c5a60f523d53d0c7fa39bb1efe3bff --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="200" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="200" group_id="1" caption="source 2" greedy="false" /> + <!-- + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/untitled21.py b/Data_3.0/factor-inflowrate/m2/inflowrate=2/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=2/untitled22.py b/Data_3.0/factor-inflowrate/m2/inflowrate=2/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=2/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=4/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=4/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..4a67a257129898cb9b5d4e7221a71ae22770275d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_1.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..e107843e1756deabbfb9c107f9dcea2bff6be2b6 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..dd958f7ea3730f73a54ce386472e096849362af7 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..b1b92d4ada21ef131878d491d146a3ca36a0dbd8 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/makeini.py b/Data_3.0/factor-inflowrate/m2/inflowrate=4/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/master_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=4/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..69a88c0de9b2f1e890d0b1e2ded0bb5c3cd7f1d8 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="100" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="100" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="100" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="100" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/untitled21.py b/Data_3.0/factor-inflowrate/m2/inflowrate=4/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=4/untitled22.py b/Data_3.0/factor-inflowrate/m2/inflowrate=4/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=4/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=8/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=8/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..0a5eb26f3557cb290e05930766af3be0a620e010 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_1.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..bedd7077082bad32978b5d5bd1d7df5e50a8bc9d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..59743fc069771e7b11bb7fdfac339525c28d91bd --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..d63fb6c605dfd240a323511c744ee46ca043a8bb --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/makeini.py b/Data_3.0/factor-inflowrate/m2/inflowrate=8/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/master_ini.xml b/Data_3.0/factor-inflowrate/m2/inflowrate=8/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..cee381cd8b552d35d36c55b5ad5e23e79903926b --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/untitled21.py b/Data_3.0/factor-inflowrate/m2/inflowrate=8/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m2/inflowrate=8/untitled22.py b/Data_3.0/factor-inflowrate/m2/inflowrate=8/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m2/inflowrate=8/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/W-N.png b/Data_3.0/factor-inflowrate/m3/W-N.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc37b8f20f3f2961b8e75ebee2a46dd5abe5ee1 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m3/W-N.png differ diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate-n.png b/Data_3.0/factor-inflowrate/m3/inflowrate-n.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc37b8f20f3f2961b8e75ebee2a46dd5abe5ee1 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m3/inflowrate-n.png differ diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate-nt.png b/Data_3.0/factor-inflowrate/m3/inflowrate-nt.png new file mode 100644 index 0000000000000000000000000000000000000000..43fb3009aa2d30bd30376948164719f030b61f23 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m3/inflowrate-nt.png differ diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=10/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=10/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..4775226777e751bc33682eb85a2aa282bf7e85f0 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_1.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..ccd39ce58ea28f979e55120d33a33454a028ddc3 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..9e3b3f587047431a24d9d248db42c6420e0538fc --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..f84d53560e6a5fd442a1170d38941c9584985fef --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/makeini.py b/Data_3.0/factor-inflowrate/m3/inflowrate=10/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/master_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=10/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..b0b3f9cd6cadb73991ff1fb0531c6a63cf06ecac --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/master_ini.xml @@ -0,0 +1,124 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="40" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="40" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="40" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="40" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="40" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="40" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="10" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/untitled21.py b/Data_3.0/factor-inflowrate/m3/inflowrate=10/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=10/untitled22.py b/Data_3.0/factor-inflowrate/m3/inflowrate=10/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=10/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=16/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=16/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..726a57bae3975d2bcae6aa8d65f9be50daa73433 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_1.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..38f366698254a9dc172f338e85530e2aa7f6507d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..7bc79f40412bcdd15eba5c4126f7aa2ebc2ed95f --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..a5269c998101312647edd56f14d9b6da18e63098 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/makeini.py b/Data_3.0/factor-inflowrate/m3/inflowrate=16/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/master_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=16/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..a9a1924ae6034b2f41883174f6494fdc1174a268 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/master_ini.xml @@ -0,0 +1,130 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="25" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="25" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="25" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="25" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="25" group_id="0" caption="source 9" greedy="false" /> + <source id="10" frequency="1" agents_max="25" group_id="1" caption="source 10" greedy="false" /> + <source id="11" frequency="1" agents_max="25" group_id="2" caption="source 11" greedy="false" /> + <source id="12" frequency="1" agents_max="25" group_id="3" caption="source 12" greedy="false" /> + <source id="13" frequency="1" agents_max="25" group_id="0" caption="source 13" greedy="false" /> + <source id="14" frequency="1" agents_max="25" group_id="1" caption="source 14" greedy="false" /> + <source id="15" frequency="1" agents_max="25" group_id="2" caption="source 15" greedy="false" /> + <source id="16" frequency="1" agents_max="25" group_id="3" caption="source 16" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/untitled21.py b/Data_3.0/factor-inflowrate/m3/inflowrate=16/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=16/untitled22.py b/Data_3.0/factor-inflowrate/m3/inflowrate=16/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=16/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=2/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=2/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..9189aefa3f1723f8e8c23607e09bbbc0d3008f8b --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_1.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..cb08b3284cfc74b227ef5ab303c4113bcfa2d44f --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..c78937464a45b6b5b943abe77fc47273f94f735a --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..535ddd552b56513a9293fc778ab565df28c5f502 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/makeini.py b/Data_3.0/factor-inflowrate/m3/inflowrate=2/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/master_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=2/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..5f898aa4474251d151121c4e048db4e19aa223eb --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="200" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="200" group_id="1" caption="source 2" greedy="false" /> + <!-- + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/untitled21.py b/Data_3.0/factor-inflowrate/m3/inflowrate=2/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=2/untitled22.py b/Data_3.0/factor-inflowrate/m3/inflowrate=2/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=2/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=4/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=4/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..a086b98b90561b8228db8986436665f929ded2dd --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_1.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..4b88015662feede2edd3ddfd71f778b44a34a929 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..7c334cb000008bf09bb1710647f95146e0b4b5f1 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..322d365fd3063e08efcb6fe4e7c17fab59e21cb6 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/makeini.py b/Data_3.0/factor-inflowrate/m3/inflowrate=4/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/master_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=4/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..e6efe5facec0609316b5dd2110d73057b8d4c1f2 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="100" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="100" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="100" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="100" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/untitled21.py b/Data_3.0/factor-inflowrate/m3/inflowrate=4/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=4/untitled22.py b/Data_3.0/factor-inflowrate/m3/inflowrate=4/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=4/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=8/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=8/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..e1152dab0ce8d2e840866a6add14e558a9760215 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_1.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..a5c5e08a9edd8908046eb2c815b46f25d03071b5 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..505867ec1718b940adba77689c77eb96bde4e9c2 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..18e50666248e917d2182cfb25f51b289baa2c8e7 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/makeini.py b/Data_3.0/factor-inflowrate/m3/inflowrate=8/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/master_ini.xml b/Data_3.0/factor-inflowrate/m3/inflowrate=8/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..4751aff3c62d55bc31a868e74fe3da4c22a1e720 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/untitled21.py b/Data_3.0/factor-inflowrate/m3/inflowrate=8/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m3/inflowrate=8/untitled22.py b/Data_3.0/factor-inflowrate/m3/inflowrate=8/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m3/inflowrate=8/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate-n.png b/Data_3.0/factor-inflowrate/m4/inflowrate-n.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc37b8f20f3f2961b8e75ebee2a46dd5abe5ee1 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m4/inflowrate-n.png differ diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate-nt.png b/Data_3.0/factor-inflowrate/m4/inflowrate-nt.png new file mode 100644 index 0000000000000000000000000000000000000000..43fb3009aa2d30bd30376948164719f030b61f23 Binary files /dev/null and b/Data_3.0/factor-inflowrate/m4/inflowrate-nt.png differ diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=10/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=10/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..b5b8daf3790dd4b0b8b85bd36cbe1c760b31bd1e --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_1.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..e299a937479fcf5e951b825c73f4eebc7f84a684 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..1934436e25e4a7ae34a12db08d9cc9542a4a263d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..5a63d8edd4182da598751ee404df404cdd819592 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,73 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="40" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="40" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="40" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="40" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="40" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="40" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="40" caption="source 7" frequency="1" greedy="false" group_id="2" id="9" /> + <source agents_max="40" caption="source 8" frequency="1" greedy="false" group_id="3" id="10" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/makeini.py b/Data_3.0/factor-inflowrate/m4/inflowrate=10/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/master_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=10/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..a1ed541c9bdf91fc97ff0f1a0d90b6f78276a86f --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/master_ini.xml @@ -0,0 +1,124 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="40" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="40" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="40" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="40" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="40" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="40" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="40" group_id="2" caption="source 7" greedy="false" /> + <source id="10" frequency="1" agents_max="40" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/untitled21.py b/Data_3.0/factor-inflowrate/m4/inflowrate=10/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=10/untitled22.py b/Data_3.0/factor-inflowrate/m4/inflowrate=10/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=10/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=16/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=16/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..d6a6d1c022e7a837702a1df6bbc0f1751ac3ae1c --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_1.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..b8476abd01ea130618ab71115a076d244980ccf9 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..87e49d10283aa81c31265214c8e0fc72bc71d546 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..51142184fd50a68e6603edcc2c9f1229bfd079c1 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,79 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="25" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="25" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="25" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="25" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + <source agents_max="25" caption="source 9" frequency="1" greedy="false" group_id="0" id="9" /> + <source agents_max="25" caption="source 10" frequency="1" greedy="false" group_id="1" id="10" /> + <source agents_max="25" caption="source 11" frequency="1" greedy="false" group_id="2" id="11" /> + <source agents_max="25" caption="source 12" frequency="1" greedy="false" group_id="3" id="12" /> + <source agents_max="25" caption="source 13" frequency="1" greedy="false" group_id="0" id="13" /> + <source agents_max="25" caption="source 14" frequency="1" greedy="false" group_id="1" id="14" /> + <source agents_max="25" caption="source 15" frequency="1" greedy="false" group_id="2" id="15" /> + <source agents_max="25" caption="source 16" frequency="1" greedy="false" group_id="3" id="16" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/makeini.py b/Data_3.0/factor-inflowrate/m4/inflowrate=16/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/master_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=16/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..1d18381ddd2182487b1a5e1729ee8710d342a15e --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/master_ini.xml @@ -0,0 +1,130 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="25" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="25" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="25" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="25" group_id="3" caption="source 8" greedy="false" /> + <source id="9" frequency="1" agents_max="25" group_id="0" caption="source 9" greedy="false" /> + <source id="10" frequency="1" agents_max="25" group_id="1" caption="source 10" greedy="false" /> + <source id="11" frequency="1" agents_max="25" group_id="2" caption="source 11" greedy="false" /> + <source id="12" frequency="1" agents_max="25" group_id="3" caption="source 12" greedy="false" /> + <source id="13" frequency="1" agents_max="25" group_id="0" caption="source 13" greedy="false" /> + <source id="14" frequency="1" agents_max="25" group_id="1" caption="source 14" greedy="false" /> + <source id="15" frequency="1" agents_max="25" group_id="2" caption="source 15" greedy="false" /> + <source id="16" frequency="1" agents_max="25" group_id="3" caption="source 16" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/untitled21.py b/Data_3.0/factor-inflowrate/m4/inflowrate=16/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=16/untitled22.py b/Data_3.0/factor-inflowrate/m4/inflowrate=16/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=16/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=2/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=2/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..4c9513fab018b67b6c549a6f4573c2982c318d20 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_1.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..8ed11bfe6549386868c415bd27529afa24c154a2 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..92d94a290f4a93fc889dd91b11b6cdc385db5c33 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..83531ca859324b178338ca96a0ac3a776a26bee5 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,65 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="200" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="200" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/makeini.py b/Data_3.0/factor-inflowrate/m4/inflowrate=2/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/master_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=2/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..7a35dd15074f291dbd93656b2e28a3535db467ac --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="200" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="200" group_id="1" caption="source 2" greedy="false" /> + <!-- + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/untitled21.py b/Data_3.0/factor-inflowrate/m4/inflowrate=2/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=2/untitled22.py b/Data_3.0/factor-inflowrate/m4/inflowrate=2/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=2/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=4/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=4/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..2a10bcaa889ba9ee2bd63d3c430a1ffce4282fe3 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_1.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..7bf830977f2173fb70c912a6a142bd42656eab36 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..c0730fd482d5ff58f4551407bc39bb4cc3c05151 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..eafa47a0af7b0d9ec648913d5bf9ceece9708c6f --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,67 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="100" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="100" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="100" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="100" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/makeini.py b/Data_3.0/factor-inflowrate/m4/inflowrate=4/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/master_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=4/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..2473f668a1f10bd4dfe1311e52e6078e04692f1a --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="100" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="100" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="100" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="100" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/untitled21.py b/Data_3.0/factor-inflowrate/m4/inflowrate=4/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=4/untitled22.py b/Data_3.0/factor-inflowrate/m4/inflowrate=4/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=4/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/1.0_geometry.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=8/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/fmaster_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=8/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..e6ed0f4eb32a27d079cd0cc4a07bd7caa4ef4ac3 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_1.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..b58bbd2e19777b61005ee4932fa8b42dd66ff9a5 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..d6a48a04f8a55cfdc1fd08d76afc6aadd0c7924d --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..8e9803b3adfe09c8e7bdfb2c88107b73ef52fdef --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/makeini.py b/Data_3.0/factor-inflowrate/m4/inflowrate=8/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/master_ini.xml b/Data_3.0/factor-inflowrate/m4/inflowrate=8/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..7fab11296119398b105c520b081e76f396600239 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/untitled21.py b/Data_3.0/factor-inflowrate/m4/inflowrate=8/untitled21.py new file mode 100644 index 0000000000000000000000000000000000000000..71a050fa556d09310db9a50e77cfccf56293ae74 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/untitled21.py @@ -0,0 +1,69 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" +#working directory +print(os.getcwd()) +#switch to upper directory +os.chdir('..') + +print(os.getcwd()) + +#width here represents only a list ,its not a directory here +width = glob.glob("m*") + +for folder in width: + print(folder) + os.chdir(folder) + print(os.getcwd()) + + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + + os.chdir('..') + + print(os.getcwd()) + +print("inifiles are finished") + + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +width = glob.glob("m*") +print(width) + + +for folder in width: + os.chdir(folder) + print(os.getcwd()) + + inifiles = glob.glob("inifiles/*.xml") + print(inifiles) + for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) + + # move clogginglog.txt from folder inifiles to folder clogginglog and rename it by adding width ahead + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.')[0]+filename) + os.chdir("..") + + os.chdir("..") \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/m4/inflowrate=8/untitled22.py b/Data_3.0/factor-inflowrate/m4/inflowrate=8/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..afd6760c00188c90b7a41fe017207ce0c927fa32 --- /dev/null +++ b/Data_3.0/factor-inflowrate/m4/inflowrate=8/untitled22.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + + + +inifiles = glob.glob("inifiles/*.xml") + +for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-inflowrate/simulation-plotting.py b/Data_3.0/factor-inflowrate/simulation-plotting.py new file mode 100644 index 0000000000000000000000000000000000000000..856f0b923edd22bb944ee25a9526f8669bae069d --- /dev/null +++ b/Data_3.0/factor-inflowrate/simulation-plotting.py @@ -0,0 +1,236 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Tue Apr 9 12:29:26 2019 + +@author: administer +""" + +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:36:43 2019 + +@author: administer +""" +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +#path to jpscore +executable = "/home/ias7137/Liu/jpscore/bin/jpscore" + +#width here represents only a list ,its not a directory here +Model = glob.glob("m*") + +for model in Model: + os.chdir(model) + + Inflowrates=glob.glob('inflowrate=*') + + for inflowrate in Inflowrates: + os.chdir(inflowrate) + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + os.chdir('..') + os.chdir('..') + +print("inifiles are finished") + +print('from here begins the simulation ') + +Model = glob.glob("m*") + +for model in Model: + os.chdir(model) + Inflowrates=glob.glob('inflowrate=*') + for inflowrate in Inflowrates: + os.chdir(inflowrate) + inifiles = glob.glob("inifiles/*.xml") + for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) + for filename in os.listdir(os.path.abspath("inifiles")): + if filename.endswith('.txt'): + shutil.move(os.path.abspath("inifiles")+"/"+filename,os.path.abspath("clogginglog")+'/') + os.path.abspath("clogginglog") + os.chdir("clogginglog") + print(os.getcwd()) + os.rename(filename,inflowrate.split('=')[1]+filename) + os.chdir("..") + + os.chdir("..") + os.chdir('..') +os.chdir('..') + +import matplotlib.pyplot as plt + +import os +import glob + +import numpy as np + + + +j=0 +Model = glob.glob("m*") + +BIG_meanNmax=[[],[],[],[],[]] +BIG_meanTimespan=[[],[],[],[],[]] +BIG_C=[[],[],[],[],[]] +W=['inflowrate=2','inflowrate=4','inflowrate=8','inflowrate=10','inflowrate=16'] + +Nmax_w1=[] +Nmax_w2=[] +Nmax_w3=[] +Nmax_w4=[] +Nmax_w5=[] + +Timespan_w1=[] +Timespan_w2=[] +Timespan_w3=[] +Timespan_w4=[] +Timespan_w5=[] + +for model in Model: + + MeanNmax=[0,0,0,0,0] + meanTimespan=[0,0,0,0,0] + + os.chdir(model) + Inflowrates=glob.glob('=*') + for inflowrate in Inflowrates: + os.chdir(inflowrate+'/clogginglog/') + Logs=glob.glob('*.txt') + for log in Logs: + if log.split('Clo')[0] == '2': + if np.loadtxt(log).shape ==(3,): + Nmax_w1.append(np.loadtxt(log)[-1]) + MeanNmax[0]=sum(Nmax_w1)/len(Nmax_w1) + Timespan_w1.append(np.loadtxt(log)[1]) + meanTimespan[0]=sum(Timespan_w1)/len(Timespan_w1) + else : + + Nmax_w1.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[0]=sum(Nmax_w1)/len(Nmax_w1) + Timespan_w1.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[0]=sum(Timespan_w1)/len(Timespan_w1) + + + if log.split('Clo')[0] == '4': + if np.loadtxt(log).shape ==(3,): + Nmax_w2.append(np.loadtxt(log)[-1]) + MeanNmax[1]=sum(Nmax_w2)/len(Nmax_w2) + Timespan_w2.append(np.loadtxt(log)[1]) + meanTimespan[1]=sum(Timespan_w2)/len(Timespan_w2) + + else : + Nmax_w2.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[1]=sum(Nmax_w2)/len(Nmax_w2) + Timespan_w2.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[1]=sum(Timespan_w2)/len(Timespan_w2) + + if log.split('Clo')[0] == '8': + if np.loadtxt(log).shape ==(3,): + Nmax_w3.append(np.loadtxt(log)[-1]) + MeanNmax[2]=sum(Nmax_w3)/len(Nmax_w3) + Timespan_w3.append(np.loadtxt(log)[1]) + meanTimespan[2]=sum(Timespan_w3)/len(Timespan_w3) + + else : + Nmax_w3.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[2]=sum(Nmax_w3)/len(Nmax_w3) + Timespan_w3.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[2]=sum(Timespan_w3)/len(Timespan_w3) + + if log.split('Clo')[0] == '10': + if np.loadtxt(log).shape ==(3,): + Nmax_w4.append(np.loadtxt(log)[-1]) + MeanNmax[3]=sum(Nmax_w4)/len(Nmax_w4) + Timespan_w4.append(np.loadtxt(log)[1]) + meanTimespan[3]=sum(Timespan_w4)/len(Timespan_w4) + + else : + Nmax_w4.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[3]=sum(Nmax_w4)/len(Nmax_w4) + Timespan_w4.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[3]=sum(Timespan_w4)/len(Timespan_w4) + + if log.split('Clo')[0] == '16': + if np.loadtxt(log).shape ==(3,): + Nmax_w5.append(np.loadtxt(log)[-1]) + MeanNmax[4]=sum(Nmax_w5)/len(Nmax_w5) + Timespan_w5.append(np.loadtxt(log)[1]) + meanTimespan[4]=sum(Timespan_w5)/len(Timespan_w5) + + else: + Nmax_w5.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[4]=sum(Nmax_w5)/len(Nmax_w5) + Timespan_w5.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[4]=sum(Timespan_w5)/len(Timespan_w5) + os.chdir('../..') + print(MeanNmax) + print(meanTimespan) + BIG_meanNmax[j]= MeanNmax + BIG_meanTimespan[j]=meanTimespan + + C=[0,0,0,0,0] + + for i in range(len(MeanNmax)): + if meanTimespan[i]==0: + pass + + else: + C[i]=MeanNmax[i]/meanTimespan[i] + print(C) + BIG_C[j]=C + j=j+1 + + + plt.figure() + plt.plot(W,MeanNmax) + plt.savefig('inflowrate-n') + + + plt.figure() + plt.plot(W,C,'-or') + plt.savefig('inflowrate-nt') + + print('now leave'+model) + + os.chdir('..') + +std1=np.std(BIG_meanNmax) +plt.figure() +plt.grid() +plt.title('standard deviation is %s'%std1) +plt.plot(W,BIG_meanNmax[0],label='M1') +plt.plot(W,BIG_meanNmax[1],label='M0') +plt.plot(W,BIG_meanNmax[2],label='M2') +plt.plot(W,BIG_meanNmax[3],label='M3') +plt.plot(W,BIG_meanNmax[4],label='M4') +plt.xlabel('inflowrate in (m)') +plt.ylabel('mean clogging times') +plt.legend() +plt.savefig('figure/multiM-inflowrate-n',dpi=300) + + +std2=np.std(BIG_C) +plt.figure() +plt.grid() +plt.title('standard deviation is %s'%std2) +plt.plot(W,BIG_C[0],label='M1') +plt.plot(W,BIG_C[1],label='M0') +plt.plot(W,BIG_C[2],label='M2') +plt.plot(W,BIG_C[3],label='M3') +plt.plot(W,BIG_C[4],label='M4') +plt.xlabel('inflowrate in (m)') +plt.ylabel('mean clogging times per seconds') +plt.legend() +plt.savefig('figure/multiM-inflowrate-nt',dpi=300) + +plt.xlabel('inflowrate in (m)') +plt.ylabel('mean clogging times per seconds') +plt.legend() +plt.savefig('figure/multiM-inflowrate-nt',dpi=300) diff --git a/Data_3.0/factor-stepsize/figure/multiM-stepsize-n.png b/Data_3.0/factor-stepsize/figure/multiM-stepsize-n.png new file mode 100644 index 0000000000000000000000000000000000000000..ec64b9462814991ea18adb43162ee7b2d900ff03 Binary files /dev/null and b/Data_3.0/factor-stepsize/figure/multiM-stepsize-n.png differ diff --git a/Data_3.0/factor-stepsize/figure/multiM-stepsize-nt.png b/Data_3.0/factor-stepsize/figure/multiM-stepsize-nt.png new file mode 100644 index 0000000000000000000000000000000000000000..ff1ca0f20583398ca381b0ba993611b5c53d8cf1 Binary files /dev/null and b/Data_3.0/factor-stepsize/figure/multiM-stepsize-nt.png differ diff --git a/Data_3.0/factor-stepsize/m0/1.0_geometry.xml b/Data_3.0/factor-stepsize/m0/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-stepsize/m0/fmaster_ini.xml b/Data_3.0/factor-stepsize/m0/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..69156aed2518fbf19d40524804fb05f0327e36f1 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..0a870ba1ca69ade236eadd8b8564f0cc774fc973 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..47065f4c8fdefc5fc5b39ce64514de01e0fa21f1 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba2ac5f69756ae04b13c5e26918ab94ab0f44085 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..647706b4aa69865b3f3735996735fec09be017c9 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_1.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..adde304c64de731ac712d2a34cad562b9906dfaf --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..5996e8f357625ec1d8006aefecf4e95d12d64eb4 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..2d840bc1084da0ad0e7ef75cdce25217f4731358 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..27c7afa50c51a9f9a1ccc8a570e39e0ddb2f9241 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..3ec79e161b05a3b412a1d8a0b58a3485e1623065 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_10000.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..7c0e5445e70a698cfdaf9abbd298d09c9801f4d2 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..6dc883f813a08d8684dcd5c5492afcefc7c7fbbe --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..4f9de7b5750705ba4ef97602add3e290e2bea93f --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..9b5831b52a3ada016dd174acc525d157c6b6b1e0 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..f19188f1319018f732f61cc33bc91f81a41d558e --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_3334.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..6e88b54442618c9a9723a925c923b725bea636c3 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..3a03c5e517da1ad640057ccd8e01ee3f8574a7cc --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..7b558780bea90ace823326ed7c28599e270f486d --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..90243daab8e902c11a304beebe8a1c8ce29f9a0d --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..bad79a1f6bfcffc78dcc67f37872b1e191c43c2b --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/inifiles/ini_seed_6667.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m0/makeini.py b/Data_3.0/factor-stepsize/m0/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-stepsize/m0/master_ini.xml b/Data_3.0/factor-stepsize/m0/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..2ab58f0b09a29409720269d21a4ca6e0dcdcc356 --- /dev/null +++ b/Data_3.0/factor-stepsize/m0/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>[0.01,0.02,0.05,0.1,0.2]</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m1/1.0_geometry.xml b/Data_3.0/factor-stepsize/m1/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-stepsize/m1/fmaster_ini.xml b/Data_3.0/factor-stepsize/m1/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..d9a5efcc122285e8bc6f0e873310d8ef8cdc151c --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..522798d704510636c32e0cf54d67612c0e20fdb2 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..cfb8ac7476171ec1cb5f9a0e81bf9183d84e33e3 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb186da5c32e4b30cd7134067b5c7c72a62f9faf --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..04527520fd0407dc5b90afd1762dfcc28718a07d --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_1.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..d114c1d095d6513fa881c079ed50538194ad78dc --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..8adc0420e896d12a8bf98f0c097fc89d3d30939b --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..f02df82fb60fe10bcb5c5716887e4f9ec3131af4 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..96b6c2b55f4b3794dc61a29cd2d2056d44b2b30d --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..eaade540d87603da5beb895ad5d7a379d9942f3e --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_10000.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..0d89de515ee8e12d6d82be0cae4416dc9c57e822 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..423248a0f5fe15591d686341624ca0638f6aabbb --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..a5800b62c20c80a41fd89e98140be9bd25443fa3 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..61cc347dc81a84280c53d9cc7f359b19c9f4e1a8 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..b7c9fb7bd47cba199832544306b2208cfe807218 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_3334.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..9e9ac113726fd5312dd44e5c4994e40472f94af9 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..5b91c07934cedcbf4febe29773a2dc2943ac9017 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..a11e4d0e9103049e7afbd888cfb1b86e1637650a --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..c20e9043904f5efc6249d69e451529d0fb23b708 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..ed3b6b97d2a8fb91e9415da9a8d1837d19bf2596 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/inifiles/ini_seed_6667.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m1/makeini.py b/Data_3.0/factor-stepsize/m1/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-stepsize/m1/master_ini.xml b/Data_3.0/factor-stepsize/m1/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..f426699833a97374a31937bd04404f384309fe9e --- /dev/null +++ b/Data_3.0/factor-stepsize/m1/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>[0.01,0.02,0.05,0.1,0.2]</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m2/1.0_geometry.xml b/Data_3.0/factor-stepsize/m2/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-stepsize/m2/fmaster_ini.xml b/Data_3.0/factor-stepsize/m2/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..eec356fcfdd48d14d6836a64c2d1db5bfdb1e0c4 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..d9715d4ef76be67137e57b46a7958553f260d19e --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..fcbcf20de05f0969e254cc679d037345f4556c66 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..121f3ebedf24f0ed37215cace034bced4bf42ab6 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..c987b52ff56b825036d4df857069f10f2957da0a --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_1.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..c936240ff878e0a337143b1f598b9dfd3041d65a --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..3601f845be4daf28a46abe7c9cab31629f38c39f --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..bf889fb64e8949559768e2e00472d2ca8f05b8f2 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..387ac1160fbdff17aa66e68c19c90e5b7a7538c7 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..6deb1722c2121d80a49981efcd445f2b0b49c876 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_10000.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..063413d5863aee496ffe0be9b0fc7708addd8be5 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..507aabc607524ab946325727a7440a0b22b027a1 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..da52449679e2648b66147cbb76613af83409f10c --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..963b6c0e4351a1ca6d9f379b9c60bcff96349439 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..f35978f4b2b7d5851442cad1627ee6041c360a24 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_3334.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..2446cc86a7e6c05043dea48a6f0f6d7727ea4a83 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..b2353b8c929fb4629fb639f9abe8497ce640a0e4 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..dc448b302410dd5b43a52e3c3d5decc473ed65a3 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..c8597ea18a1a1cdf9e92f0066918f602d4ed2931 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..48ead5a0568acfcd061b1a99bb9cae126e077e20 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/inifiles/ini_seed_6667.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m2/makeini.py b/Data_3.0/factor-stepsize/m2/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-stepsize/m2/master_ini.xml b/Data_3.0/factor-stepsize/m2/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..3ff3eeb353cdc88f84103d9501e55a2a5d4be37a --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>[0.01,0.02,0.05,0.1,0.2]</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m2/untitled22.py b/Data_3.0/factor-stepsize/m2/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..f41397287cc1ecccdb0a024c47a37821446b54c2 --- /dev/null +++ b/Data_3.0/factor-stepsize/m2/untitled22.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob +import os + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + +inifiles = glob.glob("inifiles/*.xml") +print(inifiles) + +for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/1.0_geometry.xml b/Data_3.0/factor-stepsize/m3/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-stepsize/m3/fmaster_ini.xml b/Data_3.0/factor-stepsize/m3/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..000afb3a23df2834dde5df6f88a2ecd7af54813f --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..946518ee5f0394824ebd7fd94dc062576d47850a --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..5b84cf75ccf5c493b05849ab5b6014e3c33f9e38 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..ffe9ea126a92aa9b9036afe103921138af437e56 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..aa339d29d1d1caeacc60caab32d16f23b12de733 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_1.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..189491653c0bea490800de69465ca11fb0052a41 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..9fc86da1cbd22d0a2bf3924119a9d8a46e87275b --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..177abb38a8300b7b9c555d8f2be954889c0be76d --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..3e18ccae2e4a03bc1f53706b0405e2d48b416ce3 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..a7df13c0237898fc0876013f41a4c9e41f7ff6a0 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_10000.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..b12a8dd937089a5c5bb048d862e385e7d34220e2 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..27dea6f2cb8466f306acb5c23798297c0988819c --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..1ebd04a48230c99cc70c702200af0b49b0045dec --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..a147b77fe014537eaf812c64184c6536bf718a8a --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..e259e9b048fde6cf96bed3f74e655e146f0a5c8c --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_3334.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..ae88295bbc30e6981cde3053690f660f2e855dbe --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..7a8762dbd4383fab1b10dd385e2f72534177ce32 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..5bdf654355b5b6697571fe537552e3ee4121d630 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..75f3c7f2ca7fd939f4a1e5399ce2419aeb3016b1 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..9bf752031a81d19e6111171a3935de3c32c93f08 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/inifiles/ini_seed_6667.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m3/makeini.py b/Data_3.0/factor-stepsize/m3/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-stepsize/m3/master_ini.xml b/Data_3.0/factor-stepsize/m3/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..32c66fe2ec6150041662ccf5d2906bb25a61c467 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>[0.01,0.02,0.05,0.1,0.2]</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m3/untitled22.py b/Data_3.0/factor-stepsize/m3/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..f41397287cc1ecccdb0a024c47a37821446b54c2 --- /dev/null +++ b/Data_3.0/factor-stepsize/m3/untitled22.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob +import os + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + +inifiles = glob.glob("inifiles/*.xml") +print(inifiles) + +for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/1.0_geometry.xml b/Data_3.0/factor-stepsize/m4/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-stepsize/m4/fmaster_ini.xml b/Data_3.0/factor-stepsize/m4/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..50496e06b9594e0e5c28e8847163acbcf1602e5d --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..632510b4d2c87e7f74aee230cd5855e9358a6f12 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..50f0abc37e71fdf99d5b6c26a90cb80eb044abcd --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..96a7d3fd39480ea9633efe4739646c47db244128 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..9ae177ba378f79a2ac92c7f25c6f110e3a79be64 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_1.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..75547587d470608f917db619e30f3604d639dc4a --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..c94c69574f08f90b1f11691d62441d7195638516 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..5f813b5cd1267ddfd9ec8e0cf78e814149c00c93 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..4bbedcf2531940f6ce67f0c24e4a935b35c728ab --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..29055c131f7de469c63716065670bd67e970960f --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_10000.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..cffc98db7f58ea54f45020a66aaaf94dedc9c451 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..7d1f637190f3677490713cf96dc1bffbcac23b63 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..7c87afdc2ff3daaa3b3eba0a6a76b147172a57a1 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..5ad310b62df5bd35e1baa714ea18ddbe02789fee --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..3c04071efc8572b2ca3dc09546bb4b87ba478c93 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_3334.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.01.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.01.xml new file mode 100644 index 0000000000000000000000000000000000000000..4194fd7005c0145430f2bdd7ae9ed258cbcad673 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.01.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.01.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.02.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.02.xml new file mode 100644 index 0000000000000000000000000000000000000000..0065dd39771d907de1af982892b86e36ff376053 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.02.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.02.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.02</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.05.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.05.xml new file mode 100644 index 0000000000000000000000000000000000000000..5db094b98032a36814943dbba62929021066b232 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.05.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.05.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.1.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.1.xml new file mode 100644 index 0000000000000000000000000000000000000000..96eb9749d33dee2448f4c285cc7edd934131c1ae --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.1.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.1.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.1</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.2.xml b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.2.xml new file mode 100644 index 0000000000000000000000000000000000000000..5fbf08fb66525344f676254e96aa2cc31f077ecc --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/inifiles/ini_seed_6667.0_stepsize_0.2.xml @@ -0,0 +1,71 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_stepsize_0.2.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.2</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-stepsize/m4/makeini.py b/Data_3.0/factor-stepsize/m4/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-stepsize/m4/master_ini.xml b/Data_3.0/factor-stepsize/m4/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..54c81f1f60e477db243c7487b03270440b0a8e64 --- /dev/null +++ b/Data_3.0/factor-stepsize/m4/master_ini.xml @@ -0,0 +1,122 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>[0.01,0.02,0.05,0.1,0.2]</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-stepsize/simulation-plotting-stepsize.py b/Data_3.0/factor-stepsize/simulation-plotting-stepsize.py new file mode 100644 index 0000000000000000000000000000000000000000..f1685ee175f9bb34667cd8eeb5466223a4ec0ec5 --- /dev/null +++ b/Data_3.0/factor-stepsize/simulation-plotting-stepsize.py @@ -0,0 +1,206 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Tue Apr 9 23:41:08 2019 + +@author: administer +""" +import matplotlib.pyplot as plt +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +executable = "/home/ias7137/Liu/jpscore/bin/jpscore" +#/Users/administer/Workspace/jpscore/bin/jpscore" + +Model = glob.glob("m*") +for model in Model: + os.chdir(model) + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + os.chdir('..') +print("inifiles are finished") + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +Model = glob.glob("m*") + +for model in Model: + os.chdir(model+'/inifiles') + inifiles = glob.glob("*.xml") + for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) + inifiles=glob.glob('*') + for filename in inifiles: + if filename.endswith('.txt'): + shutil.move(filename,'../clogginglog/') + os.chdir("../clogginglog") + os.rename(filename,inifile.split('size_')[1].split('.xm')[0]+'Clo'+inifile.split('d_')[1].split('_st')[0]+filename) + os.chdir("../inifiles") + + os.chdir("../..") + +j=0 +Model = glob.glob('m*') + +BIG_meanNmax=[[],[],[],[],[]] +BIG_meanTimespan=[[],[],[],[],[]] +BIG_C=[[],[],[],[],[]] + +for model in Model: + + Nmax_w1=[] + Nmax_w2=[] + Nmax_w3=[] + Nmax_w4=[] + Nmax_w5=[] + + + Timespan_w1=[] + Timespan_w2=[] + Timespan_w3=[] + Timespan_w4=[] + Timespan_w5=[] + + + W=[0.01,0.02,0.05,0.1,0.2] + MeanNmax=[0,0,0,0,0,] + meanTimespan=[0,0,0,0,0,] + + print(model) + os.chdir(model+'/clogginglog') + Logs=glob.glob('*') + for log in Logs: + + + if log.split('Clo')[0] == '0.01': + if np.loadtxt(log).shape ==(3,): + Nmax_w1.append(np.loadtxt(log)[-1]) + MeanNmax[0]=sum(Nmax_w1)/len(Nmax_w1) + Timespan_w1.append(np.loadtxt(log)[1]) + meanTimespan[0]=sum(Timespan_w1)/len(Timespan_w1) + else : + Nmax_w1.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[0]=sum(Nmax_w1)/len(Nmax_w1) + Timespan_w1.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[0]=sum(Timespan_w1)/len(Timespan_w1) + + + if log.split('Clo')[0] == '0.02': + if np.loadtxt(log).shape ==(3,): + Nmax_w2.append(np.loadtxt(log)[-1]) + MeanNmax[1]=sum(Nmax_w2)/len(Nmax_w2) + Timespan_w2.append(np.loadtxt(log)[1]) + meanTimespan[1]=sum(Timespan_w2)/len(Timespan_w2) + + else : + Nmax_w2.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[1]=sum(Nmax_w2)/len(Nmax_w2) + Timespan_w2.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[1]=sum(Timespan_w2)/len(Timespan_w2) + + if log.split('Clo')[0] == '0.05': + if np.loadtxt(log).shape ==(3,): + Nmax_w3.append(np.loadtxt(log)[-1]) + MeanNmax[2]=sum(Nmax_w3)/len(Nmax_w3) + Timespan_w3.append(np.loadtxt(log)[1]) + meanTimespan[2]=sum(Timespan_w3)/len(Timespan_w3) + + else : + Nmax_w3.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[2]=sum(Nmax_w3)/len(Nmax_w3) + Timespan_w3.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[2]=sum(Timespan_w3)/len(Timespan_w3) + + if log.split('Clo')[0] == '0.1': + if np.loadtxt(log).shape ==(3,): + Nmax_w4.append(np.loadtxt(log)[-1]) + MeanNmax[3]=sum(Nmax_w4)/len(Nmax_w4) + Timespan_w4.append(np.loadtxt(log)[1]) + meanTimespan[3]=sum(Timespan_w4)/len(Timespan_w4) + + else : + Nmax_w4.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[3]=sum(Nmax_w4)/len(Nmax_w4) + Timespan_w4.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[3]=sum(Timespan_w4)/len(Timespan_w4) + + if log.split('Clo')[0] == '0.2': + if np.loadtxt(log).shape ==(3,): + Nmax_w5.append(np.loadtxt(log)[-1]) + MeanNmax[4]=sum(Nmax_w5)/len(Nmax_w5) + Timespan_w5.append(np.loadtxt(log)[1]) + meanTimespan[4]=sum(Timespan_w5)/len(Timespan_w5) + + else: + Nmax_w5.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[4]=sum(Nmax_w5)/len(Nmax_w5) + Timespan_w5.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[4]=sum(Timespan_w5)/len(Timespan_w5) + + + print(MeanNmax) + print(meanTimespan) + BIG_meanNmax[j]=MeanNmax + BIG_meanTimespan[j]=meanTimespan + + C=[0,0,0,0,0] + for i in range(len(MeanNmax)): + if meanTimespan[i]==0: + pass + + else: + C[i]=MeanNmax[i]/meanTimespan[i] + print(C) + BIG_C[j]=C + j=j+1 + + plt.figure() + plt.plot(W,MeanNmax) + plt.savefig('W-N',dpi=300) + + plt.figure() + plt.grid() + plt.plot(W,C) + plt.savefig('W-Nt',dpi=300) + + + #plt.savefig('W-N/T') + + print('now leave'+model) + + + os.chdir('../..') + +std1=np.std(BIG_meanNmax) +plt.figure() +plt.grid() +plt.title('standard deviation is %s'%std1) +plt.plot(W,BIG_meanNmax[0],label='M1') +plt.plot(W,BIG_meanNmax[1],label='M0') +plt.plot(W,BIG_meanNmax[2],label='M2') +plt.plot(W,BIG_meanNmax[3],label='M3') +plt.plot(W,BIG_meanNmax[4],label='M4') +plt.xlabel('inflowrate in (m)') +plt.ylabel('mean clogging times') +plt.legend() +plt.savefig('figure/multiM-stepsize-n',dpi=300) + + +std2=np.std(BIG_C) +plt.figure() +plt.grid() +plt.title('standard deviation is %s'%std2) +plt.plot(W,BIG_C[0],label='M1') +plt.plot(W,BIG_C[1],label='M0') +plt.plot(W,BIG_C[2],label='M2') +plt.plot(W,BIG_C[3],label='M3') +plt.plot(W,BIG_C[4],label='M4') +plt.xlabel('inflowrate in (m)') +plt.ylabel('mean clogging times per seconds') +plt.legend() +plt.savefig('figure/multiM-stepsize-nt',dpi=300) diff --git a/Data_3.0/factor-update_methods/m0-p/1.0_geometry.xml b/Data_3.0/factor-update_methods/m0-p/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-p/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m0-p/fmaster_ini.xml b/Data_3.0/factor-update_methods/m0-p/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-p/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..4690f4d934ccd6ee86c5f10eee3226d7b085d751 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..4016d8a262ca56acb1215d28e56977e1a462084a --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..96582579865b71fd5c0834f1fa1083483d2f1687 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..dd1bffbce48cd02ffae125830ec67c98bf8e8f84 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-p/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m0-p/makeini.py b/Data_3.0/factor-update_methods/m0-p/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-p/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m0-p/master_ini.xml b/Data_3.0/factor-update_methods/m0-p/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..74db90e18fa42f26991748d86a1ba844ce5237e1 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-p/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m0-s/1.0_geometry.xml b/Data_3.0/factor-update_methods/m0-s/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m0-s/fmaster_ini.xml b/Data_3.0/factor-update_methods/m0-s/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..6c54ebca0db07f7732062fb780f0d2c409537eb7 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..b1f58a6f8bd4dad5d7cde85596af4df7a7a8e656 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..d717722e00f6c71f3829b6d8babaf9bd18f0a8ae --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..2a299fcf36aa3b63b28036b27353072bf3416505 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m0-s/makeini.py b/Data_3.0/factor-update_methods/m0-s/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m0-s/master_ini.xml b/Data_3.0/factor-update_methods/m0-s/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..34b47d75b68ff73fd4b8d38e0f52a8557a0c25c8 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m0-s/para_master_ini.xml b/Data_3.0/factor-update_methods/m0-s/para_master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..e319dd1754a6df7e5ef30d3717e228dbaae9fb65 --- /dev/null +++ b/Data_3.0/factor-update_methods/m0-s/para_master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,2)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">200</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m1-p/1.0_geometry.xml b/Data_3.0/factor-update_methods/m1-p/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-p/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m1-p/fmaster_ini.xml b/Data_3.0/factor-update_methods/m1-p/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-p/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..fa297b056d5a7748c2539305a525b127b98117ea --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..2e36072a0be8a9eb3ef6f1a4350731b238f48909 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..5ff0832bf42cb861c3c41738068c63bf75ad917b --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..5e34a07d2fd814f9a16d1611322e7060c1abceeb --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-p/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m1-p/makeini.py b/Data_3.0/factor-update_methods/m1-p/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-p/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m1-p/master_ini.xml b/Data_3.0/factor-update_methods/m1-p/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..b0737d9c5101c5d4890264f0d5c23fc3b1564716 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-p/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m1-s/1.0_geometry.xml b/Data_3.0/factor-update_methods/m1-s/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m1-s/fmaster_ini.xml b/Data_3.0/factor-update_methods/m1-s/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..99ce936941ad1b76e3dc60e2db7f1f3665ccdf3a --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..ed18d235575c21531fec1a40d5fbe2b829b58ccd --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..e13fe0354c985761c3986f0a4a390c2f67826dba --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..8abd9c2e4113b51622e2168b126044e73c83f9a1 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m1-s/makeini.py b/Data_3.0/factor-update_methods/m1-s/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m1-s/master_ini.xml b/Data_3.0/factor-update_methods/m1-s/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..122ffb2813d6fc9e19e090d63ad2cfefd8500ad5 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m1-s/para_master_ini.xml b/Data_3.0/factor-update_methods/m1-s/para_master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..a12bd671c8f6f7d048d48f77a27d567f6d827af2 --- /dev/null +++ b/Data_3.0/factor-update_methods/m1-s/para_master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,2)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">200</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m2-p/1.0_geometry.xml b/Data_3.0/factor-update_methods/m2-p/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m2-p/fmaster_ini.xml b/Data_3.0/factor-update_methods/m2-p/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..2d353622dd9a9fe2a0f5977f370657192d8c0d40 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..1371b555a1b6a18e3200fb0cb44df5cb40c26075 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..d8e2aedb86cbbf4404a06d4c5d6d0d388b64daef --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..45642c33290385a821e5aa5bb39bcc2896993fca --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-p/makeini.py b/Data_3.0/factor-update_methods/m2-p/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m2-p/master_ini.xml b/Data_3.0/factor-update_methods/m2-p/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..d4bebc055bc09d8916f16133ae0813f73ed7b6b7 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m2-p/untitled22.py b/Data_3.0/factor-update_methods/m2-p/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..f41397287cc1ecccdb0a024c47a37821446b54c2 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-p/untitled22.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob +import os + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + +inifiles = glob.glob("inifiles/*.xml") +print(inifiles) + +for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-s/1.0_geometry.xml b/Data_3.0/factor-update_methods/m2-s/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m2-s/fmaster_ini.xml b/Data_3.0/factor-update_methods/m2-s/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..2d353622dd9a9fe2a0f5977f370657192d8c0d40 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..1371b555a1b6a18e3200fb0cb44df5cb40c26075 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..d8e2aedb86cbbf4404a06d4c5d6d0d388b64daef --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..45642c33290385a821e5aa5bb39bcc2896993fca --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m2-s/makeini.py b/Data_3.0/factor-update_methods/m2-s/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m2-s/master_ini.xml b/Data_3.0/factor-update_methods/m2-s/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..d4bebc055bc09d8916f16133ae0813f73ed7b6b7 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m2-s/para_master_ini.xml b/Data_3.0/factor-update_methods/m2-s/para_master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..50f5d4041580e916e392eeafdae6a2e3c72b418d --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/para_master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,2)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">200</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m2-s/untitled22.py b/Data_3.0/factor-update_methods/m2-s/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..f41397287cc1ecccdb0a024c47a37821446b54c2 --- /dev/null +++ b/Data_3.0/factor-update_methods/m2-s/untitled22.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob +import os + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + +inifiles = glob.glob("inifiles/*.xml") +print(inifiles) + +for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-p/1.0_geometry.xml b/Data_3.0/factor-update_methods/m3-p/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m3-p/fmaster_ini.xml b/Data_3.0/factor-update_methods/m3-p/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..c036b88e9f7bd16ff0f1240d8abbc1e57d98c7ef --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..aab1c98d71f3d4f1364a35b91517f3e6cb9b5f22 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..74a529dd00100fda551ed53ac6235949ee6156c5 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..27b7b417ccf94935f4bf1e2927afd935958d4894 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-p/makeini.py b/Data_3.0/factor-update_methods/m3-p/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m3-p/master_ini.xml b/Data_3.0/factor-update_methods/m3-p/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..94d1fad74b41b16130a94baa3257033c4e781a20 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m3-p/untitled22.py b/Data_3.0/factor-update_methods/m3-p/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..f41397287cc1ecccdb0a024c47a37821446b54c2 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-p/untitled22.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob +import os + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + +inifiles = glob.glob("inifiles/*.xml") +print(inifiles) + +for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-s/1.0_geometry.xml b/Data_3.0/factor-update_methods/m3-s/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m3-s/fmaster_ini.xml b/Data_3.0/factor-update_methods/m3-s/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba95bd64b0910c15aa9604b17e8c5774fd3ca28d --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..8e1f711a81aec41dafd559713c3b3ae2545d18ae --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..b3573698fdded1bd8514eb9d0489f927c90a12f3 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..8b6ba0b2e634f402945abc753222a54b64a77c3f --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..a95cb69eba2e8725b9dd0d26cd5ec92c036b1e99 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m3-s/makeini.py b/Data_3.0/factor-update_methods/m3-s/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m3-s/master_ini.xml b/Data_3.0/factor-update_methods/m3-s/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..7575b633c4971be6e0181f0ae99f91a87acefd25 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m3-s/para_master_ini.xml b/Data_3.0/factor-update_methods/m3-s/para_master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..f0388061e6552b58ce2acb20db755107b2fd08dd --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/para_master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,2)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">200</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <!-- + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + --> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m3-s/untitled22.py b/Data_3.0/factor-update_methods/m3-s/untitled22.py new file mode 100644 index 0000000000000000000000000000000000000000..f41397287cc1ecccdb0a024c47a37821446b54c2 --- /dev/null +++ b/Data_3.0/factor-update_methods/m3-s/untitled22.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Mon Apr 8 20:52:12 2019 + +@author: administer +""" +import subprocess +import glob +import os + + +executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + +inifiles = glob.glob("inifiles/*.xml") +print(inifiles) + +for inifile in inifiles: + print(inifile) + + subprocess.call([executable, "--inifile=%s"%inifile]) \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-p/1.0_geometry.xml b/Data_3.0/factor-update_methods/m4-p/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-p/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..648672984f9376eca5ffe5b5d7143c3272f80168 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..ecdc06a267808dad0f7d2960ea4bef97b53ad8f9 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..c5a33b746222e13b64fa3f62dbb1183fcf2b00b7 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..ff98d996bd366f5a71bbff6f16a09e0255678a18 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-p/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-p/makeini.py b/Data_3.0/factor-update_methods/m4-p/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-p/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m4-p/master_ini.xml b/Data_3.0/factor-update_methods/m4-p/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..d750f5d4d9b7026b9502856d4f0769f288b0e575 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-p/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/m4-s/1.0_geometry.xml b/Data_3.0/factor-update_methods/m4-s/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-s/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_1.0.xml b/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_1.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..ccf95f03c4dc827ab9609d53ef99c233ceb84d9f --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_1.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_10000.0.xml b/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_10000.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..b71221af33d51154cbd3dfd9e657f50df34acc5b --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_10000.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_3334.0.xml b/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_3334.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..65d266fac08acf2149a4c8f39802573cd597c7ec --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_3334.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_6667.0.xml b/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_6667.0.xml new file mode 100644 index 0000000000000000000000000000000000000000..0143fd13335280ce2262c3507a4afb95ae2a8fcd --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-s/inifiles/ini_seed_6667.0.xml @@ -0,0 +1,72 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="50" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="50" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="50" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="50" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-update_methods/m4-s/makeini.py b/Data_3.0/factor-update_methods/m4-s/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-s/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-update_methods/m4-s/master_ini.xml b/Data_3.0/factor-update_methods/m4-s/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b15cc68b41979fbab238e8c11ace48a8940b287 --- /dev/null +++ b/Data_3.0/factor-update_methods/m4-s/master_ini.xml @@ -0,0 +1,123 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>../1.0_geometry.xml</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="0"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-update_methods/simulation-plotting-update.py b/Data_3.0/factor-update_methods/simulation-plotting-update.py new file mode 100644 index 0000000000000000000000000000000000000000..dbc779cabe52e1616ac69ff39b0710611a8ba65b --- /dev/null +++ b/Data_3.0/factor-update_methods/simulation-plotting-update.py @@ -0,0 +1,321 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Wed Apr 10 01:56:17 2019 + +@author: administer +""" + +import matplotlib.pyplot as plt +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + +executable = "/home/ias7137/Liu/jpscore/bin/jpscore" +# executable = "/Users/administer/Workspace/jpscore/bin/jpscore" + +Model = glob.glob("m?-*") +for model in Model: + os.chdir(model) + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + os.chdir('..') +print("inifiles are finished") + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +Model = glob.glob("m*") + +for model in Model: + os.chdir(model+'/inifiles') + inifiles = glob.glob("*.xml") + for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) + inifiles=glob.glob('*') + for filename in inifiles: + if filename.endswith('.txt'): + shutil.move(filename,'../clogginglog/') + os.chdir("../clogginglog") + os.rename(filename,inifile.split('d_')[1].split('.x')[0]+filename) + os.chdir("../inifiles") + + os.chdir("../..") + +#PLOTTING BEGINGS # + +Model = glob.glob('m*') +Nmax_p_m0=[] +Nmax_s_m0=[] +Nmax_p_m1=[] +Nmax_s_m1=[] +Nmax_p_m2=[] +Nmax_s_m2=[] +Nmax_p_m3=[] +Nmax_s_m3=[] +Nmax_p_m4=[] +Nmax_s_m4=[] + +Timespan_p_m0=[] +Timespan_s_m0=[] +Timespan_p_m1=[] +Timespan_s_m1=[] +Timespan_p_m2=[] +Timespan_s_m2=[] +Timespan_p_m3=[] +Timespan_s_m3=[] +Timespan_p_m4=[] +Timespan_s_m4=[] + +meanNmax_m0=[0,0] +meanNmax_m1=[0,0] +meanNmax_m2=[0,0] +meanNmax_m3=[0,0] +meanNmax_m4=[0,0] + +meanTimespan_m0=[0,0] +meanTimespan_m1=[0,0] +meanTimespan_m2=[0,0] +meanTimespan_m3=[0,0] +meanTimespan_m4=[0,0] + +c_m0=[0,0] +c_m1=[0,0] +c_m2=[0,0] +c_m3=[0,0] +c_m4=[0,0] + +meanNmax_m0=[0,0] +meanNmax_m1=[0,0] +meanNmax_m2=[0,0] +meanNmax_m3=[0,0] +meanNmax_m4=[0,0] + +for model in Model: + + if model.split('-')[0]== 'm0': + os.chdir(model+'/clogginglog') + Logs=glob.glob('*') + for log in Logs: + if model.split('-')[1]== 'p': + if np.loadtxt(log).shape==(3,): + Nmax_p_m0.append(np.loadtxt(log)[-1]) + meanNmax_m0[0]=sum(Nmax_p_m0)/len(Nmax_p_m0) + Timespan_p_m0.append(np.loadtxt(log)[1]) + meanTimespan_m0[0]=sum(Timespan_p_m0)/len(Timespan_p_m0) + c_m0[0]=(meanNmax_m0[0]/meanTimespan_m0[0]) + + else: + Nmax_p_m0.append(np.loadtxt(log)[-1][-1]) + meanNmax_m0[0]=sum(Nmax_p_m0)/len(Nmax_p_m0) + Timespan_p_m0.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m0[0]=sum(Timespan_p_m0)/len(Timespan_p_m0) + c_m0[0]=(meanNmax_m0[0]/meanTimespan_m0[0]) + + #below is Sequential + else: + if np.loadtxt(log).shape==(3,): + Nmax_s_m0.append(np.loadtxt(log)[-1]) + meanNmax_m0[1]=sum(Nmax_s_m0)/len(Nmax_s_m0) + Timespan_s_m0.append(np.loadtxt(log)[1]) + meanTimespan_m0[1]=sum(Timespan_s_m0)/len(Timespan_s_m0) + c_m0[1]=(meanNmax_m0[1]/meanTimespan_m0[1]) + else: + Nmax_s_m0.append(np.loadtxt(log)[-1][-1]) + meanNmax_m0[1]=sum(Nmax_s_m0)/len(Nmax_s_m0) + Timespan_s_m0.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m0[1]=sum(Timespan_s_m0)/len(Timespan_s_m0) + c_m0[1]=(meanNmax_m0[1]/meanTimespan_m0[1]) + os.chdir('../..') + + + if model.split('-')[0]== 'm1': + os.chdir(model+'/clogginglog') + Logs=glob.glob('*') + for log in Logs: + if model.split('-')[1]== 'p': + if np.loadtxt(log).shape==(3,): + Nmax_p_m1.append(np.loadtxt(log)[-1]) + meanNmax_m1[0]=sum(Nmax_p_m1)/len(Nmax_p_m1) + Timespan_p_m1.append(np.loadtxt(log)[1]) + meanTimespan_m1[0]=sum(Timespan_p_m1)/len(Timespan_p_m1) + c_m1[0]=(meanNmax_m1[0]/meanTimespan_m1[0]) + + else: + Nmax_p_m1.append(np.loadtxt(log)[-1][-1]) + meanNmax_m1[0]=sum(Nmax_p_m1)/len(Nmax_p_m1) + Timespan_p_m1.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m1[0]=sum(Timespan_p_m1)/len(Timespan_p_m1) + c_m1[0]=(meanNmax_m1[0]/meanTimespan_m1[0]) + + #below is Sequential + else: + if np.loadtxt(log).shape==(3,): + Nmax_s_m1.append(np.loadtxt(log)[-1]) + meanNmax_m1[1]=sum(Nmax_s_m1)/len(Nmax_s_m1) + Timespan_s_m1.append(np.loadtxt(log)[1]) + meanTimespan_m1[1]=sum(Timespan_s_m1)/len(Timespan_s_m1) + c_m1[1]=(meanNmax_m1[1]/meanTimespan_m1[1]) + else: + Nmax_s_m1.append(np.loadtxt(log)[-1][-1]) + meanNmax_m1[1]=sum(Nmax_s_m1)/len(Nmax_s_m1) + Timespan_s_m1.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m1[1]=sum(Timespan_s_m1)/len(Timespan_s_m1) + c_m1[1]=(meanNmax_m1[1]/meanTimespan_m1[1]) + os.chdir('../..') + + if model.split('-')[0]== 'm2': + os.chdir(model+'/clogginglog') + Logs=glob.glob('*') + for log in Logs: + if model.split('-')[1]== 'p': + if np.loadtxt(log).shape==(3,): + Nmax_p_m2.append(np.loadtxt(log)[-1]) + meanNmax_m2[0]=sum(Nmax_p_m2)/len(Nmax_p_m2) + Timespan_p_m2.append(np.loadtxt(log)[1]) + meanTimespan_m2[0]=sum(Timespan_p_m2)/len(Timespan_p_m2) + c_m2[0]=(meanNmax_m2[0]/meanTimespan_m2[0]) + + else: + Nmax_p_m2.append(np.loadtxt(log)[-1][-1]) + meanNmax_m2[0]=sum(Nmax_p_m2)/len(Nmax_p_m2) + Timespan_p_m2.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m2[0]=sum(Timespan_p_m2)/len(Timespan_p_m2) + c_m2[0]=(meanNmax_m2[0]/meanTimespan_m2[0]) + + #below is Sequential + else: + if np.loadtxt(log).shape==(3,): + Nmax_s_m2.append(np.loadtxt(log)[-1]) + meanNmax_m2[1]=sum(Nmax_s_m2)/len(Nmax_s_m2) + Timespan_s_m2.append(np.loadtxt(log)[1]) + meanTimespan_m2[1]=sum(Timespan_s_m2)/len(Timespan_s_m2) + c_m2[1]=(meanNmax_m2[1]/meanTimespan_m2[1]) + else: + Nmax_s_m2.append(np.loadtxt(log)[-1][-1]) + meanNmax_m2[1]=sum(Nmax_s_m2)/len(Nmax_s_m2) + Timespan_s_m2.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m2[1]=sum(Timespan_s_m2)/len(Timespan_s_m2) + c_m2[1]=(meanNmax_m2[1]/meanTimespan_m2[1]) + os.chdir('../..') + + + if model.split('-')[0]== 'm3': + os.chdir(model+'/clogginglog') + Logs=glob.glob('*') + for log in Logs: + if model.split('-')[1]== 'p': + if np.loadtxt(log).shape==(3,): + Nmax_p_m3.append(np.loadtxt(log)[-1]) + meanNmax_m3[0]=sum(Nmax_p_m3)/len(Nmax_p_m3) + Timespan_p_m3.append(np.loadtxt(log)[1]) + meanTimespan_m3[0]=sum(Timespan_p_m3)/len(Timespan_p_m3) + c_m3[0]=(meanNmax_m3[0]/meanTimespan_m3[0]) + + else: + Nmax_p_m3.append(np.loadtxt(log)[-1][-1]) + meanNmax_m3[0]=sum(Nmax_p_m3)/len(Nmax_p_m3) + Timespan_p_m3.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m3[0]=sum(Timespan_p_m3)/len(Timespan_p_m3) + c_m3[0]=(meanNmax_m3[0]/meanTimespan_m3[0]) + + #below is Sequential + else: + if np.loadtxt(log).shape==(3,): + Nmax_s_m3.append(np.loadtxt(log)[-1]) + meanNmax_m3[1]=sum(Nmax_s_m3)/len(Nmax_s_m3) + Timespan_s_m3.append(np.loadtxt(log)[1]) + meanTimespan_m3[1]=sum(Timespan_s_m3)/len(Timespan_s_m3) + c_m3[1]=(meanNmax_m3[1]/meanTimespan_m3[1]) + else: + Nmax_s_m3.append(np.loadtxt(log)[-1][-1]) + meanNmax_m3[1]=sum(Nmax_s_m3)/len(Nmax_s_m3) + Timespan_s_m3.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m3[1]=sum(Timespan_s_m3)/len(Timespan_s_m3) + c_m3[1]=(meanNmax_m3[1]/meanTimespan_m3[1]) + os.chdir('../..') + + if model.split('-')[0]== 'm4': + os.chdir(model+'/clogginglog') + Logs=glob.glob('*') + for log in Logs: + if model.split('-')[1]== 'p': + if np.loadtxt(log).shape==(3,): + Nmax_p_m4.append(np.loadtxt(log)[-1]) + meanNmax_m4[0]=sum(Nmax_p_m4)/len(Nmax_p_m4) + Timespan_p_m4.append(np.loadtxt(log)[1]) + meanTimespan_m4[0]=sum(Timespan_p_m4)/len(Timespan_p_m4) + c_m4[0]=(meanNmax_m4[0]/meanTimespan_m4[0]) + + else: + Nmax_p_m4.append(np.loadtxt(log)[-1][-1]) + meanNmax_m4[0]=sum(Nmax_p_m4)/len(Nmax_p_m4) + Timespan_p_m4.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m4[0]=sum(Timespan_p_m4)/len(Timespan_p_m4) + c_m4[0]=(meanNmax_m4[0]/meanTimespan_m4[0]) + + #below is Sequential + else: + if np.loadtxt(log).shape==(3,): + Nmax_s_m4.append(np.loadtxt(log)[-1]) + meanNmax_m4[1]=sum(Nmax_s_m4)/len(Nmax_s_m4) + Timespan_s_m0.append(np.loadtxt(log)[1]) + meanTimespan_m4[1]=sum(Timespan_s_m4)/len(Timespan_s_m4) + c_m4[1]=(meanNmax_m4[1]/meanTimespan_m4[1]) + else: + Nmax_s_m4.append(np.loadtxt(log)[-1][-1]) + meanNmax_m4[1]=sum(Nmax_s_m4)/len(Nmax_s_m4) + Timespan_s_m4.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[1][1]) + meanTimespan_m4[1]=sum(Timespan_s_m4)/len(Timespan_s_m4) + c_m4[1]=(meanNmax_m4[1]/meanTimespan_m4[1]) + os.chdir('../..') + + +U=['parallel','sequential'] +ARRAY1=[] +ARRAY1.append(meanNmax_m0) +ARRAY1.append(meanNmax_m1) +ARRAY1.append(meanNmax_m2) +ARRAY1.append(meanNmax_m3) +ARRAY1.append(meanNmax_m4) + +std1=np.std(ARRAY1) +plt.figure() +plt.grid() +plt.title('standard deviation is %s'%std1) +plt.plot(U,meanNmax_m0,'-or',label='M0') +plt.plot(U,meanNmax_m1,'-or',label='M1') +plt.plot(U,meanNmax_m2,'-or',label='M2') +plt.plot(U,meanNmax_m3,'-or',label='M3') +plt.plot(U,meanNmax_m4,'-or',label='M4') +plt.legend() +plt.xlabel('update methods') +plt.ylabel('Clogging_Times N') +plt.savefig('figure/multiM-u-n',dpi=300) + + +ARRAY2=[] +ARRAY2.append(c_m0) +ARRAY2.append(c_m1) +ARRAY2.append(c_m2) +ARRAY2.append(c_m3) +ARRAY2.append(c_m4) +std2=np.std(ARRAY2) +plt.figure() +plt.title('standard deviation is %s'%std2) +plt.plot(U,c_m0,'-or',label='M0') +plt.plot(U,c_m0,'-or',label='M1') +plt.plot(U,c_m0,'-or',label='M2') +plt.plot(U,c_m0,'-or',label='M3') +plt.plot(U,c_m0,'-or',label='M4') +plt.legend() +plt.xlabel('update methods') +plt.ylabel('average Clogging times per second') +print('N/t-W') +plt.savefig('figure/multiM-u-nt',dpi=300) + + + diff --git a/Data_3.0/factor-width/m0/geometries/0.8_geometry.xml b/Data_3.0/factor-width/m0/geometries/0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5b6c1c11e22ce084d8115cf8632097dd959b4920 --- /dev/null +++ b/Data_3.0/factor-width/m0/geometries/0.8_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.4"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.6"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.6"/> + <vertex px="12.0" py="3.6"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.4"/> + <vertex px="12.0" py="4.4"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.6"/> + <vertex px="10" py="4.4"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.6"/> + <vertex px="12" py="4.4"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m0/geometries/1.0_geometry.xml b/Data_3.0/factor-width/m0/geometries/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-width/m0/geometries/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m0/geometries/1.2_geometry.xml b/Data_3.0/factor-width/m0/geometries/1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2fd2180ed3e54a272fa086e823188edfcb9fb7c4 --- /dev/null +++ b/Data_3.0/factor-width/m0/geometries/1.2_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.6"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.4"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.4"/> + <vertex px="12.0" py="3.4"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.6"/> + <vertex px="12.0" py="4.6"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.4"/> + <vertex px="10" py="4.6"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.4"/> + <vertex px="12" py="4.6"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m0/geometries/1.6_geometry.xml b/Data_3.0/factor-width/m0/geometries/1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c3f95fc4340a72c00a88ede157a23de2bea2c5e --- /dev/null +++ b/Data_3.0/factor-width/m0/geometries/1.6_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.8"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.2"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.2"/> + <vertex px="12.0" py="3.2"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.8"/> + <vertex px="12.0" py="4.8"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.2"/> + <vertex px="10" py="4.8"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.2"/> + <vertex px="12" py="4.8"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m0/geometries/2.0_geometry.xml b/Data_3.0/factor-width/m0/geometries/2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..bebd94d6da99dd74b65b5615665c658780f5c49d --- /dev/null +++ b/Data_3.0/factor-width/m0/geometries/2.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.0"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.0"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.0"/> + <vertex px="12.0" py="3.0"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.0"/> + <vertex px="12.0" py="5.0"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.0"/> + <vertex px="10" py="5.0"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.0"/> + <vertex px="12" py="5.0"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m0/geometries/2.5_geometry.xml b/Data_3.0/factor-width/m0/geometries/2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..275d9497db0485d5b346cf8065f392428a0c2d2f --- /dev/null +++ b/Data_3.0/factor-width/m0/geometries/2.5_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.25"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="2.75"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="2.75"/> + <vertex px="12.0" py="2.75"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.25"/> + <vertex px="12.0" py="5.25"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="2.75"/> + <vertex px="10" py="5.25"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="2.75"/> + <vertex px="12" py="5.25"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..ed85bc640f454943102082da0ff67ac622767739 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9b0b878b350a9418ca12af7af3ff599d0ccc3172 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..fe53f93876a18023577d400670bbf58c2f0b7676 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..034758b5af8462d5195dadb7e49a4b856cc26187 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2c1e58c07fc855239b19e3198ffa6f0dc722a241 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..21385ec7b6ce8660bd28271811c7f99b544e8d44 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..ee505ac609a8379b1eb7889d7d75d00aab37a798 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..4eb75427abb7c2dcf2260306353ceecf1d912957 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6dc9af4b601c5620d4dbef80ed5c109b7d34f7ef --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..e021645ad91c136e5b3b14a578ef51c6f58cb0fe --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9e4c1f384c76a623f174977c02281de73a47174c --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..e1183b06b6ee373656622770211587a5b7a3703e --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..f46502676d7d8ba1e81881ed4a8f83f5492a05cf --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9fc387b259451d11067b6ee4ed219295f54189f9 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..1529ec7c4e365c18a4eb6b44ed3b82bcc3d1087a --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5fde484fc69dc78db916caed9490305b7adb2baa --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..22ee87aaa40b30dc1d0f89dae1ffb7bb55f3e660 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..e103fd004c02ee1f6cc6932a320cf1c4b0244b92 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..23ce7358e6e882f4664865e919f6e3ba4bee38a2 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6f6af2c12f86aef5dc093b7cb3a9d22548dd0e22 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..e9651e87935ee8d08fae4e0c5404e3695757d9c9 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..3e142fce15db1bd6b8308417d11032b6075491d0 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..676e4b40d4122cf1fbee2d9c7e0e97abcb83bdf8 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..c3de0aa6ad9b0e12f8294daf0136d5a428a63ea3 --- /dev/null +++ b/Data_3.0/factor-width/m0/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m0/makeini.py b/Data_3.0/factor-width/m0/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-width/m0/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-width/m0/master_ini.xml b/Data_3.0/factor-width/m0/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..e8c2c2d0c4037ef24eb60411eb03ff4cea0522a5 --- /dev/null +++ b/Data_3.0/factor-width/m0/master_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/m1/fmaster_ini.xml b/Data_3.0/factor-width/m1/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..698c76514631e9198e88602e1a684ebd2231f668 --- /dev/null +++ b/Data_3.0/factor-width/m1/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/m1/geometries/0.8_geometry.xml b/Data_3.0/factor-width/m1/geometries/0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5b6c1c11e22ce084d8115cf8632097dd959b4920 --- /dev/null +++ b/Data_3.0/factor-width/m1/geometries/0.8_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.4"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.6"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.6"/> + <vertex px="12.0" py="3.6"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.4"/> + <vertex px="12.0" py="4.4"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.6"/> + <vertex px="10" py="4.4"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.6"/> + <vertex px="12" py="4.4"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m1/geometries/1.0_geometry.xml b/Data_3.0/factor-width/m1/geometries/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-width/m1/geometries/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m1/geometries/1.2_geometry.xml b/Data_3.0/factor-width/m1/geometries/1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2fd2180ed3e54a272fa086e823188edfcb9fb7c4 --- /dev/null +++ b/Data_3.0/factor-width/m1/geometries/1.2_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.6"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.4"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.4"/> + <vertex px="12.0" py="3.4"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.6"/> + <vertex px="12.0" py="4.6"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.4"/> + <vertex px="10" py="4.6"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.4"/> + <vertex px="12" py="4.6"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m1/geometries/1.6_geometry.xml b/Data_3.0/factor-width/m1/geometries/1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c3f95fc4340a72c00a88ede157a23de2bea2c5e --- /dev/null +++ b/Data_3.0/factor-width/m1/geometries/1.6_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.8"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.2"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.2"/> + <vertex px="12.0" py="3.2"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.8"/> + <vertex px="12.0" py="4.8"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.2"/> + <vertex px="10" py="4.8"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.2"/> + <vertex px="12" py="4.8"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m1/geometries/2.0_geometry.xml b/Data_3.0/factor-width/m1/geometries/2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..bebd94d6da99dd74b65b5615665c658780f5c49d --- /dev/null +++ b/Data_3.0/factor-width/m1/geometries/2.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.0"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.0"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.0"/> + <vertex px="12.0" py="3.0"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.0"/> + <vertex px="12.0" py="5.0"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.0"/> + <vertex px="10" py="5.0"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.0"/> + <vertex px="12" py="5.0"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m1/geometries/2.5_geometry.xml b/Data_3.0/factor-width/m1/geometries/2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..275d9497db0485d5b346cf8065f392428a0c2d2f --- /dev/null +++ b/Data_3.0/factor-width/m1/geometries/2.5_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.25"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="2.75"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="2.75"/> + <vertex px="12.0" py="2.75"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.25"/> + <vertex px="12.0" py="5.25"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="2.75"/> + <vertex px="10" py="5.25"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="2.75"/> + <vertex px="12" py="5.25"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..036b5244e7fcefcef108f80a5774db3bc4a4b48b --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..314bcda509fdbcf15bf63733ff16286cbbd1ddc1 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..eb45beef21df00371a8976b6acd327345cbddaec --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..7555ff2625d1c47012573135f2a523d99d530558 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..1be89e972eb8fdc8d1c846490a6535aacb3afab8 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..c134079e4445d66181e5c6c91fb96c41998007d9 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..348179c7e5f283cb6f862ce233e9ca35780bc254 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb5163274f65158dd39bab35d83e6e50b19dbc09 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..3b6bff8ab3d1ff412d9e92ad655b9cc346f1dc01 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..ffd6add385752ed9aa59c8158d7a1caecbf51f4b --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..a45baeaf6dfb8d053b8091502984a45a8abde393 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..81cbc5171c793743a4dbda88199a5618953031cb --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..17b729fb2c117ee3f978d5e172c441989cc24c9c --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..11d6b0f18c38e32f841187e19efccda1f2b3c2f3 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..748f71f3361cd1bcbb885faf35150d33187bc5d1 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..fadee17b14da8fe02979d6ebe3293cb689b252bc --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d3fbbe77031db8b3bc96304d86ff275b617a5aaf --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..c970abe124f4bf4311816838d4b3f2a3c9c0d465 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..35360a92f04317202fb53a8b18c21b997b6cd127 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..c7ef304cf30517c9a0cd10ff1a08b5c4c1e7dcd8 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6ad1df40e6ed05b4560114b2535a755bf29eb07e --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..88a82f03c4e0331caa89b3391651d0e7f208711a --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9dd7aee5211a53e4e3648e7f315757b210309dd0 --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6efa3e9d0c3d83ed260395c2b19614d0b320c0da --- /dev/null +++ b/Data_3.0/factor-width/m1/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="0" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m1/makeini.py b/Data_3.0/factor-width/m1/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-width/m1/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-width/m1/master_ini.xml b/Data_3.0/factor-width/m1/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..709e586bb2fa85e0f7682d4db3d3f7eaf4d69a70 --- /dev/null +++ b/Data_3.0/factor-width/m1/master_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="0"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/m2/fmaster_ini.xml b/Data_3.0/factor-width/m2/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..39c4857aa1986cb3dc4eebeaf575595e66cd321c --- /dev/null +++ b/Data_3.0/factor-width/m2/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/m2/geometries/0.8_geometry.xml b/Data_3.0/factor-width/m2/geometries/0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5b6c1c11e22ce084d8115cf8632097dd959b4920 --- /dev/null +++ b/Data_3.0/factor-width/m2/geometries/0.8_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.4"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.6"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.6"/> + <vertex px="12.0" py="3.6"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.4"/> + <vertex px="12.0" py="4.4"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.6"/> + <vertex px="10" py="4.4"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.6"/> + <vertex px="12" py="4.4"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m2/geometries/1.0_geometry.xml b/Data_3.0/factor-width/m2/geometries/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-width/m2/geometries/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m2/geometries/1.2_geometry.xml b/Data_3.0/factor-width/m2/geometries/1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2fd2180ed3e54a272fa086e823188edfcb9fb7c4 --- /dev/null +++ b/Data_3.0/factor-width/m2/geometries/1.2_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.6"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.4"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.4"/> + <vertex px="12.0" py="3.4"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.6"/> + <vertex px="12.0" py="4.6"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.4"/> + <vertex px="10" py="4.6"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.4"/> + <vertex px="12" py="4.6"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m2/geometries/1.6_geometry.xml b/Data_3.0/factor-width/m2/geometries/1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c3f95fc4340a72c00a88ede157a23de2bea2c5e --- /dev/null +++ b/Data_3.0/factor-width/m2/geometries/1.6_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.8"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.2"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.2"/> + <vertex px="12.0" py="3.2"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.8"/> + <vertex px="12.0" py="4.8"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.2"/> + <vertex px="10" py="4.8"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.2"/> + <vertex px="12" py="4.8"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m2/geometries/2.0_geometry.xml b/Data_3.0/factor-width/m2/geometries/2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..bebd94d6da99dd74b65b5615665c658780f5c49d --- /dev/null +++ b/Data_3.0/factor-width/m2/geometries/2.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.0"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.0"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.0"/> + <vertex px="12.0" py="3.0"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.0"/> + <vertex px="12.0" py="5.0"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.0"/> + <vertex px="10" py="5.0"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.0"/> + <vertex px="12" py="5.0"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m2/geometries/2.5_geometry.xml b/Data_3.0/factor-width/m2/geometries/2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..275d9497db0485d5b346cf8065f392428a0c2d2f --- /dev/null +++ b/Data_3.0/factor-width/m2/geometries/2.5_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.25"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="2.75"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="2.75"/> + <vertex px="12.0" py="2.75"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.25"/> + <vertex px="12.0" py="5.25"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="2.75"/> + <vertex px="10" py="5.25"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="2.75"/> + <vertex px="12" py="5.25"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..7259feb36078c6d0c2e07fb141d636a5440fbda4 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..e3e36f4df07702bb17afaca3572b1050fe5a4495 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..fcd3bc08a118fe1bd1c24643ea1cd5ed828b64a1 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..480ba2251a4832ace6626d886558de2bff705303 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..0b0d82ca41a6e60992ae220b276c69fad7f44463 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..f6abc769679681e9d096e7f695e72b76de5a0ea8 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..341bc15771d68eb484a66d8ffdb2be3f98855c69 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..275ec4ea3042a5cdb802ac9851f2adfa46449618 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..91a4380fd5b2e1e6d8a8555462a4e05189c77fac --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6941a13eeaff87a909b64327f450d92cd4e02655 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..c26f242847c4a16b2f01bf84f01a2189d8f2c86f --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..f60a12c98271d78e54197f261613f8ee4430f1cb --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..109c626dca8c0484f6e91af96ac642fb9940e9b9 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..b0c2c31d948325855e365b21e1e201317d9f608c --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..af397587d1f4839c08eb52dd0b6d31b151d1a608 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..91c93029ee367c050ac1ab1c4961b70005913ace --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5fb9917129ef912daa5d1eb47ed8838093bc6f40 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..0be4951fd87f372c77300a50566c72b192c5ac5a --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..04c3b1518a5ce80c156326d390622c1b3edae326 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..fa7eb6cce3d855eeb5d71923a42762acbfef91e9 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..a66d66ca99cbe918280766f3ecba4c598ed4dcf9 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..371bbe67535007d13dc2a84432e436276284e547 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5575158bc848105c1a4aa4686d1132f7ca26ae18 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..8dc71827354f90327ea79a857e0ea096d76ddab2 --- /dev/null +++ b/Data_3.0/factor-width/m2/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="0" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m2/makeini.py b/Data_3.0/factor-width/m2/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-width/m2/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-width/m2/master_ini.xml b/Data_3.0/factor-width/m2/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..0567e563bcd6daf1efc48fa33999f14dc1b1f1c3 --- /dev/null +++ b/Data_3.0/factor-width/m2/master_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="0" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/m3/fmaster_ini.xml b/Data_3.0/factor-width/m3/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..4128b4a5e89e9714b7ffc18cc609155792989fa0 --- /dev/null +++ b/Data_3.0/factor-width/m3/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/m3/geometries/0.8_geometry.xml b/Data_3.0/factor-width/m3/geometries/0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5b6c1c11e22ce084d8115cf8632097dd959b4920 --- /dev/null +++ b/Data_3.0/factor-width/m3/geometries/0.8_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.4"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.6"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.6"/> + <vertex px="12.0" py="3.6"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.4"/> + <vertex px="12.0" py="4.4"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.6"/> + <vertex px="10" py="4.4"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.6"/> + <vertex px="12" py="4.4"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m3/geometries/1.0_geometry.xml b/Data_3.0/factor-width/m3/geometries/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-width/m3/geometries/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m3/geometries/1.2_geometry.xml b/Data_3.0/factor-width/m3/geometries/1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2fd2180ed3e54a272fa086e823188edfcb9fb7c4 --- /dev/null +++ b/Data_3.0/factor-width/m3/geometries/1.2_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.6"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.4"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.4"/> + <vertex px="12.0" py="3.4"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.6"/> + <vertex px="12.0" py="4.6"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.4"/> + <vertex px="10" py="4.6"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.4"/> + <vertex px="12" py="4.6"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m3/geometries/1.6_geometry.xml b/Data_3.0/factor-width/m3/geometries/1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c3f95fc4340a72c00a88ede157a23de2bea2c5e --- /dev/null +++ b/Data_3.0/factor-width/m3/geometries/1.6_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.8"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.2"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.2"/> + <vertex px="12.0" py="3.2"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.8"/> + <vertex px="12.0" py="4.8"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.2"/> + <vertex px="10" py="4.8"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.2"/> + <vertex px="12" py="4.8"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m3/geometries/2.0_geometry.xml b/Data_3.0/factor-width/m3/geometries/2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..bebd94d6da99dd74b65b5615665c658780f5c49d --- /dev/null +++ b/Data_3.0/factor-width/m3/geometries/2.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.0"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.0"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.0"/> + <vertex px="12.0" py="3.0"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.0"/> + <vertex px="12.0" py="5.0"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.0"/> + <vertex px="10" py="5.0"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.0"/> + <vertex px="12" py="5.0"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m3/geometries/2.5_geometry.xml b/Data_3.0/factor-width/m3/geometries/2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..275d9497db0485d5b346cf8065f392428a0c2d2f --- /dev/null +++ b/Data_3.0/factor-width/m3/geometries/2.5_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.25"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="2.75"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="2.75"/> + <vertex px="12.0" py="2.75"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.25"/> + <vertex px="12.0" py="5.25"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="2.75"/> + <vertex px="10" py="5.25"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="2.75"/> + <vertex px="12" py="5.25"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2cea07e2b03fd3b31ab3b9b9bdad07d6068e4b65 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..532f533dbaa75241dd782129c63389ec17d58f0b --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..b9ec9eeffc179b2040e16146de2835655529c5ce --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b850c8715747ccfdb0450de029d8cfe65d84853 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..a0d61d8c82e9ccb8bb16b8436274c63591eb1b8f --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..ad7c8884af7918d1eda15dd573fa87a51598616f --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d81f5a874a6eec92865c1f34d8da34c2c6fbd77e --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..260c7e1ec078984b0e8d18d146217b6d1535e854 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..69b63d2a391b89ecd0209706d9aac3e6cb466bf1 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..de9c494c1071934ae98f2e4563aabe1794d37834 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6d10f8db433d14889976b0f59416665bac698fca --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..29fd5675ba3079384b58df7b0dd34308e51e3246 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d612c9fcd7949029fc61faeb42e0daec3fd0710f --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5890fce5d1ee6c3856d7e5d279c79f5cc9212112 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb1b9abea500f009a62d9c3ede06e9cab38cd65a --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9534f81887932f360b1aeaae298a07b588e39b9a --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6b7316a7e05c30b00b41c4357d58b51529d7a993 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6534cf43c2c8edc865c57c6779e3ecf5c4acf21d --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5bb9f55171d902886d184fbb2b2886a3e5259442 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..cba3a91519aefe0d34111c819fd08c95f09ad295 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..91cd92fda4d7acf2601aa33e707276d0ed383f86 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6996f33fd8d50138d5a3f118262365806d437b3d --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..7a1d42c93bdf4a65a12d7ea983ced0480e095489 --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..b14606d3335b4304d7b46239f6f872a494f844ec --- /dev/null +++ b/Data_3.0/factor-width/m3/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="0" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m3/makeini.py b/Data_3.0/factor-width/m3/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-width/m3/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-width/m3/master_ini.xml b/Data_3.0/factor-width/m3/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..1a63c58035888a8c9daa8d4f46d7134bf2fa53c8 --- /dev/null +++ b/Data_3.0/factor-width/m3/master_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="0"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/m4/fmaster_ini.xml b/Data_3.0/factor-width/m4/fmaster_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..dc438d7447ce9a2aa0e21cd03eb1ca6319d88cd7 --- /dev/null +++ b/Data_3.0/factor-width/m4/fmaster_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="50" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="50" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="50" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="50" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/m4/geometries/0.8_geometry.xml b/Data_3.0/factor-width/m4/geometries/0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5b6c1c11e22ce084d8115cf8632097dd959b4920 --- /dev/null +++ b/Data_3.0/factor-width/m4/geometries/0.8_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.4"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.6"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.6"/> + <vertex px="12.0" py="3.6"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.4"/> + <vertex px="12.0" py="4.4"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.6"/> + <vertex px="10" py="4.4"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.6"/> + <vertex px="12" py="4.4"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m4/geometries/1.0_geometry.xml b/Data_3.0/factor-width/m4/geometries/1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d78ad4c9736c29a889614e908a44c6469a920638 --- /dev/null +++ b/Data_3.0/factor-width/m4/geometries/1.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.5"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.5"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.5"/> + <vertex px="12.0" py="3.5"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.5"/> + <vertex px="12.0" py="4.5"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.5"/> + <vertex px="10" py="4.5"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.5"/> + <vertex px="12" py="4.5"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m4/geometries/1.2_geometry.xml b/Data_3.0/factor-width/m4/geometries/1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2fd2180ed3e54a272fa086e823188edfcb9fb7c4 --- /dev/null +++ b/Data_3.0/factor-width/m4/geometries/1.2_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.6"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.4"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.4"/> + <vertex px="12.0" py="3.4"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.6"/> + <vertex px="12.0" py="4.6"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.4"/> + <vertex px="10" py="4.6"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.4"/> + <vertex px="12" py="4.6"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m4/geometries/1.6_geometry.xml b/Data_3.0/factor-width/m4/geometries/1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9c3f95fc4340a72c00a88ede157a23de2bea2c5e --- /dev/null +++ b/Data_3.0/factor-width/m4/geometries/1.6_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="4.8"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.2"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.2"/> + <vertex px="12.0" py="3.2"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="4.8"/> + <vertex px="12.0" py="4.8"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.2"/> + <vertex px="10" py="4.8"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.2"/> + <vertex px="12" py="4.8"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m4/geometries/2.0_geometry.xml b/Data_3.0/factor-width/m4/geometries/2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..bebd94d6da99dd74b65b5615665c658780f5c49d --- /dev/null +++ b/Data_3.0/factor-width/m4/geometries/2.0_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.0"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="3.0"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="3.0"/> + <vertex px="12.0" py="3.0"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.0"/> + <vertex px="12.0" py="5.0"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="3.0"/> + <vertex px="10" py="5.0"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="3.0"/> + <vertex px="12" py="5.0"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m4/geometries/2.5_geometry.xml b/Data_3.0/factor-width/m4/geometries/2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..275d9497db0485d5b346cf8065f392428a0c2d2f --- /dev/null +++ b/Data_3.0/factor-width/m4/geometries/2.5_geometry.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + +<geometry version="0.8" caption="Projectname" gridSizeX="20.000000" + gridSizeY="20.000000" unit="m" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://134.94.2.137/jps_geoemtry.xsd "> + <rooms> + <room id="0" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="Source"> + <vertex px="0.0" py="8.0"/> + <vertex px="-8.0" py="8.0"/> + <vertex px="-8.0" py="0.0"/> + <vertex px="0.0" py="0.0"/> + </polygon> + </subroom> + </room> + <room id="1" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="MainRoomLeftWall"> + <vertex px="0.0" py="8.0"/> + <vertex px="10.0" py="8.0"/> + <vertex px="10.0" py="5.25"/> + </polygon> + <polygon caption="MainRoomRightWall"> + <vertex px="0.0" py="0.0"/> + <vertex px="10.0" py="0.0"/> + <vertex px="10.0" py="2.75"/> + </polygon> + </subroom> + </room> + <room id="2" closed="0" zpos="0.0"> + <subroom id="0" closed="0" class="subroom"> + <polygon caption="CorridorLeftWall"> + <vertex px="10.0" py="2.75"/> + <vertex px="12.0" py="2.75"/> + </polygon> + <polygon capton="CorridorRightWall"> + <vertex px="10.0" py="5.25"/> + <vertex px="12.0" py="5.25"/> + </polygon> + </subroom> + </room> + </rooms> + <transitions> + <transition id="0" type="emergency" + room1_id="0" subroom1_id="0" room2_id="1" + subroom2_id="0"> + <vertex px="0" py="0"/> + <vertex px="0" py="8"/> + </transition> + <transition id="1" type="emergency" + room1_id="1" subroom1_id="0" room2_id="2" + subroom2_id="0"> + <vertex px="10" py="2.75"/> + <vertex px="10" py="5.25"/> + </transition> + <transition id="2" type="emergency" + room1_id="2" subroom1_id="0" room2_id="-1" + subroom2_id="-1"> + <vertex px="12" py="2.75"/> + <vertex px="12" py="5.25"/> + </transition> + + </transitions> +</geometry> diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..a67f2adf2dab44abd539fbd421fbcacad720c5f1 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..8447e409bf2303808e0c97c6303d395a1128b0f0 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..c6629a2054930b2484bf431cca75ef0d0808872b --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d4ba302b0ed1ba509e6dc74898bf47ab99c9aaf9 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..d191c82238cf6af51ae9081e482dcb547164eef9 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..de863a07f3547532f35a7501c88eeef418a79614 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_1.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>1.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_1.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..0584c2993fef491e00bb276bc015cde18e9e0c48 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..7a797e6ef3ad5ea3c711e7b3dd186c1229949919 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..239553a32091a313f1f195e30065b0c24a1d3c5c --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..61de1fc2754980d0403964105a1e42e67c8d7c7d --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..11cd24ae1d4859e9863da1e06f8e9f382fdee3cb --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6aa65dccf1ae2378b1a887021fa3d2b0f495283c --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_10000.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>10000.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_10000.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9851c478cb1aa95d15f2207d47e5486d25effe6d --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..1cd9dd7cb9cb8c99682469f5ff660209901a6a1e --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..8188d300bb0a6d8ae24376ab9d12d6eed75791e4 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..5e109882254eb051a937df0a41efdcea48d39630 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..7d0ae4dbddbe39ec0c0fe29cc814d8cdab4977d3 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..38e3fdfe486bf6f5d6831ffc6b0fa69c663d3c32 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_3334.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>3334.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_3334.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..ef3a7a2ef0aa55414a42d921ae44633eb9f6a8dd --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_0.8_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/0.8_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_0.8_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..07d39067247ea055179febf3c8de800869931eed --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..9da92516af6b73de2e2498f295e6224587cff445 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.2_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.2_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.2_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6079ff200de1c4449dca6ecef533437f739a7150 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_1.6_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/1.6_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_1.6_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..2a068955682de2297547afe4ae2239e852306107 --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_2.0_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.0_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.0_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml new file mode 100644 index 0000000000000000000000000000000000000000..6353279fbd6b64348bcf4a368ee878042d62504f --- /dev/null +++ b/Data_3.0/factor-width/m4/inifiles/ini_seed_6667.0_geometry_2.5_geometry.xml @@ -0,0 +1,70 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>6667.0</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + + <geometry>../geometries/2.5_geometry.xml</geometry> + + <trajectories embed_mesh="false" format="xml-plain" fps="8"> + <file location="../trajectories/traj_seed_6667.0_geometry_2.5_geometry.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> + <source agents_max="25" caption="source 1" frequency="1" greedy="false" group_id="0" id="1" /> + <source agents_max="25" caption="source 2" frequency="1" greedy="false" group_id="1" id="2" /> + <source agents_max="25" caption="source 3" frequency="1" greedy="false" group_id="2" id="3" /> + <source agents_max="25" caption="source 4" frequency="1" greedy="false" group_id="3" id="4" /> + <source agents_max="50" caption="source 5" frequency="1" greedy="false" group_id="0" id="5" /> + <source agents_max="50" caption="source 6" frequency="1" greedy="false" group_id="1" id="6" /> + <source agents_max="50" caption="source 7" frequency="1" greedy="false" group_id="2" id="7" /> + <source agents_max="50" caption="source 8" frequency="1" greedy="false" group_id="3" id="8" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1" /> + <waiting_time Tw="2" /> + <model_submodel direction="1" speed="1" /> + <GCVM using="1" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> \ No newline at end of file diff --git a/Data_3.0/factor-width/m4/makeini.py b/Data_3.0/factor-width/m4/makeini.py new file mode 100644 index 0000000000000000000000000000000000000000..c295b6a9a7877d69a54adfd25aba0b8c3361f258 --- /dev/null +++ b/Data_3.0/factor-width/m4/makeini.py @@ -0,0 +1,267 @@ +# help: python3 makeini.py -h +import argparse +import errno +import glob +import logging +import os +import sys +import time +import itertools +from numpy import * +from shutil import copy2, rmtree, move + +try: + import xml.etree.cElementTree as ET +except ImportError: + import xml.etree.ElementTree as ET + +SUCCESS = 0 +FAILURE = 1 + +ego = os.path.basename(sys.argv[0]).split(".")[0] + ".txt" +print("ego: ", ego) +logfile = "log_%s"%ego +logging.basicConfig(filename=logfile, level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s') +# ============= some directories ============= +#HOME = os.path.expanduser("~") +#TRUNK = HOME + "/Workspace/ped|ynamics/JuPedSim/jpscore/" +#JPSCORE = TRUNK + "bin/jpscore" +#CURDIR = os.getcwd() +# ============= some default dictionaries ============= +default_value = {'tmax':1000, 'seed':1111, 'geometry':'', 'number':1, 'num_threads':1, + 'file':'', 'model_id':1, 'exit_crossing_strategy':3, 'cell_size':2.2, + 'operational_model_id':1} + +# only these tags can be multiplied +tags = ['tmax', + 'seed', + 'geometry', + 'exit_crossing_strategy', + 'num_threads', + 'stepsize'] + +# format tag-attribute +attributes_tags = ['group-pre_movement_mean', + 'group-number', + 'group-router_id', + 'group-agent_parameter_id', + 'group-premovement_sigma', + 'agents-operational_model_id', + 'linkedcells-cell_size', + 'v0-mu', 'v0-sigma', + 'v0_upstairs-mu', 'v0_upstairs-sigma', + 'v0_downstairs-mu', 'v0_downstairs-sigma', + 'bmax-mu', 'bmin-mu', + 'amin-mu', 'tau-mu', + 'atau-mu', + 'force_ped-dist_max', + 'force_ped-disteff_max', + 'force_ped-interpolation_width', + 'force_ped-nu', + 'force_ped-b', + 'force_ped-c', + 'force_wall-dist_max', + 'force_wall-disteff_max', + 'force_wall-interpolation_width', + 'force_wall-nu', + 'force_wall-b', + 'force_wall-c', + 'source-frequency', + 'source-agents_max', + ] + +import numpy as np +# cor_tags = np.unique([att.split("_")[0] for att in attributes_tags]).astype(str)a +cor_tags = [att.split("-")[0] for att in attributes_tags] +attributes = [att.split(tag+"-")[1] for (att, tag) in zip(attributes_tags, cor_tags)] +cor_tags = np.unique(cor_tags) +attributes = np.unique(attributes) +input_tags = {} +# ======================================================= +def getParserArgs(): + parser = argparse.ArgumentParser(description='Generate inifiles for jpscore simulations. ') + parser.add_argument("-f", "--file", metavar='in-file', required=True, help='Master inifile') + args = parser.parse_args() + return args + +# ======================================================= +def make_dir(path): + if os.path.exists(path): + rmtree(path) + try: + os.makedirs(path) + except OSError as exception: + if exception.errno != errno.EEXIST: + raise +# ======================================================= +def get_tag(node): + # geometry + if node.tag == "geometry": + geometries = [] + geom = glob.glob("%s/*.xml"%node.text) + for g in geom: + geometries.append('../geometries' + g.split(".xml")[0].split("geometries")[1] + ".xml") + # the geometries are relative to the inifiles directory + #print geometries + return geometries + else: + text = node.text + + if text: + value = eval(text) + else: + value = default_value[node.tag] + return value +# ======================================================= +def get_attribute(node): + text = '' + values = [] + + for node_attrib in list(node.attrib.keys()): + if node_attrib in attributes: + text = node.attrib[node_attrib] + if text: + value = eval(text) + else: + value = 0 + if isinstance(value, list) or isinstance(value, ndarray): + if len(value) > 1: + values.append([value, str(node.tag)+"-"+str(node_attrib), node_attrib]) + + return values +# ======================================================= +def get_product(root): + """ + read values, which may be lists or arrays of len>1 and return a list of + dics composed of the cartesian product of these lists. + example: + we read from the file (xml --> root) the following + {'num_threads': [5, 1, 2], 'tmax': [1, 2]} + return is: + [ + {'numCPU': 5, 'tmax': 1}, {'numCPU': 5, 'tmax': 2}, + {'numCPU': 1, 'tmax': 1}, {'numCPU': 1, 'tmax': 2}, + {'numCPU': 2, 'tmax': 1}, {'numCPU': 2, 'tmax': 2} + ] + """ + for node in root.iter(): + tag = node.tag + if tag in tags: # ignore tags that are not of interest + d = get_tag(node) + if isinstance(d, list) or isinstance(d, ndarray) or isinstance(d, range): + # in case some tags have multiple values + if tag not in input_tags and len(d) > 1: + # ignore lists with one element (equiv to scalars) + # if tag in tags: + input_tags[tag] = d + elif bool(set(node.attrib.keys()) & set(attributes)): # check our list of attributes + values = get_attribute(node) # d, atr_tag, attr + # value, atr_tag, atr + for value in values: + d = value[0] + atr_tag = value[1] + input_tags[atr_tag] = d + else: + continue + + result_prod = [dict(zip(input_tags, x)) for x in itertools.product(*iter(input_tags.values()))] + return result_prod +# ======================================================= +def make_filename(directory, d): + name = "%s/inifiles/ini"%directory + traj = "../trajectories/traj" #%directory + for key, value in d.items(): + if key == "geometry": + value = os.path.basename(value) + # if key == "num_threads": + # value = "numCPU" + name += "_" + key + "_" + str(value) + traj += "_" + key + "_" + str(value) + + if not name.endswith("xml"): + name += ".xml" + if not traj.endswith("xml"): + traj += ".xml" + #print "name", (name) + return name, traj +# ======================================================= +def update_tag_value(root, tag, value): + for rank in root.iter(tag): + rank.text = str(value) +# ======================================================= +def update_attrib_value(root, attr_tag, value): + # location + print ("update_attrib_value: ", attr_tag, value) + # raw_input() + if attr_tag == "location": # e.g. location + for r in root.iter(): + if attr_tag in r.attrib: + r.attrib[attr_tag] = str(value) + return + + attr = attr_tag.split("-")[1] + cor_tag = attr_tag.split("-")[0] + + for r in root.iter(cor_tag): + if attr in r.attrib: + r.attrib[attr] = str(value) +# ======================================================= +def make_file(masterfile, tree, result): + """ + Given a list of dictionaries produce an xml file for each dic. + The file is first copied from masterfile. + """ + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + root = tree.getroot() + for item in result: + newfile, trajfile = make_filename(directory, item) + copy2(masterfile, newfile) + #update trajectory file + update_attrib_value(root, "location", trajfile) + if not os.path.isfile(newfile): + logging.error("make_file: could not create file %s"%newfile) + sys.exit(FAILURE) + for tag, value in item.items(): + # print "tag: ", tag, "value:", value + # raw_input() + if tag in attributes_tags: + update_attrib_value(root, tag, value) + else: + update_tag_value(root, tag, value) + + logging.info('>> %s'%newfile) + tree.write(newfile) +# ======================================================= + +if __name__ == "__main__": + time1 = time.clock() + args = getParserArgs() + + masterfile = args.file + if not os.path.isfile(masterfile): + logging.error("ERROR: file %s does not exist."%masterfile) + sys.exit(FAILURE) + + directory = os.path.dirname(os.path.abspath(masterfile)) #args.directory + logging.info('working directory = <%s>'%directory) + logging.info('master inifile = <%s>'%masterfile) + make_dir("%s/trajectories"%directory) + make_dir("%s/inifiles"%directory) + + tree = ET.parse(masterfile) + root = tree.getroot() + result = get_product(root) + make_file(masterfile, tree, result) + + time2 = time.clock() + print(directory) + print("%s/%s"%(directory, logfile)) + print(os.path.isfile("%s/%s"%(directory, logfile))) + + if not os.path.isfile("%s/%s"%(directory, logfile)): + move(logfile, directory) + logging.info('time elapsed: %.2f to generate %d files'%(time2 - time1, len(result))) + if 0: + sys.exit(FAILURE) + else: + sys.exit(SUCCESS) diff --git a/Data_3.0/factor-width/m4/master_ini.xml b/Data_3.0/factor-width/m4/master_ini.xml new file mode 100644 index 0000000000000000000000000000000000000000..3832e6baa603361f211f56e0db6bb683b2da6825 --- /dev/null +++ b/Data_3.0/factor-width/m4/master_ini.xml @@ -0,0 +1,121 @@ +<JuPedSim xmlns:ns0="http://xsd.jupedsim.org/jps_ini_core.xsd" project="JPS-Project" version="0.8" ns0:noNamespaceSchemaLocation="ini.xsd"> + <seed>linspace(1,10000,4)</seed> + + <num_threads>8</num_threads> + <max_sim_time unit="sec">500</max_sim_time> + <!-- + <logfile>log.txt</logfile> + --> + <geometry>geometries/</geometry> + + <trajectories format="xml-plain" embed_mesh="false" fps="8"> + <file location="Traj_test_13.xml" /> + </trajectories> + + <show_statistics>false</show_statistics> + + <agents operational_model_id="7"> + <agents_distribution> + <group agent_parameter_id="1" goal_id="-1" group_id="0" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="1" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="2" number="0" room_id="0" router_id="1" subroom_id="0" /> + <group agent_parameter_id="1" goal_id="-1" group_id="3" number="0" room_id="0" router_id="1" subroom_id="0" /> + </agents_distribution> + <agents_sources> <!-- Set entrance flow --> + <source id="1" frequency="1" agents_max="25" group_id="0" caption="source 1" greedy="false" /> + <source id="2" frequency="1" agents_max="25" group_id="1" caption="source 2" greedy="false" /> + <source id="3" frequency="1" agents_max="25" group_id="2" caption="source 3" greedy="false" /> + <source id="4" frequency="1" agents_max="25" group_id="3" caption="source 4" greedy="false" /> + <source id="5" frequency="1" agents_max="50" group_id="0" caption="source 5" greedy="false" /> + <source id="6" frequency="1" agents_max="50" group_id="1" caption="source 6" greedy="false" /> + <source id="7" frequency="1" agents_max="50" group_id="2" caption="source 7" greedy="false" /> + <source id="8" frequency="1" agents_max="50" group_id="3" caption="source 8" greedy="false" /> + </agents_sources> + </agents> + + <operational_models> + <model description="simplest" operational_model_id="7"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.05</stepsize> <!-- Set time steps --> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.3" /> + <update_method parallel="1"/> <!-- Update method is parallel when parallel=1, while unparallel when parallel=0 --> + <waiting_time Tw="2"/> <!-- Deleting pedestrian Tw seconds after the clogging --> + <model_submodel direction="1" speed="1"/> <!-- When direction=1 means using direction part, when speed=1 means using speed part --> + <GCVM using="1"/> <!-- When using=1 menas we using GCVM in the simulation --> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.20" sigma="0.00000" /> + <bmin mu="0.20" sigma="0.00000" /> + <amin mu="0.20" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + </model> + <!-- + <model operational_model_id="3" description="Tordeux2015"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.01</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells enabled="true" cell_size="2.2" /> + <force_ped a="8" D="0.1" /> + <force_wall a="5" D="0.02" /> + </model_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.0" sigma="0.001" /> + <bmax mu="0.15" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.15" sigma="0.00000" /> + <tau mu="0.5" sigma="0.001" /> + <atau mu="0.0" sigma="0.00000" /> + <T mu="1" sigma="0.001" /> + </agent_parameters> + </model> + <model description="gcvm" operational_model_id="6"> + <model_parameters> + <solver>euler</solver> + <stepsize>0.04</stepsize> + <exit_crossing_strategy>3</exit_crossing_strategy> + <linkedcells cell_size="300" enabled="true" /> + <force_ped D="0.1" a="3" /> + <force_wall D="0.05" a="6" /> + <time_parameters Td="0.3" Ts="0.5" /> + </model_parameters> + <agent_parameters agent_parameter_id="1"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.2" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="1" /> + </agent_parameters> + <agent_parameters agent_parameter_id="2"> + <v0 mu="1.34" sigma="0.26" /> + <bmax mu="0.25" sigma="0.00000" /> + <bmin mu="0.15" sigma="0.00000" /> + <amin mu="0.18" sigma="0.00000" /> + <atau mu="0.00" sigma="0.00000" /> + <tau mu="0.5" sigma="0.000" /> + <shape circle="0" /> + </agent_parameters> + </model> + --> + </operational_models> + + <route_choice_models> + <router description="local_shortest" router_id="1"> + <parameters> + + </parameters> + </router> + </route_choice_models> + +</JuPedSim> diff --git a/Data_3.0/factor-width/simulation-plotting-width.py b/Data_3.0/factor-width/simulation-plotting-width.py new file mode 100644 index 0000000000000000000000000000000000000000..254b2ec2c9f767ae009d865b3f8efab40634a371 --- /dev/null +++ b/Data_3.0/factor-width/simulation-plotting-width.py @@ -0,0 +1,226 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Sun Apr 7 22:03:23 2019 + +@author: administer +""" +import matplotlib.pyplot as plt +import subprocess +import os +import glob +import shutil +import numpy as np +import sys + + +executable = "/home/ias7137/Liu/jpscore/bin/jpscore" + +Model = glob.glob("m*") +for model in Model: + os.chdir(model) + subprocess.call(["python", "makeini.py", "-f", "master_ini.xml"]) + os.chdir('..') +print("inifiles are finished") + +# from here begins the simulation + +print('from here begins the simulation ') +#verify width list +#Model = glob.glob("m*") + +for model in Model: + os.chdir(model+'/inifiles') + inifiles = glob.glob("*.xml") + for inifile in inifiles: + subprocess.call([executable, "--inifile=%s"%inifile]) + inifiles=glob.glob('*') + for filename in inifiles: + if filename.endswith('.txt'): + shutil.move(filename,'../clogginglog/') + os.chdir("../clogginglog") + os.rename(filename,inifile.split('try_')[1].split('_g')[0]+filename) + os.chdir("../inifiles") + + os.chdir("../..") + +# simulation is finished,and plotting is beginning + +#Model = glob.glob('m*') + + +j=0 +BIG_meanNmax=[[],[],[],[],[]] +BIG_meanTimespan=[[],[],[],[],[]] +BIG_C=[[],[],[],[],[]] + +for model in Model: + Nmax_w1=[] + Nmax_w2=[] + Nmax_w3=[] + Nmax_w4=[] + Nmax_w5=[] + Nmax_w6=[] + + Timespan_w1=[] + Timespan_w2=[] + Timespan_w3=[] + Timespan_w4=[] + Timespan_w5=[] + Timespan_w6=[] + + W=[0.8,1.0,1.2,1.6,2.0,2.5] + MeanNmax=[0,0,0,0,0,0] + meanTimespan=[0,0,0,0,0,0] + + print(model) + os.chdir(model+'/clogginglog') + Logs=glob.glob('*') + for log in Logs: + + + if log.split('Clo')[0] == '0.8': + if np.loadtxt(log).shape ==(3,): + Nmax_w1.append(np.loadtxt(log)[-1]) + MeanNmax[0]=sum(Nmax_w1)/len(Nmax_w1) + Timespan_w1.append(np.loadtxt(log)[1]) + meanTimespan[0]=sum(Timespan_w1)/len(Timespan_w1) + else : + Nmax_w1.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[0]=sum(Nmax_w1)/len(Nmax_w1) + Timespan_w1.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[0]=sum(Timespan_w1)/len(Timespan_w1) + + + if log.split('Clo')[0] == '1.0': + if np.loadtxt(log).shape ==(3,): + Nmax_w2.append(np.loadtxt(log)[-1]) + MeanNmax[1]=sum(Nmax_w2)/len(Nmax_w2) + Timespan_w2.append(np.loadtxt(log)[1]) + meanTimespan[1]=sum(Timespan_w2)/len(Timespan_w2) + + else : + Nmax_w2.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[1]=sum(Nmax_w2)/len(Nmax_w2) + Timespan_w2.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[1]=sum(Timespan_w2)/len(Timespan_w2) + + if log.split('Clo')[0] == '1.2': + if np.loadtxt(log).shape ==(3,): + Nmax_w3.append(np.loadtxt(log)[-1]) + MeanNmax[2]=sum(Nmax_w3)/len(Nmax_w3) + Timespan_w3.append(np.loadtxt(log)[1]) + meanTimespan[2]=sum(Timespan_w3)/len(Timespan_w3) + + else : + Nmax_w3.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[2]=sum(Nmax_w3)/len(Nmax_w3) + Timespan_w3.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[2]=sum(Timespan_w3)/len(Timespan_w3) + + if log.split('Clo')[0] == '1.6': + if np.loadtxt(log).shape ==(3,): + Nmax_w4.append(np.loadtxt(log)[-1]) + MeanNmax[3]=sum(Nmax_w4)/len(Nmax_w4) + Timespan_w4.append(np.loadtxt(log)[1]) + meanTimespan[3]=sum(Timespan_w4)/len(Timespan_w4) + + else : + Nmax_w4.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[3]=sum(Nmax_w4)/len(Nmax_w4) + Timespan_w4.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[3]=sum(Timespan_w4)/len(Timespan_w4) + + if log.split('Clo')[0] == '2.0': + if np.loadtxt(log).shape ==(3,): + Nmax_w5.append(np.loadtxt(log)[-1]) + MeanNmax[4]=sum(Nmax_w5)/len(Nmax_w5) + Timespan_w5.append(np.loadtxt(log)[1]) + meanTimespan[4]=sum(Timespan_w5)/len(Timespan_w5) + + else: + Nmax_w5.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[4]=sum(Nmax_w5)/len(Nmax_w5) + Timespan_w5.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[4]=sum(Timespan_w5)/len(Timespan_w5) + + if log.split('Clo')[0] == '2.5': + if np.loadtxt(log).shape ==(3,): + Nmax_w6.append(np.loadtxt(log)[-1]) + MeanNmax[5]=sum(Nmax_w6)/len(Nmax_w6) + Timespan_w6.append(np.loadtxt(log)[1]) + meanTimespan[5]=sum(Timespan_w6)/len(Timespan_w6) + + else: + Nmax_w6.append(np.loadtxt(log)[:,2][-1]) + MeanNmax[5]=sum(Nmax_w6)/len(Nmax_w6) + Timespan_w6.append(np.loadtxt(log)[-1][1]-np.loadtxt(log)[0][1]) + meanTimespan[5]=sum(Timespan_w6)/len(Timespan_w6) + + print(MeanNmax) + print(meanTimespan) + + BIG_meanNmax[j]= MeanNmax + BIG_meanTimespan[j]=meanTimespan + + C=[0,0,0,0,0,0] + for i in range(len(MeanNmax)): + if meanTimespan[i]==0: + pass + + else: + C[i]=meanTimespan[i]/MeanNmax[i] + BIG_C[j]=C + print(C) + j=j+1 + + plt.figure() + plt.plot(W,MeanNmax) + plt.savefig('W-N') + + plt.figure() + plt.plot(W,C) + plt.savefig('W-NT') + + print('now leave'+model) + + + os.chdir('../..') + + + +std1=np.std(BIG_meanNmax) +plt.figure() +plt.grid() +plt.title('standard deviation is %s'%std1) +plt.plot(W,BIG_meanNmax[0],label='M1') +plt.plot(W,BIG_meanNmax[1],label='M0') +plt.plot(W,BIG_meanNmax[2],label='M2') +plt.plot(W,BIG_meanNmax[3],label='M3') +plt.plot(W,BIG_meanNmax[4],label='M4') +plt.xlabel('Width in (m)') +plt.ylabel('mean clogging times') +plt.legend(loc='upper right') +plt.savefig('figure/multiM-w-n',dpi=300) + + + +std2=np.std(BIG_C) +plt.figure() +plt.grid() +plt.title('standard deviation is %s'%std2) +plt.plot(W,BIG_C[0],label='M1') +plt.plot(W,BIG_C[1],label='M0') +plt.plot(W,BIG_C[2],label='M2') +plt.plot(W,BIG_C[3],label='M3') +plt.plot(W,BIG_C[4],label='M4') +plt.xlabel('Width in (m)') +plt.ylabel('mean clogging times per second') +plt.legend(loc='upper right') +plt.savefig('figure/multiM-w-nt',dpi=300) + + + +