Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Build sub-scenario

Hi,

 

Ok, thanks! Actually almost all routes are fully specified like this:

<flow id="5" type="vehType1" begin="0.001" end="10200" vehsPerHour="118.6931" from="163[0]" to="448" via="440 313 33.52 34 35 39 326 327 330 179 334 335[1].37.14 " departSpeed="max" departLane="free" />

 

But I guess the routes that lacks one or two edges in the via list is causing the problem.

 

Assuming I have an almost fully specified route file. Can I use either one of duarouter or sumo with option --vehroute-output?

 

Regards /Daniel

 

From: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] On Behalf Of Jakob Erdmann
Sent: den 7 maj 2019 12:09
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Build sub-scenario

 

Hello,

cutRoutes assumes that the route file contains fully specified routes (with lists of edges) whereas your file only contains origin and destination.

To fix this, either process the route file with duarouter (giving you fastest-routes for an empty network)  or run it through sumo with option --vehroute-output (which gives you are more plausible route assignment based on traffic states).

 

regards,

Jakob

 

Am Di., 7. Mai 2019 um 11:57 Uhr schrieb Thuresson, Daniel <daniel.thuresson.2@xxxxxxxxxxxxx>:

Hi,

 

I'm trying to build a sub model of a larger scenario but have run into trouble.

 

I have edited the original net-file with netedit and when I try to reduce the route file to fit the new subnet like this:

 

python "C:/Program Files (x86)/Eclipse/Sumo/tools/route/cutRoutes.py" -v C:/temp/SumoInputFiles/sumoNetworkEast_TL.net.xml C:/temp/AdditionalsRouteFiles/orgRoutes.rou.xml --routes-output C:/temp/test.rou.xml --orig-net C:/temp/SumoInputFiles/sumoNetwork_TL.net.xml

 

The output from this command is:

 

Valid area contains 331 edges

Parsing routes from C:/temp/AdditionalsRouteFiles/orgRoutes.rou.xml

Parsed 0 vehicles and kept 0 routes

Number of disconnected routes: 0. Most frequent missing edges:

Wrote 0 routes

 

Process finished with exit code 0

 

The route file (which I suspect might give me problems...) looks like this:

 

<trips>

<vTypeDistribution id="vehType1" >

<vType carFollowModel="SmartSK" laneChangeModel="LC2013" id="veh101" lcStrategic="3... />

<vType carFollowModel="SmartSK" laneChangeModel="LC2013" id="veh102" lcStrategic="4.3208" lcCooperative=.../>

...

<flow id="5" type="vehType1" begin="0.001" end="10200" vehsPerHour="118.6931" from="163[0]" to="448" via="440 313 33.52 34 35 39 326 327 330 179 334 335[1].37.14 " departSpeed="max" departLane="free" />

<flow id="7" type="vehType1" begin="0.001" end="10200" vehsPerHour="104.6109" from="163[0]" to="184.339" via="440 313 33.52 34 35 39 326 327 330 331[1] 336 337 40 41 342 343 346 347 " departSpeed="max" departLane="free" />

...

 

What am I doing wrong? Is the route file in a format not accepted by "cutRoutes.py"? is there an easy way of fixing this?

 

Regards /Daniel

 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user


Back to the top