Thank you so much Jakob. I will try it tomorrow.
Have a good weekend.
BestsMohsen
    On Friday, October 5, 2018, 7:26:31 PM GMT+13, Jakob Erdmann 
<[email protected]> wrote:  
 
 Hello,unfortunately, the option vehroute-output.dua does not have the effect 
of writing costs for all routes as claimed earlier. I've opened up a new ticket 
for this: https://github.com/eclipse/sumo/issues/4669
As an alterantive, you can use the option--device.rerouting.output FILEto write 
the assumed weights for every updated interval to a file. This should allow 
reconstructing the cost for every route at the time it was chosen as well as 
the cost of the original route which was rejected (though it might be tedious).
regards,Jakob

Am Do., 4. Okt. 2018 um 21:17 Uhr schrieb mohsen hs <[email protected]>:

Dear SUMO experts, 
I am would like to record the cost of the route when a vehicle reroute, so I am 
using vehroute-output.dua in the additional.xml as shown below. When I use this 
option, only one line of reouting (with cost) is written in the vehroute file, 
but when I remove this line, I can see multiple reroute (without cost) lines in 
the output. An example is provided below. I appreciate that if you could advise.
Many thanksMohsen
 <summary-output value="summary-output_test_v5.xml"/>  <vehroutes 
value="vehroutes_test_v5.xml"/>        <tripinfo value="tripinfo_test_v5.xml"/> 
 <vehroute-output.dua value="true"/>      </files>    <process>        <begin 
value="0"/>        <route-steps value="200"/>        <routing-algorithm 
value="astar"/>        <device.rerouting.probability value="1"/>        
<device.rerouting.period value="120"/>        
<device.rerouting.adaptation-interval value="10"/> 
<device.rerouting.adaptation-steps value="10"/>        
<device.rerouting.with-taz value="False"/>        <device.rerouting.explicit 
value=""/>        <vehroute-output.last-route value="False"/>        
<vehroute-output.exit-times value="False"/>        <vehroute-output.sorted 
value="False"/>    </process>
Sample output:    <vehicle id="2" type="pv2" depart="1.00" arrival="1423.00">   
     <route cost="894.66" edges="334265144 ......... gneE14 gneE9"/>    
</vehicle>



With this conf:    <summary-output value="summary-output_test_v5.xml"/>  
<vehroutes value="vehroutes_test_v5.xml"/>        <tripinfo 
value="tripinfo_test_v5.xml"/> <!-- <vehroute-output.dua value="true"/>  -->    
</files>    <process>        <begin value="0"/>        <route-steps 
value="200"/>        <routing-algorithm value="astar"/>        
<device.rerouting.probability value="1"/>        <device.rerouting.period 
value="120"/>        <device.rerouting.adaptation-interval value="10"/> 
<device.rerouting.adaptation-steps value="10"/>        
<device.rerouting.with-taz value="False"/>        <device.rerouting.explicit 
value=""/>        <vehroute-output.last-route value="False"/>        
<vehroute-output.exit-times value="False"/>        <vehroute-output.sorted 
value="False"/>    </process>

Sample output:       <vehicle id="2" type="pv2" depart="1.00" 
arrival="1423.00">        <routeDistribution>            <route 
replacedOnEdge="" reason="device.rerouting" replacedAtTime="1.00" 
probability="0" edges="334265144 .... gneE9"/>            <route 
replacedOnEdge="5184201" reason="device.rerouting" replacedAtTime="241.00" 
probability="0" edges="334265144 .....gneE9"/>            <route 
replacedOnEdge="25181630#3" reason="device.rerouting" replacedAtTime="601.00" 
probability="0" edges="334265144 .....gneE9"/>            <route 
edges="334265144 -107768693#5 ......"/>        </routeDistribution>    
</vehicle> 


_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

  
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to