> For the complete documentation index, see [llms.txt](https://docs.metacity.cc/metacity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.metacity.cc/metacity/archives/amos/synthetic-population/matsim.md).

# MATSim population input and comparison

## Export of population to MATSim

### Population.xml or Plans.xml (demand)

Eventually each agent in the synthetic population pipeline has the following attributes:

* Personal information: 'person\_id', 'trip\_today', 'car\_avail', 'driving\_license'
* Activity information: 'purpose', 'start\_time', 'end\_time', 'geometry', 'activity\_order', 'location\_id'
* Travel mode information: 'traveling\_mode', 'trip\_order'

These attributes are exported to the following format:

```xml
<person id="1000367">
	<attributes>
		<attribute name="carAvail" class="java.lang.String">never</attribute>
		<attribute name="hasLicense" class="java.lang.String">no</attribute>
	</attributes>
	<plan selected="yes">
		<activity type="home" x="733199.000629" y="1042609.235624" end_time="07:43:04" ></activity>
		<leg mode="ride"></leg>
		<activity type="education" x="733440.449952" y="1042600.469421" start_time="07:49:47" end_time="12:58:20" ></activity>
		<leg mode="walk"></leg>
		<activity type="home" x="733199.000629" y="1042609.235624" start_time="13:09:56" end_time="15:00:18" ></activity>
		<leg mode="walk"></leg>
		<activity type="leisure" x="733715.3529" y="1043073.3935" start_time="15:05:04" end_time="17:58:23" ></activity>
		<leg mode="walk"></leg>
		<activity type="home" x="733199.000629" y="1042609.235624" start_time="18:03:35" >
		</activity>
	</plan>
</person>
```

## Comparison notebooks

To compare the results of different synthetic population pipelines and our input data, we use the following notebooks: [GitHub directory](https://github.com/MetacitySuite/Metacity-SynthPop/blob/master/synthesis/stats)
