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

Fix scheduler for Charge Points #517

Merged
merged 2 commits into from Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions documentation/changelog.rst
Expand Up @@ -25,6 +25,14 @@ Infrastructure / Support
* Remove bokeh dependency and obsolete UI views [see `PR #476 <http://www.github.com/FlexMeasures/flexmeasures/pull/476>`_]


v0.11.3 | November XX, 2022
============================

Bugfixes
-----------
* Fix scheduler for Charge Points when taking into account inflexible devices [see `PR #517 <http://www.github.com/FlexMeasures/flexmeasures/pull/517>`_]


v0.11.2 | September 6, 2022
============================

Expand Down
7 changes: 4 additions & 3 deletions flexmeasures/data/models/planning/charging_station.py
Expand Up @@ -110,9 +110,10 @@ def schedule_charging_station(
]
if inflexible_device_sensors is None:
inflexible_device_sensors = []
device_constraints = [initialize_df(columns, start, end, resolution)] * (
1 + len(inflexible_device_sensors)
)
device_constraints = [
initialize_df(columns, start, end, resolution)
for i in range(1 + len(inflexible_device_sensors))
]
for i, inflexible_sensor in enumerate(inflexible_device_sensors):
device_constraints[i + 1]["derivative equals"] = get_power_values(
query_window=(start, end),
Expand Down