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

Feature / Binary search in Automatic Tap Changer #668

Merged
merged 59 commits into from
Aug 6, 2024

Conversation

Jerry-Jinfeng-Guo
Copy link
Contributor

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo commented Jul 9, 2024

This PR adds binary search to the tap changer optimization process. The follow tasks are carried out:

  • Add fast_any tap changing strategy
  • Unit test benchmark the number of runs
  • Implement binary search in the fast_any tap changing strategy
  • Implement binary search in the global_max and global_min tap changing strategy
  • Existing unit tests
  • Existing validation tests

Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added the feature New feature or request label Jul 9, 2024
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo self-assigned this Jul 9, 2024
Jerry-Jinfeng-Guo and others added 20 commits July 9, 2024 13:26
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>
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>
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
…rch_

Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
…it test

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 marked this pull request as ready for review July 25, 2024 15:14
…ethod given strategy if not provided, which is the default case through the api; docs updated

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

Commenting here, so the PR won't accidentally be merged. There are still some discussions going on about the Python API. Those need to be resolved before this PR is ready

Done. Actually commenting here won't prevent accidental merging ;)

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>
docs/user_manual/calculations.md Outdated Show resolved Hide resolved
docs/user_manual/calculations.md Outdated Show resolved Hide resolved
docs/user_manual/calculations.md Outdated Show resolved Hide resolved
src/power_grid_model/core/error_handling.py Outdated Show resolved Hide resolved
tests/cpp_unit_tests/test_optimizer.hpp Outdated Show resolved Hide resolved
docs/user_manual/calculations.md Show resolved Hide resolved
Jerry-Jinfeng-Guo and others added 6 commits August 5, 2024 15:32
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 <6221579+Jerry-Jinfeng-Guo@users.noreply.github.com>
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
Signed-off-by: Jerry Guo <Jerry.Jinfeng.Guo@alliander.com>
@mgovers
Copy link
Member

mgovers commented Aug 6, 2024

remaining sonar cloud issues can be ignored

Copy link
Member

@mgovers mgovers left a comment

Choose a reason for hiding this comment

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

only the comments on the example notebook needs resolution, for the rest, i'm OK with closing with a comment

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

@mgovers mgovers left a comment

Choose a reason for hiding this comment

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

1 small nitpick. feel free to ignore it. I hereby approve

docs/examples/Transformer Examples.ipynb Show resolved Hide resolved
docs/examples/Transformer Examples.ipynb Show resolved Hide resolved
Copy link

sonarqubecloud bot commented Aug 6, 2024

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added this pull request to the merge queue Aug 6, 2024
Merged via the queue into main with commit 75c024f Aug 6, 2024
26 checks passed
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo deleted the feature/binary-search-tap-changer branch August 6, 2024 09:28
mgovers added a commit that referenced this pull request Aug 6, 2024
Signed-off-by: Martijn Govers <Martijn.Govers@Alliander.com>
github-merge-queue bot pushed a commit that referenced this pull request Aug 6, 2024
…nary-search

remove erroneously added unused and test logic after #668
@mgovers mgovers mentioned this pull request Nov 5, 2024
27 tasks
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.

5 participants