This is, because you are setting the option --binomial 2. The whole point of this option is to enable probabilistic departures with a per-second probability > 1. (The probability option needs to be smaller than 1 or you will get deterministic behavior). The probability is divided by the value given to --binomial and the number of flows is increased instead.
Am Mo., 25. Mai 2020 um 15:56 Uhr schrieb Raheleh Zarei < [email protected]>: > I tried it with different numbers, that also creates two flow for the same > origin-destination pair. e.g. if I put 2 it gives me 4, and if I put 4 it > gives me 8 which is 4 pairs. each pair are identical but with a different > id. > <flow id="0#0" begin="0" end="500" probability="0.5" > fromJunction="1951" toJunction="1131"/> > <flow id="0#1" begin="0" end="500" probability="0.5" > fromJunction="1951" toJunction="1131"/> > <flow id="1#0" begin="0" end="500" probability="0.5" > fromJunction="1968" toJunction="1931"/> > <flow id="1#1" begin="0" end="500" probability="0.5" > fromJunction="1968" toJunction="1931"/> > <flow id="2#0" begin="0" end="500" probability="0.5" > fromJunction="2495" toJunction="2496"/> > <flow id="2#1" begin="0" end="500" probability="0.5" > fromJunction="2495" toJunction="2496"/> > <flow id="3#0" begin="0" end="500" probability="0.5" > fromJunction="2141" toJunction="818"/> > <flow id="3#1" begin="0" end="500" probability="0.5" > fromJunction="2141" toJunction="818"/> > > On Mon, May 25, 2020 at 2:18 AM Jakob Erdmann <[email protected]> > wrote: > >> This is due to your use of --flow 1. If you want more origin-destination >> pairs you need to increase the number of flows. >> >> Am Mo., 25. Mai 2020 um 06:58 Uhr schrieb Raheleh Zarei < >> [email protected]>: >> >>> Hello, >>> >>> When I use --binomial with rondomTrip.py to create flows, it >>> creates two exact same trips as the output. >>> >>> My command line is: >>> python randomTrips.py -n eichstaett.net.xml -o RoutingSim1.rou.xml >>> --random true -b 0 -e 500 --binomial 2 --flow 1 --junction-taz true >>> >>> and this is the output: >>> <flow id="0#0" begin="0" end="500" probability="0.5" >>> fromJunction="1955" toJunction="144"/> >>> <flow id="0#1" begin="0" end="500" probability="0.5" >>> fromJunction="1955" toJunction="144"/> >>> >>> I was wondering why it does that and how can I fix it. >>> >>> Thanks, >>> Raheleh >>> >>> -- >>> *RAZ* >>> _______________________________________________ >>> sumo-user mailing list >>> [email protected] >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > > > -- > *RAZ* > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
