Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] --binomial option

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 <namdre.sumo@xxxxxxxxx> 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 <raheleh.zarei@xxxxxxxxx>:
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
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user


--
RAZ

Back to the top