-
Notifications
You must be signed in to change notification settings - Fork 48
Tap changer extrema strategy behavior #1214
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
Tap changer extrema strategy behavior #1214
Conversation
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>
There was a problem hiding this 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_tapstrategy when achievable voltages are below or above the band - Added test cases for
max_voltage_tapstrategy 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.
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-below-band-min/input.json
Show resolved
Hide resolved
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-below-band-max/input.json
Show resolved
Hide resolved
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-min/input.json
Outdated
Show resolved
Hide resolved
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-max/input.json
Show resolved
Hide resolved
… any Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-any/output.json
Outdated
Show resolved
Hide resolved
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-any/params.json
Show resolved
Hide resolved
...s/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-fast-any/params.json
Outdated
Show resolved
Hide resolved
...s/data/power_flow/automatic-tap-regulator/achievable-voltage-below-band-fast-any/params.json
Outdated
Show resolved
Hide resolved
tests/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-any/output.json
Outdated
Show resolved
Hide resolved
...s/data/power_flow/automatic-tap-regulator/achievable-voltage-above-band-fast-any/params.json
Outdated
Show resolved
Hide resolved
...s/data/power_flow/automatic-tap-regulator/achievable-voltage-below-band-fast-any/params.json
Outdated
Show resolved
Hide resolved
|
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 |
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>
…ttps://github.com/PowerGridModel/power-grid-model into investigation/tap-changer-extrema-strategy-behavior
|



Test cases to verify the
minandmaxtap 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 theanystrategy. This edge case is found to be a bug forfast_any.