Hi James,
regarding your questions:
1. You can leave out the traveltime attribute.
2. You are free to define TAZ like described here
<https://sumo.dlr.de/docs/Demand/Importing_O/D_Matrices.html#simple_definition>
where all edges have the same weight.
3. There is a note
<https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#traffic_assignment_zones_taz>
in the docs about it. For odtrips the TAZ weight is used exclusively to
select the departure edge.
4. See answer to 3. Sumo will rely on travel times for routing.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: Re: [sumo-user] Question about Routing by Effort using SUMO
Datum: 2023-08-16T21:37:57+0200
Von: "James Cheng" <[email protected]>
An: "Mirko Barthauer" <[email protected]>
Hi Mirko,
Thank you so much for the response! Here are some follow up questions we
have:
1. If we use a separate attribute, such as cost, and specify it in the
--weight-attribute argument, do we still need to include the travel
time in our weight file? Specifically, if we specify a weight
attribute, would duarouter only use cost as the weight or would it
also consider the travel time? I noticed in the example you sent, the
travel times were all set to 1. For example, should we use <edge
id="1to3" cost="6"/> or <edge id="1to3" traveltime=”1” cost="6"/> ?
2. For our project, we don’t see a need for the TAZ weight, as we
ultimately only want to route by cost = travel time + toll and don’t
want a probability distribution to choose departure/arrival edges in
a TAZ. Is there a way to still use od2trips but disregard the TAZ
weights (such as setting all weights to be 1)?
3. Follow-up to question 2: If we have both TAZ weights and a weight
file, which weight will take precedence, or are they both used? For
example, say a TAZ has two departure edges A and B. Edge A has
probability 0.8 and effort 100, while Edge B has probability 0.2 and
effort 50. Would the simulation take into account both the
probability and cost or just one of the attributes?
4. Is the TAZ weight relevant only at the initialization of the
simulation or will the weights/probabilities be used iteratively
throughout the entire simulation?
Thank you for your clarifications!
Best,
James
On Mon, Aug 14, 2023 at 4:32 AM Mirko Barthauer <[email protected]
<mailto:[email protected]> > wrote:
Hi James,
you can use a separate attribute as effort and specify it through the
--weight-attribute argument. See the examples
<https://sumo.dlr.de/extractTest.php?path=duarouter/function/measure>
from our tests. TAZ weights are a different topic – they are used to
select a departure/arrival edge inside a TAZ (calling od2trips only, not
duarouter/sumo) but not for the routing between origin and destination.
See the docs
<https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#traffic_assignment_zones_taz>
.
Best regards
Mirko
-----Original-Nachricht-----
Betreff: [sumo-user] Question about Routing by Effort using SUMO
Datum: 2023-08-12T03:08:44+0200
Von: "James Cheng via sumo-user" <[email protected]
<mailto:[email protected]> >
An: "[email protected] <mailto:[email protected]> " <
[email protected] <mailto:[email protected]> >
Dear SUMO staff members,
My main question is the following: how do we route by effort, where
“effort” is travel time + toll? According to the documentation
<https://sumo.dlr.de/docs/Simulation/Routing.html#routing_by_effort> , it
is recommended to use a weight file for routing by effort. However, my
team and I have a couple questions about the weight file:
1. How do we encode our definition of effort into the weight file
<https://sumo.dlr.de/docs/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures.html#edge-based_network_states>
? Is it through the “traveltime” parameter?
Moreover, in the above weight file format, is “traveltime” a keyword that
specifically encodes traveltime for the edge? Or can we put another
variable name to represent our effort, such as “effort = 3” instead of
“traveltime = 3”
1. In addition, looking through the SUMO directory, we were unable to
locate a formal definition of weights within the TAZ file and were
wondering if you could help define it. According to SUMO
documentation
<https://sumo.dlr.de/docs/Demand/Importing_O/D_Matrices.html#differentiated_probabilities>
, the weight in the TAZ file is a “probability to use”, but is that
an initial probability for a car to use that edge when we generate
the simulation or is it iterative, in the sense that any time a car
is confronted with that edge during the simulation, it has that
probability to use the edge?
1. In addition, what is the difference between the weights from
the weight file vs the weights from the TAZ file?
2. As a clarification, what would be the best way to route by effort?
Do we use the weight file to route by effort or can we use the
weights within the TAZ file to route by effort as well?
1. Any examples of routing by effort, besides only travel time,
using SUMO would be greatly appreciated!
Thank you so much for your help!
Best Regards,
James
--
James Cheng
B.A. Computer Science and B.S. Business Administration
University of California, Berkeley
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user