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

Adding the option to solve concurrently for all regions in MACRO #808

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Mar 22, 2024

  1. Update MESSAGE-MACRO_run.gms

    Introducing a parameter (''solve_param'') to control the solving mechanism for MACRO. Setting ''solve_param'' to 1 (the default value) triggers sequential solving across regions, whereas setting it to 2 enables concurrent solving.
    daymontas1 authored Mar 22, 2024
    Configuration menu
    Copy the full SHA
    66789c3 View commit details
    Browse the repository at this point in the history
  2. Update macro_solve.gms

    An if statement has been introduced to allow users to select whether they want to solve sequentially or concurrently for all regions. This is determined by the ''solve_param'' parameter, defined in ''MESSAGE-MACRO_run''. The default solving is sequential (for ''solve_param''=1), so if the user doesn't update the solving mechanism, the macro is solved as it used to be. In terms of efficiency, the concurrent solving is slightly more efficient. 
    
    For the concurrent solving mechanism (for ''solve_param''=2), all nodes are activated from the beginning, thereby enabling simultaneous solving for all regions. This setting allows for factoring in interregional interactions into the optimization process. We want this concurrent optimization option, as we intend to incorporate interregional feedback mechanisms into MACRO, e.g., interregional investments. Given that in the current version of MACRO regions are independent, both solving mechanisms should produce the same results.
    daymontas1 authored Mar 22, 2024
    Configuration menu
    Copy the full SHA
    69fb07a View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Configuration menu
    Copy the full SHA
    c517d17 View commit details
    Browse the repository at this point in the history
  2. Update macro_data_load.gms

    Introducing a parameter (''solve_param'') to control the solving mechanism for MACRO. Setting ''solve_param'' to 1 (the default value) triggers sequential solving across regions, whereas setting it to 2 enables concurrent solving.
    daymontas1 authored May 3, 2024
    Configuration menu
    Copy the full SHA
    1beede5 View commit details
    Browse the repository at this point in the history
  3. Update MESSAGE-MACRO_run.gms

    Defining ''solve_param'' in ''MESSAGE-MACRO_run.gms'' creates a problem in testing. Therefore, ''solve_param'' is defined in ''macro_data_load.gms'' instead.
    daymontas1 authored May 3, 2024
    Configuration menu
    Copy the full SHA
    b7a9eea View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Configuration menu
    Copy the full SHA
    376e97f View commit details
    Browse the repository at this point in the history