-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 450 api option to customize which price and power sensors to ta…
…ke into account for scheduling (#451) Introduce three optional fields to the sensors/(id)/schedules/trigger endpoint to allow further customization of optimization context: - consumption-price-sensor: prices upward deviations from previous zero-consumption commitments - production-price-sensor: prices downward deviations from previous zero-consumption commitments - inflexible-device-sensors: their power forecasts are included in the aggregate load * Add optional API fields to specify which price sensors to use for consumption and feed-in Signed-off-by: F.N. Claessen <felix@seita.nl> * Rename API fields Signed-off-by: F.N. Claessen <felix@seita.nl> * Add optional API field to specify which inflexible device sensors to include in the aggregate power flow Signed-off-by: F.N. Claessen <felix@seita.nl> * Add test data for inflexible device Signed-off-by: F.N. Claessen <felix@seita.nl> * Add test case for scheduling a battery including an inflexible device Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix boundary conditions for including inflexible devices Signed-off-by: F.N. Claessen <felix@seita.nl> * Assume perfect efficiency if no efficiency information is available Signed-off-by: F.N. Claessen <felix@seita.nl> * Switch from random periodic data to a step function, leaving a little headroom with respect to the PV system's nominal capacity Signed-off-by: F.N. Claessen <felix@seita.nl> * Return test data with conftest setup Signed-off-by: F.N. Claessen <felix@seita.nl> * Skip redundant sensor queries in tests Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor: rename variable for clarity Signed-off-by: F.N. Claessen <felix@seita.nl> * Take into account the nominal capacity of the asset, if given Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor: rename variable in test Signed-off-by: F.N. Claessen <felix@seita.nl> * Convert consumption/production power sign for our scheduler Signed-off-by: F.N. Claessen <felix@seita.nl> * Split fixtures, set up the building with a flexible device and two inflexible devices Signed-off-by: F.N. Claessen <felix@seita.nl> * Test building solver Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix passing along list of inflexible device sensors for battery scheduling Signed-off-by: F.N. Claessen <felix@seita.nl> * Restrict data used for scheduling to what was known at the time of scheduling Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix tests, given that the values for solar PV and residual demand (defined in the conftest) are measurements rather than forecasts Signed-off-by: F.N. Claessen <felix@seita.nl> * Let test schedule the future instead of the past, which requires forecasts to be present Signed-off-by: F.N. Claessen <felix@seita.nl> * Set up test data for inflexible devices in the Europe/Amsterdam timezone instead of UTC Signed-off-by: F.N. Claessen <felix@seita.nl> * Set up test data for EPEX market prices in the Europe/Amsterdam timezone instead of UTC Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix scheduling tests corresponding to having market prices available in the Europe/Amsterdam timezone instead of UTC Signed-off-by: F.N. Claessen <felix@seita.nl> * black Signed-off-by: F.N. Claessen <felix@seita.nl> * Add comment from earlier commit Signed-off-by: F.N. Claessen <felix@seita.nl> * Clear up inline comment Signed-off-by: F.N. Claessen <felix@seita.nl> * Rename variable internally Signed-off-by: F.N. Claessen <felix@seita.nl> * Rename API field Signed-off-by: F.N. Claessen <felix@seita.nl> * Rename CLI field with future deprecation warning Signed-off-by: F.N. Claessen <felix@seita.nl> * Clarify that the consumption price is being applied to the aggregate consumption of the devices, instead of being applied to the consumption of the single flexible device under consideration. Likewise for production. Signed-off-by: F.N. Claessen <felix@seita.nl> * Clarify description of aggregate power flow Signed-off-by: F.N. Claessen <felix@seita.nl> * Add return type annotation Signed-off-by: F.N. Claessen <felix@seita.nl> * Expand docstring Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix use of wrong exception Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor: rename util function Signed-off-by: F.N. Claessen <felix@seita.nl> * Changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * Implement recommended docstring revision Signed-off-by: F.N. Claessen <felix@seita.nl> Signed-off-by: F.N. Claessen <felix@seita.nl>
- Loading branch information
Showing
19 changed files
with
516 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.