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

Implement :all strategy for computing rp_periods #215

Merged

Conversation

abelsiqueira
Copy link
Member

Pull request details

Describe the changes made in this pull request

Add a strategy keyword that allows changing how the rp_periods are computed. The default strategy is the greedy strategy that was already implemented. The new strategy is :all, which uses all breakpoints.

List of related issues or pull requests

Closes #188

Collaboration confirmation

As a contributor I confirm

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

@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Files Coverage Δ
src/time-resolution.jl 100.00% <100.00%> (ø)

📢 Thoughts on this report? Let us know!.

@abelsiqueira abelsiqueira force-pushed the 188-time-resolution-min-breakpoints branch from 2166be9 to 327dc8d Compare October 31, 2023 12:13
Copy link
Member

@datejada datejada left a comment

Choose a reason for hiding this comment

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

Thank you for the changes. Having different strategies will help to make it more flexible to create the constraints in the model.

@datejada datejada merged commit bf9a520 into TulipaEnergy:main Oct 31, 2023
6 checks passed
@abelsiqueira abelsiqueira deleted the 188-time-resolution-min-breakpoints branch December 6, 2023 07:42
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 a function to create the constraint time resolution using all breakpoints
2 participants