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

Fix brown field investment for links #34

Draft
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

jnnr
Copy link
Member

@jnnr jnnr commented Jan 27, 2022

When expanding links, any existing from_to_capacity and to_from_capacity > 0 will be ignored. This happens because the method Facade._investment() passes the value of capacity to the atrribute existing of the investment object. To be correct, it should pass from_to_capacity or the other, respectively.

We could add another case to the if else clause. Or better, think of something more clean. Currently, this PR only includes the constraint test, not the fix.

TODO

  • As of now, capacity_costs apply in both directions separetely. Does this make sense? If yes, document it.

@jnnr jnnr changed the base branch from master to dev January 27, 2022 16:30
@jnnr jnnr changed the title No brown field investment for links possible Fix brown field investment for links Jan 27, 2022
@jnnr jnnr marked this pull request as draft March 4, 2022 18:12
@jnnr jnnr modified the milestones: v0.0.3, v0.0.4 Aug 29, 2022
@jnnr jnnr self-assigned this Jan 9, 2023
@jnnr jnnr added the bug Something isn't working label Feb 6, 2023
@jnnr
Copy link
Member Author

jnnr commented Feb 13, 2023

Can I hand this to you, @MaGering?

@jnnr
Copy link
Member Author

jnnr commented Feb 15, 2023

Keep in mind this #96

@jnnr jnnr removed their assignment Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants