Skip to content

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.


# 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