Skip to content

faq 126976038

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

I get stuck in creating the plans/population file

by F.USA on 2017-12-01 20:53:55


Hi All

I get stuck in creating demand generation file. I saw some examples online, the problem there is no csv or data text files for those examples to learn. I did Java basic training course, and still, I feel lost.

I was wondering if there is an example of how to create the plans xml with data. Even small example will help.

I appreciate your help

Thanks


Comments: 3


Re: I get stuck in creating the plans/population file

by Johan W. Joubert on 2017-12-02 05:15:03

The problem is that each set of data is different, hence the examples show you the portion that is done on the MATSim side. Your data can be in many different formats. Population generation is, at least for me, by far the trickier part, or at least the part in MATSim that takes up much of my time.

So, the short answer is, read in your data (those attributes that you want to include in the population, and for each record script the Person and Plan generation.

Maybe this explanation is of some use?


Re: I get stuck in creating the plans/population file

by Kai Nagel on 2017-12-02 12:06:18

Some more sources:

  1. Quite in general check https://github.com/matsim-org/matsim-code-examples , here in particular code under https://github.com/matsim-org/matsim-code-examples/tree/master/src/main/java/tutorial/population .

  2. The "TU Berlin tutorials" http://matsim.org/docs/tutorials/general normally contain material related to this.

  3. We are currently working on https://github.com/agentsoz/matsim-melbourne , but it is still rather disorganized.


Re: I get stuck in creating the plans/population file

by F.USA on 2017-12-06 18:58:37

Thanks Kai,

Clone this wiki locally