Skip to content

faq 92274764

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

why do I have to set a default duration for each activity type

by Gerald Richter on 2016-11-02 14:27:20


having specified plans for a population, but
no default duration for an activity type (e.g. "work") in module planCalcScore

will result in

java.lang.IllegalArgumentException: acttype "work" is not known in utility parameters (module name="planCalcScore" in the config file).

should the activitiy durations not be determined by the plans anyways?


Comments: 1


Re: why do I have to set a default duration for each activity type

by Kai Nagel on 2016-11-03 14:01:18

Dear Gerald,

Indeed, actual activity durations are simulation output, not input.  However, MATSim needs a "desired" or "typical" duration for scoring to know if an actually reached duration is "good" or not. 

So you minimally need something like

<parameterset type="activityParams" >
 	<param name="activityType" value="work" />
 	<param name="typicalDuration" value="08:00:00" />
 </parameterset>

It normally works ok if you just set them to some plausible values, e.g. home at 16hrs, work at 8hrs, shop at 2hrs, daycareDropoff at 0.25hrs, etc.

You could alternatively try

<parameterset type="activityParams" >
 	<param name="activityType" value="work" />
 	<param name="scoringThisActivityAtAll" value="false" />
 </parameterset>

Can't say how far that will carry.

Best

Kai

Clone this wiki locally