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

Unit validation on price sensors in optimization context #483

Open
Flix6x opened this issue Aug 24, 2022 · 0 comments
Open

Unit validation on price sensors in optimization context #483

Flix6x opened this issue Aug 24, 2022 · 0 comments

Comments

@Flix6x
Copy link
Contributor

Flix6x commented Aug 24, 2022

From #451 (comment):

Our scheduled sensors typically record flows, and our most typical case is a kW power sensor priced by a EUR/kWh price sensor. (We first compute the change in kWh stock by multiplying the power sensor values by the resolution.) I believe it should be valid to swap out EUR for anything else worth minimizing, and I'd also want to support any combination of metric prefixes (W, kW, MW).

In general, I'd start with enforcing the assumption that the denominator of the price sensor is <unit of time> times the unit of the power sensor. And I'd allow anything as the numerator of the price sensor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants