Skip to content

Conversation

@Bill-Becker
Copy link
Collaborator

This pull request adds support for specifying a custom time-series of production factors for CHP systems, allowing users to override the default calculation based on unavailability. The main changes include updates to the CHP struct, the production factor calculation logic, and the addition of a comprehensive test to ensure correct behavior.

Custom Production Factor Series Support:

  • Added an optional production_factor_series field to the CHP struct and its constructor, allowing users to supply a custom vector of production factors. [1] [2]

Production Factor Calculation Logic:

  • Updated the get_production_factor function in production_factor.jl to return the user-provided production_factor_series if it exists, instead of generating the production factor from unavailability data.

Testing:

  • Added a new test set in test/test_chp_prodfactor.jl to verify that a custom production_factor_series is correctly assigned, used in optimization, and produces expected results in the output.

… production for each timestep

Could represent run-of-river hydro or OA temp-dependent turbine power
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