I got the solution!

When i generated random trips by randonTrips.py, i used option -i
(intermediate<INT>) which added all the trips via-edges. That's why cars
didn't move on the shortest route without rerouter device.

Now everything is okay, i learned it :)

Adam

2017-04-21 19:23 GMT+02:00 Ádám Pintér <[email protected]>:

> Hi Michael,
>
> Thank you for your answer.
>
> My simple test network is a gridnetwork, all the edges have same types, no
> intersection has traffic lights - all of them working by "priority" method.
> So every component have the same details.
>
> I checked the routes visualy in GUI by "show current route".
> When there is no reroute device, first car makes loops and many
> unnecesarry ways. It dosen't use neither shortest nor fastest route.
> When there is reroute device, first car goes directly to the aim on the
> shortest route.
> Screenshots can see here: https://drive.google.com/drive/folders/
> 0B2MSsuw0vMlzTTZKOTctWjlobHc?usp=sharing
>
> I tried on other gridnetworks, but all have the same situation.
> I tried to ran duarouter using code "--remove-loops true", but nothing
> happend.
>
> Do you have any idea in my case why duarouter working on a really not
> effective route? How can i use it properly, maybe on gridnetwork doesn't
> work?
>
> thank you,
> Adam
>
>
>
> 2017-04-21 18:40 GMT+02:00 Michael Behrisch <[email protected].
> net>:
>
>> Hi Adam,
>> duarouter is not looking for the shortest route but for the fastest
>> (without considering traffic delays), so you may have (theoretically)
>> fast roads in your network, like motorways,  which get jammed when
>> running the simulation, delaying the car. Also traffic lights can be a
>> reason for such a mismatch.
>>
>> Best regards,
>> Michael
>>
>> Am 21.04.2017 um 17:38 schrieb Ádám Pintér:
>> > Hi all,
>> >
>> > I'm investigating DUAROUTER's path and i've got a misunderstanding.
>> >
>> > I created rou file by duarouter script, using this code:
>> > duarouter --trip-files trips.xml --net-file road.net.xml --output-file
>> > result.rou.xml
>> >
>> > It supposed to give the shortest route, as i know.
>> >
>> > 1st case
>> > - normally i run the simulation
>> >    simulation time 1693
>> >    first car's route length 10752
>> >
>> > 2nd case
>> > - in this case i put extra code into sumo.cfg, but nothing else:
>> >
>> > <routing>
>> >
>> > <device.rerouting.probability value="1.0"/>
>> > <device.rerouting.period value="1"/>
>> > </routing>
>> >
>> >    simulation time: 573
>> >    first car's route length 5165
>> >
>> > ----
>> > I checked by tripinfo-output in both simulation the first car's
>> departLane
>> > and arrivalLane are the same. Duration and routeLength are different.
>> >
>> > I don't understand why I don't get the shortest route in the first case
>> > when i use DUAROUTER.
>> > I use rerouting device to get a faster way in my simulation and then i
>> > would like to compare with duarouter, but in my opinion i can't get
>> shorter
>> > route than duarouter's path.
>> >
>> > Can you give me some explanation, does rerouting device change something
>> > else?
>> >
>> > Thank you in advance,
>> > Adam
>> > ------------------------------------------------------------
>> ------------------
>> > Check out the vibrant tech community on one of the world's most
>> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> > _______________________________________________
>> > sumo-user mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/sumo-user
>> >
>>
>>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to