Skip to content

289 power profiles for producers#338

Merged
Jaimepatt merged 13 commits intomainfrom
289-power-profiles-for-producers
Feb 25, 2026
Merged

289 power profiles for producers#338
Jaimepatt merged 13 commits intomainfrom
289-power-profiles-for-producers

Conversation

@Jaimepatt
Copy link
Contributor

@Jaimepatt Jaimepatt commented Jan 27, 2026

Added functionality for producers to be able to use production profiles. These profiles are assigned through the asset constraint attribute in esdl (as opposed to assigning the profiles to a port, like in the consumers). When creating a producer asset, the code now always checks to see if there is a profile assigned to the constraint.
These profiles are now used to regulate the maximum power a producer can generate at a given timestep. If there is no profile, or the profile is not defined at the current timestep, the controller defaults to the traditional power value, assigned through the power attribute in esdl.
These profiles are not yet compatible with the output profiles of the optimizer. This requires further work.

@Jaimepatt Jaimepatt linked an issue Jan 27, 2026 that may be closed by this pull request
@Jaimepatt Jaimepatt marked this pull request as draft January 27, 2026 09:21
@Jaimepatt
Copy link
Contributor Author

@samvanderzwan ready for review.

@Jaimepatt Jaimepatt marked this pull request as ready for review January 27, 2026 10:36
Copy link
Contributor

@samvanderzwan samvanderzwan left a comment

Choose a reason for hiding this comment

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

Some minor comments.
It looks fine. I am missing tests for the getting of the constraints, can you add these?

@Jaimepatt
Copy link
Contributor Author

Hi @samvanderzwan I addressed all your changes. Ready for review again.

samvanderzwan
samvanderzwan previously approved these changes Feb 23, 2026
Copy link
Contributor

@samvanderzwan samvanderzwan left a comment

Choose a reason for hiding this comment

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

Looks good now

@Jaimepatt
Copy link
Contributor Author

Hi Sam, I needed to merge main in again since it was outdated. It resulted in a few small changes, and it seems like I need approval again for merging. Could you approve? It's was just some small syntax changes. @samvanderzwan

@Jaimepatt Jaimepatt merged commit c49b482 into main Feb 25, 2026
8 checks passed
@Jaimepatt Jaimepatt deleted the 289-power-profiles-for-producers branch March 13, 2026 09:21
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.

Power profiles for producers

2 participants