-
Notifications
You must be signed in to change notification settings - Fork 23
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
Include duration in the ramping constraints #773
Include duration in the ramping constraints #773
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #773 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 891 900 +9
=========================================
+ Hits 891 900 +9 ☔ View full report in Codecov by Sentry. |
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.
Summary of the comments:
- Instead of storing a whole vector and computing the minimum, start with a large value and update the minimum every time. It's faster than
push!
and better for memory. An alternative would be to store a whole vector with predetermined size, but I am not sure that would be faster, and it would definitely use more memory.
8fc7a0a
to
868aa1d
Compare
@abelsiqueira, thanks for the suggestion. The PR is updated and rebased to the latest version in main 😄 Please let me know if you have more comments. |
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.
Thanks for the PR, LGTM.
Pull request details
Describe the changes made in this pull request
Include the duration in the ramping constraints in the RHS of the equations to account for that the ramp parameters are given as rates.
List of related issues or pull requests
Closes #772
Collaboration confirmation
As a contributor I confirm