Yes, I already tried the --binomial and understand how it works. But
because I need to create flow instead of trips, I have to use --flow option.
I need to create files, with a certain number of flows, fromJunction
toJunction, each with the probability of 0.5.
The command line I use is
python myRandomTrips.py -n eichstaett.net.xml -o
./Trips$j/RoutingSim$i.rou.xml --random true -b 0 -e 500 --binomial
--flow $j --junction-taz true
how should I fix it to have something like this?
<flow id="0#0" begin="0" end="500" probability="0.5" fromJunction="1223"
toJunction="2034"/>
<flow id="1" begin="0" end="500" probability=" 0.5 "
fromJunction="1232" toJunction="1839"/>
<flow id="2" begin="0" end="500" probability=" 0.5 "
fromJunction="1496" toJunction="2294"/>
<flow id="3" begin="0" end="500" probability=" 0.5 " fromJunction="909"
toJunction="1232"/>
<flow id="4" begin="0" end="500" probability=" 0.5 "
fromJunction="1520" toJunction="2097"/>
<flow id="5" begin="0" end="500" probability=" 0.5 "
fromJunction="2160" toJunction="1979"/>
<flow id="6" begin="0" end="500" probability=" 0.5 "
fromJunction="1348" toJunction="1438"/>
<flow id="7" begin="0" end="500" probability=" 0.5 "
fromJunction="1341" toJunction="785"/>
<flow id="8" begin="0" end="500" probability=" 0.5 " fromJunction="461"
toJunction="2284"/>
<flow id="9" begin="0" end="500" probability=" 0.5 "
fromJunction="1801" toJunction="2284"/>
On Mon, May 25, 2020 at 10:12 AM Jakob Erdmann <[email protected]>
wrote:
> 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
>
--
*RAZ*
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user