[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] weight update-routing algorithms
|
- From: Michael Behrisch <oss@xxxxxxxxxxx>
- Date: Sun, 28 Jun 2020 08:02:50 +0200
- Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3Hc0mTWljaGFlbCBC ZWhyaXNjaCA8bWljaGFlbEBiZWhyaXNjaC5kZT7CZgQTEQIAJgIbIwcLCQgHAwIBBhUIAgkK CwQWAgMBAh4BAheABQJS0sKXAhkBAAoJEDwQ/pbRcKYp+SEAoMJSvUzfk3u6EA1nMlMVSk85 nHhoAJ0VE5xLi2ni8j9wdx+uga7XGLtjhs7ATQRS0r7nEAQAkQLdzlu3i/Ddziadm2c/60ZX bcY3FYhHHfsKUHC/QING+lu3uHG0nPaElPTAHTr8UdFMbmpXkRs9+1v1RAvHBWW95BbUXZeu oBsoCm+4Jdktu+PeVxGKhOwQRdR30A4y/bIeRn7iMzkZKoQh0lE3ZEbs0T8TUHBGBUqwEhIv Y0MAAwUD/RXrkwtUiR61/bT96eMaxGtO15AqvlM8DYQ3Xs6EH09QlGzr/i0+usi01wGoh13p YGjzEDtTqO+lNs9AtS7nZAHA3cCWzLmdEXw6EY7IH4X7zOpKoj+JtLNjUd2Nzvhyl48LT217 g8GmCACL6Wo/G+fZ+30Mny+gWbDtEGXNIv7fwkkEGBECAAkFAlLSvucCGwwACgkQPBD+ltFw pimNZQCgnN5oibnjl7r2SVle6hgUMcckfN4AoMYRjy/Tqz9tq8TSUqNcOTjlMR7D
- Delivered-to: sumo-user@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
- List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0
Hi,
if you use routing without dynamic edge weights (not the rerouting
device but duarouter for instance) all router should behave the same
(unless you have artficial networks where you have multiple routes of
exactly the same length). If younupdate edge weights dynamically CH will
not use them but dijkstra and astar should still behave the same.
Best regards,
Michael
Am 23.06.20 um 17:01 schrieb Raheleh Zarei:
> Hello,
>
> I have some questions about routing algorithms in SUMO. I read the
> explanation in this
> link https://sumo.dlr.de/docs/Simulation/Routing.html but still, there
> are some points that are not clear to me.
> 1- Does CH return the same shortest (fastest) path as astar or
> Dijkstra? I'm asking this because I'm not sure if Dijkstra also uses the
> updated edge weights after each interval or if it calculates the real
> weight of each edge at the time of each s-t query.
> 2- Does CH return the approximate shortest (fastest) path but Dijkstra
> and astar return the exact one at time t?
> 3- Is this normal that with travel time as a metric, astar returns
> different average travel time (duration) for a 200 trips file than Dijkstra?
>
> Thanks
>
>
>
> On Tue, Jun 16, 2020 at 4:11 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx
> <mailto:namdre.sumo@xxxxxxxxx>> wrote:
>
> The metric is travel time and internal edges are taken into account.
>
>
> Am Di., 16. Juni 2020 um 21:49 Uhr schrieb Raheleh Zarei
> <raheleh.zarei@xxxxxxxxx <mailto:raheleh.zarei@xxxxxxxxx>>:
>
> Hello,
>
> I would like to know about calculating the cost of the shortest
> path in 3 routing algorithms in SUMO. Is the metric, travel
> time? Do they take the cost of internal edges into account when
> they find the shortest path?
> I read this page
> https://sumo.dlr.de/docs/Simulation/Routing.html , but it is not
> very clear for me.
> The reason I ask this is that I have added another routing
> algorithm in SUMO. I assign the cost of each edge using the
> function below:
>
> void MyRouter::setcurrent_weight(SUMOTime msTime, const V*
> const vehicle)
> {
> current_weight.clear();
> for (const E * edge : myEdges){
> if (edge->getFromJunction() != nullptr && edge->getToJunction()
> != nullptr) {
> current_weight.push_back(MSRoutingEngine::getEffort(edge,
> vehicle, STEPS2TIME(msTime)));}
> }
> }
>
> and update the whole vector in the interval defined by
> --device.rerouting.adaptation-interval . However, the
> calculated shortest path and duration, for some trips, are
> slightly longer. I think there should be a difference between
> how I assign the edge weight and the way CH and other algorithms do.
>
>
> --
> *RAZ*
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
>
>
> --
> *RAZ*
>
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
>
Attachment:
signature.asc
Description: OpenPGP digital signature