sumo icon indicating copy to clipboard operation
sumo copied to clipboard

Differences in output depending on trip or route input

Open a-schoenhaerl opened this issue 6 months ago • 2 comments

When I run a simulation using a trip file as input (Input ex 1), it generates a route file as output (Output ex 1). I then sort that route file (Output ex 1) by departure time and use it as the input (Input ex 2) for a second run of the exact same simulation (same config except for the input under route-files), which produces a second route file as output (Output ex 2).

Even though the departure times in the original trip file and in Output 1 are identical, some departure times in Output 2 differ when compared to those in Output 1. Additionally, other outputs like speed and density also show differences between the two simulation runs.

The files are attached below: sumo_question.zip Sumo Version: Version v1_23_1+0494-295e2b2f54b

Are these differences to be expected? Is there a way to minimise these differences? Any help is greatly appreciated.

a-schoenhaerl avatar Jun 12 '25 13:06 a-schoenhaerl

  1. sorting by departure time is not enough: you need to sort by intended departure time (--vehroute-output.intended-depart)
  2. sorting by intended departure time is not enough: you need ensure that vehicles departing in the same step have the same ordering in both input files

Option --vehroute-output.sorted doesn't take this ordering into account either but it would be a sensible enhancement. In the meantime, you could take care of this in your own sorting code.

namdre avatar Jun 12 '25 14:06 namdre

Thanks so much for the quick and clear explanation!

a-schoenhaerl avatar Jun 13 '25 16:06 a-schoenhaerl

see also #16870

namdre avatar Jul 14 '25 05:07 namdre