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

one penalty to rule them all #259

Merged
merged 8 commits into from
Jan 10, 2022

Conversation

bknueven
Copy link
Collaborator

Fixes # .

Summary/Motivation:

Changes proposed in this PR:

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

egret/model_library/unit_commitment/uc_utils.py Outdated Show resolved Hide resolved
## set these penalties in relation to each other, from higher quality service to lower
model.RegulationPenalty = Param(within=NonNegativeReals,
initialize=system.get('regulation_penalty_price', default_reg_pen),
rule=make_penalty_rule(model, 'regulation_penalty_price', 4.),
Copy link
Collaborator

Choose a reason for hiding this comment

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

General comment: these are sufficiently important constants that I think they warrant a big comment block in the corresponding files, defining the values and the hierarchy/presence.

@@ -194,28 +194,26 @@ def load_params(model, model_data, slack_type):
# penalty costs for constraint violation #
##########################################

Copy link
Collaborator

Choose a reason for hiding this comment

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

General comment: these are sufficiently important constants that I think they warrant a big comment block in the corresponding files, defining the values and the hierarchy/presence.

@bknueven
Copy link
Collaborator Author

bknueven commented Jan 3, 2022

@jeanpaulwatson I added comment blocks in both params.py and services.py, which hopefully make the intention clear.

@bknueven bknueven enabled auto-merge January 10, 2022 21:33
@bknueven bknueven merged commit 8208cff into grid-parity-exchange:main Jan 10, 2022
bknueven added a commit to grid-parity-exchange/Prescient that referenced this pull request Jan 12, 2022
* initial pass at 5bus example

* allowing default forecastables

* relaxing line limits

* adding runner script

* correcting issue with REAL_TIME period resolution

* Revert "relaxing line limits"

This reverts commit b7d9eb3.

* updating network and adding generator

* ensure reserve factor is honored even if not pre-existing

* first pass at enabling contingency monitoring

* considering more flexible thermal units

* adding contingency reporting

* updating price thresholds

* switching penalty logic to use grid-parity-exchange/Egret#259

* NFC: removing finished TODO

* fixing names

* adding python simulator script

* more reasonable mipgap

* removing violation, for now

* Fix spelling, update variable name

Co-authored-by: Darryl Melander <[email protected]>
@bknueven bknueven deleted the resetable_penalties branch January 20, 2022 17:06
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.

2 participants