Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Network and New Mode #1171

Open
ArezHK opened this issue Oct 10, 2024 · 2 comments
Open

Issue with Network and New Mode #1171

ArezHK opened this issue Oct 10, 2024 · 2 comments

Comments

@ArezHK
Copy link

ArezHK commented Oct 10, 2024

Hi,

Recently, I tried to implement a new routed mode (e.g., Pedelec) in my simulation. I enabled this mode for most links but excluded it from certain specific links, such as highways. However, in some iterations, the simulation crashes, and I encounter an error message like the one below:

No route was found from node 2939973493 to node 7027271405.

My concern is: how can I resolve this issue by allowing agents to choose another mode that is compatible with the surrounding available links? For example, I would like agents to switch to "Car" mode when the surrounding links only permit "Car" instead of "Pedelec."

Additionally, I should mention that when I run the simulation with only the "Car" mode or a smaller number of agents in mixed modes, I do not encounter this error.

Edit: I found out some vehicles are teleported to nearest compatible allowed mode link (which in some cases does not seem realistic) but that does not happen to all similar cases and simulation crashes!

I appreciate your help in this matter.

@Janekdererste
Copy link
Member

You have to make sure that your network is connected for all modes in the simulation. This happens easily, when you introduce a new mode, which is not permitted on all links of the network. Even though the overall network might be connected, you might have produced two pedelec "islands". Make sure, to not produce such islands. Once you have your network, you can ensure that it is connected by running the following for each mode in your model. The example below does this for car and pedelec. After running the cleaner, make sure to inspect whether your network contains the expected infrastructure, or if the cleaner has removed more than you expected.

        new MultimodalNetworkCleaner(network).run(Set.of("car"));
        new MultimodalNetworkCleaner(network).run(Set.of("pedelec"));

@ArezHK
Copy link
Author

ArezHK commented Oct 17, 2024

Dear @Janekdererste thank you for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants