matsim-org / matsim-code-examples

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

using subpopulations #47

Closed fredshone closed 5 years ago

fredshone commented 5 years ago

Hello, two related questions about using sub-populations: 1) Is it possible to reference multiple plans inputs at setup and declare sub-population in setup? I came across such an issue marked as resolved but can find no docs. Upon more careful reading this is effectively confirmed as not possible here 2) I see that the planning module can make use of sub-populations, can the scoring module do similarly?

Appologies if i am overlooking some obvious resource, I have read carefully around the subject but still wondering/hopeful. Happy to be pointed at some docs. Many thanks.

mrieser commented 5 years ago

Regarding 1: Sub-populations are possible, but they all have to be merged into one population/plans-file that is specified as input. It is not possible to specify multiple plans as input file, but all sub-populations must be merged into one file that is used as input.

Regarding 2: The scoring-configuration in module planCalcScore has support for multiple scoringParameters-parametersets, and each can refer to a specific sub-population. For an example, see https://github.com/matsim-org/matsim/blob/941b360d952a3d4671eb9d419a76f392ab60edd5/examples/scenarios/equil-extended/config-with-subpopulation.xml#L49.

fredshone commented 5 years ago

Many thanks