Expand and correct math details in the power flow docs#64
Open
cameronkhanpour wants to merge 2 commits into
Open
Expand and correct math details in the power flow docs#64cameronkhanpour wants to merge 2 commits into
cameronkhanpour wants to merge 2 commits into
Conversation
Verify each added formula against the sensitivity implementations. - DC power flow: write out the switching flow sensitivity (direct and indirect parts) and expand the angle sensitivity term into explicit form - DC OPF: gate the angle difference limits by sw to match the model, and add the explicit per-branch KKT switching derivative blocks - AC power flow: add an Admittance and Topology Sensitivity section and show the sw gate in the bus admittance matrix - AC OPF: note the implicit function framing of the KKT differentiation - Cite Talkington et al. (arXiv:2510.17071) in the AC docs
Branch current and flow sensitivities to g and b include a direct term on the perturbed branch (its own admittance acting on its voltage drop), in addition to the term through the voltage change. This matches the implementation (the direct topology current contribution) and the paper's line current and flow sensitivity equations.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Improves the mathematical detail in the
docs/src/math/pages, with every added formula checked against the sensitivity code. Docs only; no code changes.DC Power Flow
DC OPF
swto match the model and KKT system.AC Power Flow
swgate in the bus admittance matrix.AC OPF
Cites Talkington et al. (arXiv:2510.17071) in the AC docs.