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

Add a convenience function for ixmp.Scenario.solve() functionality #120

Open
glatterf42 opened this issue Oct 3, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@glatterf42
Copy link
Member

Solving a Run with GAMS requires three steps, essentially:

  1. Write the data of Run to a format that GAMS can use
  2. Invoke the GAMS solve mechanism
  3. Read the solution data back into Run

We currently keep this functionality separate, i.e. we have one function for each of these steps. This allows for easier testing and understanding what these individual steps do.
However, during today's MESSAGE meeting, we received the request to provide a convenience function combining all of these steps into one function - just like ixmp.Scenario.solve() does.
Otherwise, people are afraid the workflow of quickly solving a Run becomes too complicated.

Another way out would likely be translating more GAMS code in message_ix to linopy (or similar), thus eliminating the requirement to read and write GAMS files, but this is unlikely to happen soon enough.

@glatterf42 glatterf42 added the enhancement New feature or request label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant