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

Introduce optimization equation #98

Merged
merged 14 commits into from
Oct 3, 2024
Merged

Conversation

glatterf42
Copy link
Member

@glatterf42 glatterf42 commented Jul 3, 2024

This PR introduces the final item of the message data model: Equation. It comes complete with everything the other items already have and only minor changes to Column that are required for this to work.

Since this is almost identical to #97, my questions are also very similar:

  • How many levels and marginals do Equations have? At the moment, I'm assuming that every Key (one row of entries in Equation.data) can have its own level and marginal, making those two just arbitrary columns in Equation.data (though maybe we could limit them to being floats or so).
  • Similarly, I'm wondering: do Equations need to get data added to them manually via an add() function? Or is there data sort of filled in automatically by the gdx code? I don't think I remember lots of equation.create(), equation.add_data() functions from the westeros tutorials.

Working on the transport tutorial, I noticed that I had completely forgotten about adding equations = db.relationship() in the Run DB-table. I have even run migrations for these other PRs, but no error came up. I'm wondering if we even need these relationship() declarations at all.

@glatterf42 glatterf42 added the enhancement New feature or request label Jul 3, 2024
@glatterf42 glatterf42 self-assigned this Jul 3, 2024
@glatterf42 glatterf42 force-pushed the include/optimization-equation branch 2 times, most recently from 7b510d8 to 9dcb186 Compare August 22, 2024 14:36
@glatterf42 glatterf42 force-pushed the include/optimization-equation branch from 8c25ad6 to 0ce1557 Compare October 3, 2024 08:59
@glatterf42 glatterf42 merged commit 45bb224 into main Oct 3, 2024
10 checks passed
@glatterf42 glatterf42 deleted the include/optimization-equation branch October 3, 2024 09:16
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

Successfully merging this pull request may close these issues.

2 participants