Skip to content

Fix an angle in every synchronous area of the rectangular AC model - #239

Merged
erikfilias merged 1 commit into
masterfrom
fix/ac-synchronous-area-angle-reference
Nov 24, 2026
Merged

erikfilias merged 1 commit into
masterfrom
fix/ac-synchronous-area-angle-reference

Conversation

@erikfilias

@erikfilias erikfilias commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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).

15 January, before 15 January, after 11 June, before 11 June, after
Ipopt iterations 505 142 769 191
Ipopt exit Solved To Acceptable Level Optimal Solution Found Solved To Acceptable Level Optimal Solution Found
Generation cost (MEUR) 56.57957 56.57957 29.56283 29.56283
AC solve time 5.4 min 8.0 min

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:

Angle reference added in 45 synchronous areas without the reference node, period 2030

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.

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.
@erikfilias
erikfilias merged commit a310ab5 into master Nov 24, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rectangular AC model fixes one angle only, so every area behind HVDC is free to rotate

1 participant