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

Reply via email to