-
Notifications
You must be signed in to change notification settings - Fork 48
Validation test for automatic tap infinite loop fix #887
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
52831a9
fix for inf loop
petersalemink95 b4fafc2
validation test
petersalemink95 4f09f65
Merge branch 'test/auto-tap-test' into bug/auto-tap-inf-loop
petersalemink95 f8c88bf
clean-up
petersalemink95 7e7d7ed
merge origin
petersalemink95 257a1cb
match c++ exception with Python
petersalemink95 9bbd858
Merge branch 'test/auto-tap-test' into bug/auto-tap-inf-loop
petersalemink95 b4174d3
add error to tests
petersalemink95 b623400
Merge branch 'test/auto-tap-test' into bug/auto-tap-inf-loop
petersalemink95 44c5272
linter
petersalemink95 f3868ee
Merge branch 'test/auto-tap-test' into bug/auto-tap-inf-loop
petersalemink95 4bf2a28
++ instead of +=1
petersalemink95 c167b26
Merge pull request #885 from PowerGridModel/bug/auto-tap-inf-loop
petersalemink95 f813cd0
Merge branch 'main' into test/auto-tap-test
petersalemink95 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
59 changes: 59 additions & 0 deletions
59
...s/data/power_flow/automatic-tap-regulator/auto-tap-changer-meshed-any-max-iter/input.json
mgovers marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| { | ||
| "version": "1.0", | ||
| "type": "input", | ||
| "is_batch": false, | ||
| "attributes": {}, | ||
| "data": { | ||
| "node": [ | ||
| {"id": 0, "u_rated": 10000}, | ||
| {"id": 1, "u_rated": 10000}, | ||
| {"id": 2, "u_rated": 10000}, | ||
| {"id": 3, "u_rated": 10000}, | ||
| {"id": 4, "u_rated": 10000}, | ||
| {"id": 5, "u_rated": 10000}, | ||
| {"id": 6, "u_rated": 10000}, | ||
| {"id": 7, "u_rated": 400}, | ||
| {"id": 8, "u_rated": 400}, | ||
| {"id": 9, "u_rated": 400}, | ||
| {"id": 10, "u_rated": 400} | ||
| ], | ||
| "line": [ | ||
| {"id": 11, "from_node": 0, "to_node": 1, "from_status": 1, "to_status": 1, "r1": 0.005, "x1": 0.5, "c1": 0, "tan1": 0}, | ||
| {"id": 12, "from_node": 0, "to_node": 2, "from_status": 1, "to_status": 1, "r1": 0.1, "x1": 0.6, "c1": 0, "tan1": 0}, | ||
| {"id": 13, "from_node": 3, "to_node": 5, "from_status": 1, "to_status": 1, "r1": 0.005, "x1": 0.5, "c1": 0, "tan1": 0}, | ||
| {"id": 14, "from_node": 4, "to_node": 6, "from_status": 1, "to_status": 1, "r1": 0.003, "x1": 0.3, "c1": 0, "tan1": 0}, | ||
| {"id": 15, "from_node": 7, "to_node": 9, "from_status": 1, "to_status": 1, "r1": 0.005, "x1": 0.5, "c1": 0, "tan1": 0}, | ||
| {"id": 16, "from_node": 8, "to_node": 9, "from_status": 1, "to_status": 1, "r1": 0.005, "x1": 0.6, "c1": 0, "tan1": 0} | ||
| ], | ||
| "transformer": [ | ||
| {"id": 17, "from_node": 1, "to_node": 3, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 10000, "sn": 300000, "uk": 0.0005, "pk": 1000, "i0": 0, "p0": 0, "winding_from": 2, "winding_to": 1, "clock": 5, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_size": 100}, | ||
| {"id": 18, "from_node": 2, "to_node": 4, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 10000, "sn": 300000, "uk": 0.0005, "pk": 1000, "i0": 0, "p0": 0, "winding_from": 2, "winding_to": 1, "clock": 5, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_size": 100}, | ||
| {"id": 19, "from_node": 5, "to_node": 7, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 400, "sn": 300000, "uk": 0.0005, "pk": 1000, "i0": 0, "p0": 0, "winding_from": 2, "winding_to": 1, "clock": 5, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_size": 20}, | ||
| {"id": 20, "from_node": 6, "to_node": 8, "from_status": 1, "to_status": 1, "u1": 10000, "u2": 400, "sn": 300000, "uk": 0.0005, "pk": 1000, "i0": 0, "p0": 0, "winding_from": 2, "winding_to": 1, "clock": 5, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_size": 20}, | ||
| {"id": 21, "from_node": 9, "to_node": 10, "from_status": 1, "to_status": 1, "u1": 400, "u2": 400, "sn": 300000, "uk": 0.0005, "pk": 1000, "i0": 0, "p0": 0, "winding_from": 2, "winding_to": 1, "clock": 5, "tap_side": 0, "tap_pos": 0, "tap_min": -10, "tap_max": 10, "tap_size": 20} | ||
| ], | ||
| "source": [ | ||
| {"id": 22, "node": 0, "status": 1, "u_ref": 1} | ||
| ], | ||
| "sym_load": [ | ||
| {"id": 23, "node": 0, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 24, "node": 1, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 25, "node": 2, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 26, "node": 3, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 27, "node": 4, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 28, "node": 5, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 29, "node": 6, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 30, "node": 7, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 31, "node": 8, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 32, "node": 9, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000}, | ||
| {"id": 33, "node": 10, "status": 1, "type": 0, "p_specified": 100000, "q_specified": 10000} | ||
| ], | ||
| "transformer_tap_regulator": [ | ||
| {"id": 34, "regulated_object": 17, "status": 1, "control_side": 1, "u_set": 10000, "u_band": 300}, | ||
| {"id": 35, "regulated_object": 18, "status": 1, "control_side": 1, "u_set": 10000, "u_band": 300}, | ||
| {"id": 36, "regulated_object": 19, "status": 1, "control_side": 1, "u_set": 400, "u_band": 5}, | ||
| {"id": 37, "regulated_object": 20, "status": 1, "control_side": 1, "u_set": 400, "u_band": 5}, | ||
| {"id": 38, "regulated_object": 21, "status": 1, "control_side": 1, "u_set": 400, "u_band": 5} | ||
| ] | ||
| } | ||
| } |
3 changes: 3 additions & 0 deletions
3
...ower_flow/automatic-tap-regulator/auto-tap-changer-meshed-any-max-iter/input.json.license
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| SPDX-FileCopyrightText: 2023 Contributors to the Power Grid Model project <dynamic.grid.calculation@alliander.com> | ||
|
|
||
| SPDX-License-Identifier: MPL-2.0 |
10 changes: 10 additions & 0 deletions
10
.../data/power_flow/automatic-tap-regulator/auto-tap-changer-meshed-any-max-iter/params.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "calculation_method": "newton_raphson", | ||
| "tap_changing_strategy": "any_valid_tap", | ||
| "rtol": 1e-05, | ||
| "atol": 1e-05, | ||
| "fail": { | ||
| "raises": "MaxIterationReached", | ||
| "reason": "TapPositionOptimizer::iterate" | ||
| } | ||
| } |
3 changes: 3 additions & 0 deletions
3
...wer_flow/automatic-tap-regulator/auto-tap-changer-meshed-any-max-iter/params.json.license
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| SPDX-FileCopyrightText: 2023 Contributors to the Power Grid Model project <dynamic.grid.calculation@alliander.com> | ||
|
|
||
| SPDX-License-Identifier: MPL-2.0 |
7 changes: 7 additions & 0 deletions
7
...a/power_flow/automatic-tap-regulator/auto-tap-changer-meshed-any-max-iter/sym_output.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "version": "1.0", | ||
| "type": "sym_output", | ||
| "is_batch": false, | ||
| "attributes": {}, | ||
| "data": {} | ||
| } |
3 changes: 3 additions & 0 deletions
3
...flow/automatic-tap-regulator/auto-tap-changer-meshed-any-max-iter/sym_output.json.license
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| SPDX-FileCopyrightText: 2023 Contributors to the Power Grid Model project <dynamic.grid.calculation@alliander.com> | ||
|
|
||
| SPDX-License-Identifier: MPL-2.0 |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.