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 Constraints for PEM electricity #7

Draft
wants to merge 1 commit into
base: re_surrogate
Choose a base branch
from

Conversation

Xinhe-Chen
Copy link

@Xinhe-Chen Xinhe-Chen commented Dec 1, 2022

Addresses issue:

Summary/Motivation:

Add a constraint for PEM electricity (consider the infeasibility caused by clustering)

Changes proposed in this PR:

  • Infeasibility caused by clustering is that the capacity of the dispatch representative profile is higher than the corresponding wind representative profile. (K-means will average the data points)

  • Need to check the original data. We are using Day-Ahead wind profile.

Legal Acknowledgement

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

  1. I agree my contributions are submitted under the license terms described in the LICENSE.md and COPYRIGHT.md file at the top level of this directory.
  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.

@@ -197,6 +197,10 @@ def conceptual_design_dynamic_RE(input_params, num_rep_days, verbose = False, pl
scenario_model.pem_max_p = Constraint(scenario_model.TIME,
rule=lambda b, t: blks[t].fs.pem.electricity[0] <= m.pem_system_capacity)

# This constraint requires the pem electricity = wind_generated - dispatched.
scenario_model.pem_usage = Constraint(scenario_model.TIME,
rule=lambda b, t: blks[t].fs.pem.electricity[0] == max(0, clustered_wind_resource[t]-clustered_capacity_factors[t]))
Copy link
Author

Choose a reason for hiding this comment

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

Add the P_max_wind to multiple the capacity factors.

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.

1 participant