Repository navigation
Fix an angle in every synchronous area of the rectangular AC model - #239
Merged
Merged
Conversation
The rectangular model fixed the voltage angle only at the reference node. An area joined to the rest only through HVDC, or a bus no AC branch reaches, could rotate freely, which left the NLP singular. Each such area now has its angle fixed at the bus with the most AC branches; the magnitude stays free within the band. The cone start frees these angles while it projects and runs its power flow, then rotates each area to its anchor and fixes the angle again. Closes #238.
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.
Closes #238.
Problem
The rectangular AC model (
IndACPowerFlow = 3) fixes the voltage angle only at the reference node.A part of the network that reaches the reference node only through HVDC has no angle reference.
Rotating all the voltages of such a part by the same angle changes no flow, so each part adds a direction in which the NLP is singular. A bus that no AC branch reaches, such as an HVDC pole or a border bus fed only by a link, is a part of its own and adds one more.
Observed behaviour
Nordic transmission case, 24 hours, rectangular model with the cone start (
IndACConeStart = 2), Ipopt with MUMPS. The network has 45 parts without the reference node: Western Denmark (33 buses, joined to the rest only through HVDC) and 44 single buses (HVDC poles, border buses, converter-side buses).Zonal prices, losses and the cone solution are the same before and after. The times before the change were measured on a loaded machine and are left out. These solves were made on 37b0033; the change applies unchanged on the current master.
Solution
For each period, the AC branches define the synchronous areas. Every area without the reference node gets an anchor: its bus with the most AC branches, the first by name among equals, so the choice does not depend on the input order. The imaginary part of the anchor voltage is fixed at zero. The magnitude stays free within the bus's band; with the imaginary part at zero the real part is the magnitude, so its lower bound is raised to the band floor.
The cone start (
ACConeWarmStart) frees these angles while it projects the cone point and solves the power flow, because both pick a reference of their own in each area. It then rotates each area so that its anchor has angle zero, and fixes the angle again. A rotation of a whole area changes no flow, so the start keeps its quality.Fixing the magnitude of the anchor as well, as at the reference node, was rejected: it would impose a voltage on the area that the case does not state.
After the change
The run log names the added references, once per period:
The iterations and exits are in the table above.
Notes
A connected AC network gets no new constraint, so cases without HVDC-only areas are not affected.
The shipped 9n_AC (whose DC link joins two buses of the same area) prints no such line.
On 9n_AC the change is small: the 12-hour case does not reach Ipopt's full tolerance even without HVDC areas (122 iterations, acceptable level). With one added HVDC pole it takes 95 iterations before and 111 after. With buses 7, 8 and 9 joined to the rest only through DC it takes 170 before and 145 after. All of these stop at the acceptable level. The large effect appears on the Nordic case, where the 33-bus area and the many isolated buses together leave the problem singular in 45 directions.
At a bus with no AC branch the magnitude still appears in no constraint unless the bus holds a reactive source, so the change removes one of its two free directions. Ipopt handles that remaining direction without trouble in the cases above.
The cone (
IndACPowerFlow = 2) has no angles and is not changed.Four new tests in
tests/test_ac_hvdc_and_setpoints.py, on two variants of 9n_AC: one HVDC pole added, and buses 7, 8 and 9 joined to the rest only through DC.test_rectangular_model_fixes_an_angle_in_every_synchronous_area: the pole's angle is fixed, its magnitude is free with the band floor as lower bound, and no other angle is fixed.test_an_area_behind_hvdc_is_anchored_at_its_best_connected_bus: one angle in the area, at bus 8.test_rotating_an_area_to_its_anchor_changes_no_flow: the rotation of the cone start keeps every magnitude and every V_i conj(V_j).test_an_area_behind_hvdc_reaches_the_same_optimum_from_every_start(solve, Ipopt): the flat, cone and power flow starts reach the same cost within 1e-4, and the anchor ends at angle zero.All four fail on the current master. The first and the last fail because the angle is not fixed; the other two guard the new helpers. Full suite with this change: 377 passed.