Thank you Michael. So, in case I use the flows I sent you, could you please confirm that when, for example, I define the flow id 2 (from=“3"to=“4” vehsPerHour=“200”) it means that these vehicles run only in the specific edges. That is to say, that they don’t insert the network from the beginning (i.e. edge 1), right?
Best regards, Natalia > On 5 Nov 2018, at 08:26, Michael Behrisch <[email protected]> wrote: > > Hi Natalia, > both your definitions and the output are correct. The output gives the > total number of vehicles not the average. If all your edges are > consecutive you might want to define the vehicles to run all the edges > to have less insertions. Something like this: > > <flow id=“1" type="1" from="1" to=“10" begin="75600" end="79200" > vehsPerHour=“100" departLane="best" departSpeed="max"/> > <flow id=“2" type="1" from=“3" to=“10" begin="75600" end="79200" > vehsPerHour=“80" departLane="best" departSpeed="max"/> > <flow id=“3" type="1" from=“3" to=“4" begin="75600" end="79200" > vehsPerHour="20" departLane="best" departSpeed="max"/> > <flow id=“4" type="1" from=“7" to=“10" begin="75600" end="79200" > vehsPerHour=“50" departLane="best" departSpeed="max"/> > <flow id=“5" type="1" from=“9" to=“10" begin="75600" end="79200" > vehsPerHour=“20" departLane="best" departSpeed="max"/> > > Best regards, > Michael > > > Am 03.11.18 um 16:21 schrieb Natalia Liora: >> Hello, >> >> I want to run a simulation in which I have 10 road segments (edges). >> Along specific edges I want to define that different number of vehicles >> run each edge. >> >> In rou.xml file I define the above flows as following >> >> <flow >> id=“1"type="1"from="1"to=“2"begin="75600"end="79200"vehsPerHour=“100"departLane="best"departSpeed="max"/> >> <flow >> id=“2"type="1"from=“3"to=“4"begin="75600"end="79200"vehsPerHour=“200"departLane="best"departSpeed="max"/> >> <flow >> id=“3"type="1"from=“5"to=“6"begin="75600"end="79200"vehsPerHour="180"departLane="best"departSpeed="max"/> >> <flow >> id=“4"type="1"from=“7"to=“8"begin="75600"end="79200"vehsPerHour=“230"departLane="best"departSpeed="max"/> >> <flow >> id=“5"type="1"from=“9"to=“10"begin="75600"end="79200"vehsPerHour=“250"departLane="best"departSpeed="max"/> >> >> With the above flows I want to define the following >> from edge 1to 2 100 vehicles running. In the following, the vehicles >> increase to 200 until the edge 4. Then, the vehicles decrease to 180 >> until the edge 6 etc. >> >> I understand that with the above flows I do not get the desired vehicle >> flows since in the summary output I get that 960 vehicles have been >> loaded while the real average number of loaded vehicles should be 192. >> >> Could you please tell me how I have to define the flows? >> >> Thank a lot >> >> Natalia >> >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To change your delivery options, retrieve your password, or unsubscribe from >> this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > > _______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
