[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] [EXT] AW: rerouting dynamically
|
Hi Hector,
well for the first one you can call sumo -c yourcfg.sumocfg --device.rerouting.probability 1 --device.rerouting.period 600 --save-configuration yourcfg.sumocfg to get your config file updated and set a rerouting period of 10min = 600s. For the second one, you can find lots of examples in our test suite, e.g. this one.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: RE: [EXT] AW: [sumo-user] rerouting dynamically
Datum: 2024-05-20T13:12:01+0200
Von: "Hector A Martinez" <hmartinez@xxxxxxxxx>
An: "Mirko Barthauer" <m.barthauer@xxxxxxxxxxx>, "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
Thank you Mirko!
Would you be kind to send me an example of those two in code so that I don’t mess it up?
As I mentioned in my email below, I codified it in the vtype line for all the vehicles as such:
<vType id="trailer_truck" vClass="trailer" device.rerouting.probabiliy="1"/>
But this didn’t make a difference.
Do I have to do this on a different config file? Would you send me an example of this applied in code and which config files need it?
Thanks,
--H
From: Mirko Barthauer <m.barthauer@xxxxxxxxxxx>
Sent: Saturday, May 18, 2024 10:11 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Cc: Hector A Martinez <hmartinez@xxxxxxxxx>
Subject: [EXT] AW: [sumo-user] rerouting dynamically
Dear Hector, assigning the rerouting device works similarly to the other devices. If you want it to be assigned to any vehicle in the simulation, just call sumo with --device. rerouting. probability 1. Also set a period to do rerouting regularly
Dear Hector,
assigning the rerouting device works similarly to the other devices. If you want it to be assigned to any vehicle in the simulation, just call sumo with --device.rerouting.probability 1. Also set a period to do rerouting regularly with --device.rerouting.period. If you want the device to be present only in certain vehicle types, note the device parameters in so-called generic parameters ("param" child nodes of the vehicle type node, see doc). It works the same way for flows and single vehicles.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] rerouting dynamically
Datum: 2024-05-17T23:04:06+0200
Von: "Hector A Martinez via sumo-user" <sumo-user@xxxxxxxxxxx>
An: "Sumo project User discussions" <sumo-user@xxxxxxxxxxx>
Dear sumo community,
I would like my vehicles in the simulation to re-route dynamically if there is a disruption in the network. Currently it seems as if the vehicle just keeps going on its route even though there is jamming in the network.
Can I just configure my vehicles to reroute dynamically and not just keep the fastest route they have when they are loaded into the network?
I put this in my route files but I don’t see any difference:
<vType id="trailer_truck" vClass="trailer" device.rerouting.probabiliy="1"/>
Thanks for your help in advance,
Hector A. Martinez, P.E.
MITRE | Solving Problems for a Safer World (R)
813.207.5365