-
Notifications
You must be signed in to change notification settings - Fork 3
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
Support "non-integer" delay for Connections #56
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
@@ Coverage Diff @@
## main #56 +/- ##
==========================================
+ Coverage 50.25% 50.33% +0.08%
==========================================
Files 109 109
Lines 4318 4319 +1
==========================================
+ Hits 2170 2174 +4
+ Misses 2148 2145 -3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, feel free to merge afterwards.
So, decided to not (yet or at all?) support different snapshot weights in the presence of connection delays.
I'd very much argue for NOT supporting that at all. As hinted in #23 we want to finally support the Kotzur formulation (e.g., the MGA project of Perine & Max really needs that) which means we should get rid of different snapshot weights (they potentially complicate a lot of stuff and may result in unexpected shadow prices, so ... not a lot of reasonable applications anyways).
Regarding ait-energy/iesopt#71: Do you think we should make the choice of the loss snapshot depend on |
I'm not sure, but I think it's fine as is because:
|
This adds support for Connection delays that are not a multiple of snapshot weights.
Initially, I wanted to also support arbitrary, i.e. not necessarily equidistant snapshots. However, it turned out that this very easily results in infeasible models:
Just consider, for example, three snapshots with weights
[2, 1, 1]
, a connection from node A to node B with a delay of two hours, and a demand at node B of[1, 2, 1]
. There is no feasible solution of a connection injection at node A in the first snapshots that satisfies the demand at node B in the last two snapshots.So, decided to not (yet or at all?) support different snapshot weights in the presence of connection delays.
cc: @GerhardTotschnig