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

feature: flex context prices as quantities #1028

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Mar 31, 2024

Description

QuantityOrSensor("/MWh") can now be used for energy price fields. Any unit is accepted as a numerator: this includes currencies, such as EUR/MWh, USD/MWh and AUD/MWh, but also kg/MWh in case of scheduling against emissions, or even just %, which would get converted to units of MWh/MWh.

How to test

I expanded a test for the schema and added an extra test case.

Related Items

Closes #1027.

Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x added Scheduling Units Deals with unit conversion labels Mar 31, 2024
@Flix6x Flix6x self-assigned this Mar 31, 2024
@Flix6x Flix6x modified the milestones: 0.20.1, 0.21.0 Mar 31, 2024
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x requested a review from victorgarcia98 May 7, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support passing constant prices in flex context
1 participant