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

Set subtourModeChoice by subpopulation #3644

Open
jademackay opened this issue Dec 19, 2024 · 4 comments
Open

Set subtourModeChoice by subpopulation #3644

jademackay opened this issue Dec 19, 2024 · 4 comments

Comments

@jademackay
Copy link

jademackay commented Dec 19, 2024

Hello, I would like to specify the mode choice behaviour for subpopulations . I have tried this in the config

    <module name="subtourModeChoice">
      <param name="behavior" value="fromAllModesToSpecifiedModes"/>
      <param name="chainBasedModes" value="car"/>
      <param name="considerCarAvailability" value="true"/>
      <param name="modes" value="bus,bike,walk,car,car_passenger"/>
      <!-- <!-\- <param name="modes" value="car"/> -\-> -->
      <parameterset type="subpopulation">
	<param name="subpopulation" value="regular"/>
	<param name="behavior" value="fromAllModesToSpecifiedModes"/>
	<param name="modes" value="car"/>
      </parameterset>
    </module>

however the subpopulation parameterset is ignored. Note that the desired effect is achieved globally if <param name="modes" value="car"/> is uncommented.

Thoughts and suggestions welcomed!

@kainagel
Copy link
Member

I take it that you want different subtourModeChoice behavior for different subpopulations. I fear that that is not possible, almost certainly not from xml, and possibly not even from Java (in a simple way).

However, from looking at your snippet, it looks like you do not want mode choice at all for one of your subpopulations. This should be possible, by configuring the subtourModeChoice strategy only for the one subpopulation but not for the other. (I think that the config module is now called the "replanning" module.)

@jademackay
Copy link
Author

jademackay commented Dec 19, 2024

Hi @kainagel , thanks for your response.

it looks like you do not want mode choice at all for one of your subpopulations.

I think it looks that way because I over simplified the snippet. I actually want to restrict the mode choice options for the subpopulation like this:

<module name="subtourModeChoice">
      <param name="behavior" value="fromAllModesToSpecifiedModes"/>
      <param name="chainBasedModes" value="car"/>
      <param name="considerCarAvailability" value="true"/>
      <param name="modes" value="bus,bike,walk,car,car_passenger"/>
      <!-- <!-\- <param name="modes" value="car"/> -\-> -->
      <parameterset type="subpopulation">
	<param name="subpopulation" value="regular"/>
	<param name="behavior" value="fromAllModesToSpecifiedModes"/>
	<param name="modes" value="bus,car"/>
      </parameterset>
    </module>

Do you think this might be possible by "configuring the subtourModeChoice strategy only for the one subpopulation but not for the other." ... this is precisely what the example is trying to specify??

@jademackay
Copy link
Author

... ah I think you mean only to provide the subtourModeChoice strategy for one subpopulation

@jademackay
Copy link
Author

I am considering making the modes prohibitively expensive for the subpopulation but restricting the subtourmodechoice set would be more direct and efficient.

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