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 simple method for multi year investment on assets #793

Merged

Conversation

datejada
Copy link
Member

@datejada datejada commented Sep 11, 2024

Pull request details

Describe the changes made in this pull request

Changes to consider the simple method in the investment of assets.

Other related issues are:

They are done in separate issues to keep the changes as atomic as possible.

List of related issues or pull requests

Closes #786

Collaboration confirmation

As a contributor I confirm

  • I read and followed the instructions in README.dev.md
  • [NA] The documentation is up to date with the changes introduced in this Pull Request (or NA)
  • Tests are passing
  • Lint is passing

Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1868e94) to head (ecdc6f3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #793   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        18           
  Lines          904       915   +11     
=========================================
+ Hits           904       915   +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@datejada
Copy link
Member Author

@abelsiqueira depending on the answer from @gnawin here #462 (comment) the code might simplify a bit more depending if we don't allow missing values on the investment method.

But, for now, I would appreciate your feedback. Also, these changes might help to have a better overview for the ones in #784

@datejada datejada marked this pull request as ready for review September 11, 2024 12:47
@datejada datejada mentioned this pull request Sep 11, 2024
4 tasks
Copy link
Member

@abelsiqueira abelsiqueira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I noticed a place where we can join the sums. It shouldn't be a performance bottleneck, so you can choose whatever makes the code more readable.

src/create-model.jl Outdated Show resolved Hide resolved
Copy link
Member

@gnawin gnawin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @datejada thanks for the PR, I left a few comments. We can discuss in person today if you want.

src/create-model.jl Outdated Show resolved Hide resolved
src/create-model.jl Outdated Show resolved Hide resolved
src/create-model.jl Outdated Show resolved Hide resolved
src/create-model.jl Outdated Show resolved Hide resolved
@datejada
Copy link
Member Author

@gnawin, then let's review it together in person because the code reflects the equations that are in the pdf 🤷

@datejada
Copy link
Member Author

@gnawin, my takeaway is that we might need an extra parameter to cover the cases you describe more easily. Otherwise, I don't see a combination that allows existing capacity to be decommissioned without being an investable asset (with the current parameters' definitions).

@datejada datejada force-pushed the 786-add-simple-method-multi-year-investment branch from 542953e to 7f7f750 Compare September 13, 2024 06:16
@datejada datejada requested a review from gnawin September 13, 2024 06:41
Copy link
Member

@gnawin gnawin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @datejada thanks a lot for the PR!

As discussed, let's for now leave out the upper bounds for the decommission variables and do that in a separate PR.

The naming of things can be improved but let's do it later after my PR.

And regarding your comments on the initial capacity/units, let's continue the discussion but also do it separately.

src/constraints/investment.jl Outdated Show resolved Hide resolved
src/constraints/investment.jl Outdated Show resolved Hide resolved
src/constraints/investment.jl Outdated Show resolved Hide resolved
src/create-model.jl Outdated Show resolved Hide resolved
src/create-model.jl Outdated Show resolved Hide resolved
datejada and others added 5 commits September 13, 2024 10:41
@gnawin gnawin merged commit fc4ac1b into TulipaEnergy:main Sep 13, 2024
7 checks passed
@datejada datejada deleted the 786-add-simple-method-multi-year-investment branch September 13, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add the simplest method for multi-year investment
3 participants