Config Editor
The config editor edits a scenario’s MATSim config.xml.
To open the config editor, open a scenario. Then either click on the config.xml in the file-listing, or click the button labelled “Edit Configuration” towards the top of the page.
Beginner and Full Link to this section
The switch at the top chooses how much of the config the editor shows:
- Beginner shows the settings most runs need: the number of iterations and threads, the simulation’s end time and sample size, the replanning strategies, scoring, teleported modes and public transport. Everything else in the file stays as it is.
- Full shows every module of the file.
The editor remembers your choice in this browser. Search always covers the whole config: picking a parameter that Beginner does not show switches to Full.
Finding a setting Link to this section
The list on the left shows the editor’s pages, grouped under headings such as Run, Mobility or Behaviour. A page can combine several config modules: in Full, General settings, for example, holds the controller, the global settings and the link statistics. In Full, modules the editor has no page for are listed under Other, each on a page of its own, so every module of the file can be reached.
Press ⌘K (Ctrl+K on Windows and Linux), or click Search, to find a parameter by its name, its label or words from its description. Picking a result opens its page and scrolls to it.
A parameter the file does not set shows MATSim’s default in grey. It is written to the file only once you enter a value, so opening a config and saving it changes nothing. An option that cannot take effect with the current settings, such as the transit router while public transport is off, stays editable and is marked unused, with the reason on hover.
Repeated parameter sets, such as the scoring parameters of each subpopulation or each DRT operator, are shown as tabs or as a table, one entry per subpopulation, operator, activity or mode. Modules or parameters the editor does not know, for example from a MATSim contrib, are shown as plain name/value pairs.
MATSim version Link to this section
The editor shows the parameters of the MATSim version set in the scenario’s settings, shown at the top of the editor. Changing the version in the scenario settings does not convert the config file.
Undo, redo and discard Link to this section
Undo (⌘Z, or Ctrl+Z) and redo (⇧⌘Z, or Ctrl+Shift+Z) step through your changes. Discard goes back to the last saved version, and can itself be undone.
Editing the raw XML Link to this section
Click XML at the top right to edit the config file as XML, for example to paste a whole module. The XML view shows the file as it is saved, so unsaved changes must be saved or discarded first. Saving from the XML view saves the file; Hide XML returns to the editor.
Saving changes Link to this section
To save changes you made to the config, click on Save changes in the top right. If someone else saved the file in the meantime, the editor says so and offers to reload it. After saving, you can click on the scenario name in the breadcrumbs at the top to return to the scenario.