Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Rerouter does not work for a closed edge

Dear Jakob,

Tons of thanks for the clarification. I applied the changes:

<rerouter id="rerout1" edges="15to19 20to19 119to19 120to20 115to15 19to17">
   <interval begin="300" end="1500">
       <closingReroute id="19to17" disallow="all"/>  
   </interval>
</rerouter>


The number of using the name of link 19to17 (which is close for a period) at file "od_route_file.odtrips.rou.xml" is the same number as I run the code without closing. So it seems still doesn't work.
I am not sure if it works now, because I do not know where should I use "--ignore-route-errors". I do not know how to start the sumo with "--ignore-route-errors " While I use sumo-gui with opening "config_file.sumocfg".
 
I add "--ignore-route-errors" at the beginning of "config_file.sumocfg" (exactly after the line <configuration>), but still I got the error message: "Error: Vehicle '9852' is not allowed to depart on any lane of edge '19to17'.
Quitting (on error)".  and the program stops.

It is very kind of you to let me know what to do
Bests,
Reihaneh



On Mon, Mar 15, 2021 at 11:03 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
1) Rerouters can only be usd with sumo (not duarouter)
2) A closingReroute by itself is sufficient to cause rerouting so you do no need to combine this with a destProbReroute. However, your rerouter definition is incorrect. The 'edges' attribute indicates the location where vehicles should change their route. This must be an edge that permits a detour and thus should be an edge with multiple successor edges that lies ahead of the closed edge.

regards,
Jakob

Am So., 14. März 2021 um 09:31 Uhr schrieb Rkouhi <reihanehkoohi@xxxxxxxxx>:
I use Siouxfalls network for simulation, and in run-time, I want to close the
edge from node 19 to node 17 (which is named 19to17). But the vehicles do
not reroute after closing the edge (street). So, obviously sth is wrong. I
will explain everything step by step. Hope one can find my mistake.

1) I make have additional file like this: (with name routinfo_add.xml)

    <rerouter id="rerout1" edges="19to17" probability="1.0">
       <interval begin="300" end="1500">
           <closingReroute id="19to17"/>
       </interval>
    </rerouter>

Question 1: where should I use this additional file (I mean in which file
should I mention to this additional file)? I have
"duarcfg_file.trips2routes.duarcfg" file which makes the routes from the
trips, So I think this is where I should use it.
"duarcfg_file.trips2routes.duarcfg" is as follows:

<configuration>
<input>
 <net-file value="my_net.net.xml"/>
 <route-files value="od_file.odtrips.xml"/>
     <additional-files value="routinfo_add.xml"/>   --->>> this is the
additional file
</input>
<output>
 <output-file value="od_route_file.odtrips.rou.xml"/>
</output>
<report>
 <xml-validation value="never"/>
 <no-step-log value="true"/>
</report>
</configuration>

Or should I use the additional file in config_file.sumocfg file? Which is as
follows:

<configuration>
<input>
 <net-file value="my_net.net.xml"/>
 <route-files value="od_route_file.odtrips.rou.xml"/>
    <additional-files value="routinfo_add.xml"/>
</input>
<time>
 <begin value="0"/>
 <end value="7200"/>
</time>

</configuration>



Question 2:   As far as I know, I have to introduce the new route after the
line " <closingReroute id="19to17"/>" in additional file, so the vehicles
can use it as an alternative way. Sth like: <destProbReroute id="rerout2"/> 
This route2 consists of 3 edges (19to15, 15to10, 10to17)

Where should I introduce this route2?? Before making the network or after
it? 
Before making the network I have three files: my_edge.edg.xml,
my_node.nod.xml, my_type.type.xml.   
Right now, I use it in my_edge.edg.xml, but it does not work!


That would be great if one can help me
Best Regards,
Reihaneh




--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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