Skip to content

faq 111186401

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

multimodal simulation fails

by Pradeep Burla on 2017-08-09 12:07:38


Hi all,

I tried to run a simulation with bicycle and car as my main modes. It works fine till 10th iteration but before the 11th iteration (innovative mode change), the agent is assigned to a link which does not support the new mode. AS an example I wrote down 3 cases.

case 1:

    Network: 1-2-3-4-5 (all the links support car and bicycle)

    plan : activity 1 (link 1) - Leg 1(bicyle) -Activity 2 (link4)

This works perfectly, as the agent finds the route.

case 2:

    Network: 1-2-3-4-5 (all the links support only car, no bicycle allowed)

    plan : activity 1 (link 1) - Leg 1(bicycle) -Activity 2 (link4)

Throws an error saying  "fromLink 1" missing.

The agent is supposed to use bicycle, but his entry point to the network supports only car link. And to add to that there is no alternative route.

case 3:

    Network: Network image attached

    plan : activity 1 (link 1) - Leg 1(bicycle) -Activity 2 (link4)

Throws an error saying  "fromLink 4" missing.

This is tricky because the network router looks for the shortest route in the network but does not consider the sub network of bicycles.

Is there a way to address the case 2 and case 3 problems? Something like access walk? There was a similar issue JIRA (matsim.atlassian.net)39b78b4e-5e5e-31ca-ad6c-6e03846a9bf5MATSIM-443 , but the status of the issue is still "open". 


Thanks.

Regards,

Pradeep





Comments: 1


Re: multimodal simulation fails

by Kai Nagel on 2017-08-29 11:27:44

If you run from programmable code, you could try something like 

		config.plansCalcRoute().setInsertingAccessEgressWalk(true);

and see if that fixes it.  This option is not yet available from config.xml because it has not been used often enough to be somewhat confident that it works in most situations.

I cannot say if this would fix your problem but in theory it should.  

Could you please in any case report back?

Clone this wiki locally