Hello, - the output of --device.rerouting.output is aggregated with the frequency of --device.rerouting.adaptation-interval. The aggregation method may either be moving-window-average or exponential-average depending on the set options. - the bug where the simulation continues despite error has been fixed in the latest development version. Thank you for reporting this. - to ensure all edge attributes are present in the edgeData output, set the attribute excludeEmpty="defaults" in the <edgeData> definition - if using option --weight-attribute the default for unspecified values is 0 (by default. However, sumo always routes according to attribute 'traveltime', default being the minimum traveltime. The weight-attribute only comes into play when using the 'route effort' function of traci ( http://sumo.dlr.de/wiki/Simulation/Routing#Routing_by_effort) - the best way to generate fully customized weights is by writing a little program that generates the necessary xml inputs. This is simplified by using the python library sumo/tools/sumolib. Alternatively you can let SUMO generate a weight file, convert this to csv, edit with a spreadsheet software and convert back to xml. See http://sumo.dlr.de/wiki/Tools/Xml
regards, Jakob 2017-01-17 18:36 GMT+01:00 #LEE YURU SAMUEL# <[email protected]>: > Hi SUMO, > > I have a 2 questions with regards to SUMO Weight File (Edge-based). > > > 1. How do I get an appropriate SUMO Weight File (Edge-based, based on > Travel time), so as to use the --weight-files option in SUMO? > > > > Currently, what I saw on the web is that I could either: > > > > A) Create an additional file and loads it during the simulation: > > http://sumo.dlr.de/wiki/Simulation/Output/Lane-_or_ > Edge-based_Traffic_Measures > > > > This would allow me to have the flexibility to have either a single > aggregated weight (Without using 'begin' and 'end' parameters) or multiple > sets of weight that is valid for a period of x seconds (Which can easily > grow to several hundred MBs for simulation involving an entire city). > > > > B) Uses the option --device.rerouting.adaptation-interval 0 in > conjunction with --device.rerouting.output <FILE> as a SUMO parameter. > > > > However, the SUMO Weight File does not write any weight data in this case, > while when device.rerouting.adaptation-interval with a greater than 0 > value writes a weight file with "begin" and "end" value without a way to > aggregate it. > > > > Also, SUMO-GUI (0.28.0) continues to run simulation when > --device.rerouting.adaptation-interval -1 is specified despite error > message thrown. > > > > http://www.sumo.dlr.de/wiki/SUMO#Routing > > > > > > But the problem is that I still need to run at least once in SUMO without > specifying --weight-files. > > > > I would like to have the SUMO Weight File even before running the first > iteration of simulation, if it is possible. > > > > I cannot find a suitable output parameter for DUAROUTER for this purpose > as I convert my randomly generated SUMO Trips into SUMO Route file. > > > > http://www.sumo.dlr.de/wiki/DUAROUTER > > > > > > 1. By default, SUMO has default weight attributes such as traveltime, > density, speed etc. However, it applies only to edges that has sampled > vehicles which drives into the specified edge. > > > > Is there a way to ensure all edges to have a specified attribute via > --weight-attribute in SUMO, such as traveltime? > > > > Otherwise, how does SUMO handles the weight for edges that does not have > that specified attribute? > > > > http://www.sumo.dlr.de/wiki/SUMO#Input > > > > > > > > 1. How do I generate an independent customized weight (Not the same > weight file as the earlier SUMO Weight File mentioned in Qn 1 & Qn 2), such > as distance (Length of edge), minTravelTime (Distance / Max Speed) that > could be directly derived from SUMO Network File attributes? > > > > Or do I need to hand-code it despite over several tens of thousands edges > in a network that is meant to simulate entire city? > > > > 1. Lastly, I would also like to explore other options to create weight > whose attributes that are not directly available from SUMO Network File. > > > > Specifically, another independent edge weight file for exploring how > dynamic rerouting can produce optimized route but mainly based on toll > charges as the first criteria. > > > > > > > > Regards, > > Samuel Lee > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
