> On Mar 30, 2016, at 11:05 AM, Joe B. <[email protected]> wrote:
> 
> Hey, all -
> I'm pretty new to SUMO, so please be patient.  I have a question about
> whether it's possible to have multiple randomized flows (using
> vTypeDistributions) and user-defined trips both included in a scenario.
> Typically, I get the following output when I attempt this:
> <OUTPUT>
> Error: The vehicle type 'bus' occurs at least twice.
> Error: The vehicle type 'car' occurs at least twice.
> Error: The vehicle type 'truck' occurs at least twice.
> Error: The vehicle type 'van' occurs at least twice.
> Error: Vehicle type distribution '-46673644-20130797#20_dist' is empty.
> Error: The vehicle type '-46673644-20130797#20_dist' for flow
> '-46673644-20130797#20' is not known.
> Quitting (on error).
> </OUTPUT>

I have not used trips (yet), but I do use multiple flow files and a separate 
catalog for vehicle type definitions. I think I would take the hints in the 
first error messages and prune out the repeated definitions of the vehicle 
types; leave them in the first file you provide to duarouter, or separate them 
out into another “additional file” per SUMO definition of that file type. The 
latter choice should give you more flexibility in the future to vary vehicle 
performance parameters.

I’m not sure about the last error messages about the vehicle type distributions 
but perhaps those will go away when you get your vehicle types defined once and 
accepted as input to duarouter.

hth

- Tom

> and get no routes file at the end.  Flows alone seems to work OK, as well
> as trips (both random and user-defined together); the issue occurs when I
> combine them. My input files look like this:
> 
> *additional.xml:*<additional>
> <vType id="car" color="white" vClass="passenger" maxSpeed="37.998474"
> accel="3.6576443" decel="5.7912703" minGap="1.5240185" length="4.294684"
> width="1.8532064" carFollowModel="IDM" tau="1.0" />
> <vType id="van" color="green" vClass="delivery" maxSpeed="33.528065"
> accel="3.9624481" decel="5.7912703" minGap="1.5240185" length="4.11485"
> width="2.1976347" carFollowModel="IDM" tau="1.0" />
> <vType id="vehOfInterestB" color="248,116,49" vClass="delivery"
> maxSpeed="29.057655" accel="3.6576443" decel="5.4864664"
> minGap="0.91441107" length="4.191051" width="2.2098267"
> carFollowModel="IDM" tau="1.0" />
> <vType id="bus" color="blue" vClass="bus" maxSpeed="22.352045"
> accel="2.4384296" decel="4.5720553" minGap="1.5240185" length="7.2909045"
> width="2.4384296" carFollowModel="IDM" tau="1.0" />
> <vType id="truck" color="cyan" vClass="truck" maxSpeed="29.057655"
> accel="2.4384296" decel="3.6576443" minGap="1.5240185" length="9.753718"
> width="2.2860277" carFollowModel="IDM" tau="1.0" />
>    <vTypeDistribution id="-46673644-20130797#20_dist">
>        <vType id="bus" probability="0.08"/>
>        <vType id="car" probability="0.56"/>
>        <vType id="truck" probability="0.08"/>
>        <vType id="van" probability="0.15"/>
>    </vTypeDistribution>
> </additional>
> 
> *flows.xml:*<flowdefs>
> <flow id="-46673644-20130797#20" from="-46673644" to="20130797#20"
> begin="1" end="60" number="30" type="-46673644-20130797#20_dist" />
> </flowdefs>
> 
> *trips.xml (just the top):*<trips>
>    <trip id="car_0_0" from="-20128194#2" to="-139603643#8" via="-20129694
> 20115567#0 -20136116#0 20137299#0 -301210617" type="car" depart="0.0"/>
>    <trip id="van_0_0" from="-20130797#12" to="--4030#2" via="286154745#32
> -20115318#10 301210624 20124709#3 -189007540" type="van" depart="0.0"/>
>    <trip id="_vehOfInterestB_0" from="-286154745#31" to="-286154745#31"
> via="-20116699#0 -20116699#3 -286154745#13 -139603643#0 "
> type="vehOfInterestB" depart="0.0">
>        <stop lane="-20116699#0_0" endPos="1.0" duration="60.0"/>
>        <stop lane="-20116699#3_0" endPos="1.0" duration="60.0"/>
>        <stop lane="-286154745#13_0" endPos="1.0" duration="60.0"/>
>        <stop lane="-139603643#0_0" endPos="1.0" duration="60.0"/>
>    </trip>
>    <trip id="car_0_1" from="-286154745#2" to="20134769#0" via="-20114826#2
> 20125671#0 -20131245#35 -4034#2 20131245#37" type="car" depart="1.82"/>
>    <trip id="van_0_1" from="103926230#3" to="-20132328#0" via="184204792
> -20116675#9 --4451#1 -3996#2 -184204313#4" type="van" depart="2.22"/>
>    <trip id="car_0_2" from="-20138891#4" to="-286154745#26"
> via="20124414#1 -20134769#0 20131245#22 -286154745#12 20132328#1"
> type="car" depart="3.64"/>
>    <trip id="van_0_2" from="-46673708#6" to="139603639#17"
> via="-358376221#2 -20116668#1 -20131485#1 20116961#0 20130797#3" type="van"
> depart="4.44"/>
>    <trip id="car_0_3" from="184204313#6" to="-4030#2" via="20131245#8
> 184204314#1 184204314#1 338965606 -20132328#0" type="car" depart="5.45"/>
>    <trip id="van_0_3" from="-20126239#1" to="103926229#2" via="20131245#9
> 103926230#2 20130797#15 -20130797#10 20131245#28" type="van" depart="6.67"/>
> ........
> 
> Any advice would be a huge help!
> 
> Thanks,
> Joe
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to