Skip to content

Conversation

@Jerry-Jinfeng-Guo
Copy link
Member

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo commented Dec 9, 2025

Test cases to verify the min and max tap changing strategy would actually return a tap that results in a minimum or maximum voltage even in the case of the whole voltage band range falls outside achievable voltage ranges. The same hold for the any strategy. This edge case is found to be a bug for fast_any.

Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo self-assigned this Dec 9, 2025
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added the feature New feature or request label Dec 9, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds test cases to verify the behavior of the min_voltage_tap and max_voltage_tap strategies when the entire voltage band range falls outside the achievable voltage range. The tests ensure that these strategies return the tap position that results in the minimum or maximum achievable voltage, even when regulation within the target band is impossible.

Key Changes

  • Added test cases for min_voltage_tap strategy when achievable voltages are below or above the band
  • Added test cases for max_voltage_tap strategy when achievable voltages are below or above the band
  • Test data includes input configurations, expected output, and calculation parameters

Reviewed changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 4 comments.

File Description
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-below-band-min/* Test case for min strategy when achievable voltage is below the minimum band threshold
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-below-band-max/* Test case for max strategy when achievable voltage is below the maximum band threshold
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-min/* Test case for min strategy when achievable voltage is above the minimum band threshold
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-max/* Test case for max strategy when achievable voltage is above the maximum band threshold

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

… any

Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
@mgovers
Copy link
Member

mgovers commented Dec 9, 2025

oh i see santiago also reviewed and some are duplicate as a result. will resolve the strictly duplicate ones and leave open the suggestion ones

Jerry-Jinfeng-Guo and others added 4 commits December 9, 2025 13:28
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
…ge-above-band-min/input.json

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Jerry Guo <6221579+Jerry-Jinfeng-Guo@users.noreply.github.com>
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added this pull request to the merge queue Dec 9, 2025
Merged via the queue into main with commit 770a645 Dec 9, 2025
31 checks passed
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo deleted the investigation/tap-changer-extrema-strategy-behavior branch December 9, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants