-
Notifications
You must be signed in to change notification settings - Fork 180
faq 92274764
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?
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
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq