Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Rote cost

1. duarouter route cost is the sum of free flow travel times over the route edges (unless you load a weight file to overrule the free-flow times).
2. vehroute-output only writes a cost value if it was included in the input. However, you can simply obtain the cost as (arrival - depart)
3. use tripinfo-output to obtain all that data

regards,
Jakob

Am Mi., 6. Okt. 2021 um 20:01 Uhr schrieb Amanda Romano <amandaromano@xxxxxxxxxxx>:
Dear all,

I'm simulating a congestion. When generating routes with duarouter, the route cost is calculated in the .rou.alt.xml file. How is this route cost calculated? Would it be the calculation of generalized costs? For exemple:

<vehicle id="211" depart="28.10" departLane="free" departSpeed="max" fromTaz="34301" toTaz="34301">
        <routeDistribution last="0">
            <route cost="32.16" probability="1.00000000" edges="134235751#0 47097675 47097677#1 47097677#2 47097677#3 47097677#4"/>
        </routeDistribution>

In the vehicle routes output file (vehroute-output), I used the additional option vehroute-output.cost, all costs are -1. Shouldn't it be the same cost as the duarouter? For exemple:

<vehicle id="211" depart="29.00" departLane="0" departSpeed="7.24" fromTaz="34301" toTaz="34301" arrival="64.00" routeLength="474.15">
        <route cost="-1.00" savings="0.00" edges="134235751#0 47097675 47097677#1 47097677#2 47097677#3 47097677#4"/>
</vehicle>

In another scenario, I add taxis to this simulation, would it be possible to calculate the route and the route costs or the costs of each person using the sumo (considering waiting time, time inside the taxi, walking time and taxi cost)? The dispatch algorithm is routeExtension. The trips were defined as follows:

<trip id="taxi_1" type="taxi" depart="0.00" from="202567751" to="202567751">
 <stop lane="202567751_0" triggered="person"/>
 </trip>
...
<person id= "1" depart= "1.15">
 <ride from="134235664#11" to= "202567668#1" lines="taxi"/>  
 <walk from="624802548#1" to="918951156"/>  
 </person>
...

Thanks
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top