-
Notifications
You must be signed in to change notification settings - Fork 180
faq 92700814
by Camila Feliciano on 2016-11-07 12:56:38
Hello MATSim friends,
I'm doing public transport simulation and I have a problem: create plans! I can not do the part of "pt interaction". Here is an example of how my file is generated. I'm using an adaptation of "CreatePopulationandDemand".
<person id="1010001029" age="10" employed="no">
<plan selected="yes">
<act type="h7" link="2020" facility="12577565" x="718568.494671" y="7085554.40306" end_time="07:33:24" />
<leg mode="transit_walk" trav_time="00:56:03">
<route type="generic" start_link="2020" end_link="12025" trav_time="00:56:03" distance="4668.04220244767">
</route>
</leg>
<act type="s8" link="12025" facility="10928065" x="715697.493894" y="7087711.069781" end_time="18:55:14" />
<leg mode="transit_walk" trav_time="00:56:03">
<route type="generic" start_link="12025" end_link="2020" trav_time="00:56:03" distance="4668.04220244767">
</route>
</leg>
<act type="h7" link="2020" facility="12577565" x="718568.494671" y="7085554.40306" />
</plan>
</person>
Can anybody help me???
by Marcel Rieser on 2016-11-14 14:55:38
Hi,
You should not need to create the "pt interaction" activities by hand. Just create a plan that contains a pt
leg, and let MATSim calculate a route, something like:
<plan>
<act type="home" end_time="07:33:24" />
<leg mode="pt" />
<act type="work" end_time="17:00:00" />
</plan>
If you create such a plan, MATSim should calculate the route for the pt
-leg before the first iteration starts.
You are viewing an archive of the previous MATSim Q&A site. The real site is now at https://matsim.org/faq