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

Improve net-metering big-m constraint #383

Merged
merged 9 commits into from May 6, 2024
Merged

Conversation

zolanaj
Copy link
Collaborator

@zolanaj zolanaj commented May 2, 2024

Fixed

Improved the practical upper bound on interconnect limit for net metering constraints. Prevents erroneous results in which net metering limit is exceeded and net metering benefit is still gained.

Added

New tests for net metering added.

one comment: there's a max benefit of 10 times the annual energy charges which is reached if the wholesale rate provided is larger than the energy price. One question is: should we throw a warning if the results hit this max benefit?

@zolanaj zolanaj changed the base branch from master to develop May 2, 2024 14:09
@zolanaj zolanaj linked an issue May 2, 2024 that may be closed by this pull request
@zolanaj zolanaj requested a review from adfarth May 2, 2024 19:43
Copy link
Collaborator

@adfarth adfarth left a comment

Choose a reason for hiding this comment

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

@zolanaj could you add an update to the Changelog please?

@zolanaj
Copy link
Collaborator Author

zolanaj commented May 2, 2024

@zolanaj could you add an update to the Changelog please?

Done in 5f9af28

@zolanaj
Copy link
Collaborator Author

zolanaj commented May 3, 2024

post-discussion changes:

  • Added a warning if wholesale benefit is at its max (I'll add an issue to see if we want to go "old school" and make the max benefit much bigger)
  • Add multiplier of p.hours_per_time_step to the monthly load big-M candidate

@zolanaj
Copy link
Collaborator Author

zolanaj commented May 3, 2024

Mac tests seem to be stalling out but things are working fine in the Windows test suite!

Copy link
Collaborator

@adfarth adfarth left a comment

Choose a reason for hiding this comment

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

Thanks so much for implementing this! Strange that the Mac tests aren't passing quickly after your test improvements, but it seems like that issue is not directly related to this PR so I am approving

@zolanaj zolanaj merged commit b840c2a into develop May 6, 2024
3 checks passed
@zolanaj zolanaj mentioned this pull request May 6, 2024
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.

better big-M for net metering
2 participants