7.1. Setting Basic Controler Parameter

For now, we can already run a simulation – now it is time to customize them. You will better understand what is the role of the Controler in MATSim and how it can be configured. You will also know how functionalilty can be added to a MATSim run. In Lesson 3, you have already created your first, own Controler. Now it is time to learn more about the possibilities to configure a Controler. Now, you will get to know some basic controler parameters that you can set before running the controler.

Several parameters can be set which influence the input/output behavior of MATSim. The Controler offers the following methods to do so:

  • setCreateGraphs(true / false)
  • setDumpDataAtEnd(true / false)
  • setOverwriteFiles(true / false)
  • setWriteEventsInterval(0 .. n): "0" will disable events writing

You can call these methods on the Controler, directly before the controler.run() command:

  ...
  controler.setCreateGraphs(false);
  controler.setDumpDataAtEnd(false);
  controler.setOverwriteFiles(true);
  controler.setWriteEventsInterval(0);
  controler.run();
  ...