Skip to content

Conversation

@Jerry-Jinfeng-Guo
Copy link
Member

Added exception expectation section for the tap changer

Signed-off-by: Jerry Guo <[email protected]>
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo self-assigned this Oct 25, 2025
@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added the documentation Improvements or additions to documentation label Oct 25, 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 documentation explaining the behavior and error handling of automatic tap changers in power grid calculations, specifically detailing when and why the MaxIterationReached error occurs.

Key Changes:

  • Adds a new section documenting the MaxIterationReached error type for tap changers
  • Explains the two failure scenarios and their relationship to search methods (linear and binary)

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

Jerry-Jinfeng-Guo and others added 4 commits October 25, 2025 19:19
Comment on lines 957 to 959
In the case of an unrealistically set volatage and `u_band`, the viable voltage range regulatable can fall outside
this target band.
This will lead the regulator returning the tap that results in the closest voltage level to the target band.
Copy link
Member

Choose a reason for hiding this comment

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

Is this the behavior changed in https://github.com/PowerGridModel/power-grid-model/pull/1169/files?
Where originally it gave error and now it does not?

Copy link
Member Author

Choose a reason for hiding this comment

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

This has been the behavior of all strategies all along.
It didn't not throw an error and does not either.
The bugfix fixes the absence of MaxIterReached equivalence for fast_any_tap.

Jerry-Jinfeng-Guo and others added 3 commits October 27, 2025 14:35
Co-authored-by: Santiago Figueroa Manrique <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
Co-authored-by: Santiago Figueroa Manrique <[email protected]>
Signed-off-by: Jerry Guo <[email protected]>
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


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

@sonarqubecloud
Copy link

@Jerry-Jinfeng-Guo Jerry-Jinfeng-Guo added the do-not-merge This should not be merged label Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge This should not be merged documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants