Difference between revisions of "Tools/Trip"

From Sumo
Jump to navigation Jump to search
(Created page with '== randomTrips.py == "randomTrips.py" generates a set of random trips for a given network (option "-n"). == route2trips.py ==')
 
Line 1: Line 1:
 
== randomTrips.py ==
 
== randomTrips.py ==
"randomTrips.py" generates a set of random trips for a given network (option "-n").
+
"randomTrips.py" generates a set of random trips for a given network (option "-n"). It does so by choosing source and destination edge either uniformly at random or weighted by length (option "-l"), by number of lanes (option "-L") or both. The resulting trips are stored in an xml file (option "-o", default trips.trips.xml) suitable for the [[DUAROUTER]] which is called automatically if the "-r" option (with a filename for the resulting route file) is given. The trips are distributed evenly in an interval defined by begin (option "-b", default 0) and end time (option "-e", default 3600).
 +
 
 
== route2trips.py ==
 
== route2trips.py ==

Revision as of 12:01, 8 March 2010

randomTrips.py

"randomTrips.py" generates a set of random trips for a given network (option "-n"). It does so by choosing source and destination edge either uniformly at random or weighted by length (option "-l"), by number of lanes (option "-L") or both. The resulting trips are stored in an xml file (option "-o", default trips.trips.xml) suitable for the DUAROUTER which is called automatically if the "-r" option (with a filename for the resulting route file) is given. The trips are distributed evenly in an interval defined by begin (option "-b", default 0) and end time (option "-e", default 3600).

route2trips.py