matsim-org / matsim-code-examples

A repository containing code examples around MATSim
GNU General Public License v3.0
82 stars 180 forks source link

Simulation results analysis #191

Open XXXinnnn opened 5 years ago

XXXinnnn commented 5 years ago

According to the answer in this post, the results in output_plans.xml is just for information only. Is this still valid in MATSIM-0.11.0 realse?

Another question is that how about the .xml files in ITERS, are those files can be used for analysis purpose? For example, drt_trips_drt.xml and vehicleDistanceStats_drt.xml when the simulation runs in drt mode.

It would be appreciated that if you could list the output files which can be used for simulation results analysis purpose. Thank you

michalmac commented 5 years ago

Basically all files in the output folder can be used for analysis. The output files from each individual iteration are stored in ITERS/it.xxx.

drt_trips_drt.xml and vehicleDistanceStats_drt.xml

These are CSV files, not XML. But yes, you can analyse them (along with other files) to assess the performance of the simulated DRT service.

XXXinnnn commented 5 years ago

Thanks so much for your comment.

Another question is that I can't find any travel information like travel time or travel distance of vehicles in output_vehicles.xml. If I would like to get such simulation results when I run simulations with "car" legmode, which files should I look for, output_events.xml?

jfbischoff commented 5 years ago

The vehicles file doesn't contain what you are looking for.

You can calculate travel distances and times for all modes from the events file.

kainagel commented 5 years ago

A somewhat more general comment: The primary output of MATSim are the events files. All other output should be computable from the events (plus "boundary condition" files such as network). In general, we strongly recommend to write your own analysis, since provided analysis often makes assumptions that may not be consistent with those that you may need for yourself. Nevertheless, some analysis is provided by default by MATSim; similarly, some contribs provide such analysis.