Phase-aware local control laws

This note develops and classifies steady-state local Volt-var and Volt-watt extensions for unbalanced three-phase voltages. The controller may use the local RMS voltage phasors and their relative angles, but no remote measurements or feeder-wide optimisation. The immediate target is a three-leg, three-wire converter. A four-leg converter can use the same framework with the zero-sequence channel enabled.

The proposal deliberately separates two questions:

  1. What response would the voltage curves prefer? Existing piecewise-linear primitives answer this question.
  2. What current can this converter actually produce? Topology-aware algebraic limiters answer this question without pretending that three phase-power commands are independent. A numerical optimiser is useful as an

offline oracle, but is not required in the deployed controller.

The contribution is not a new symmetrical-component controller by itself. Dual-sequence reference generation is established prior art — dual current control (Song and Nam), the unbalanced-power algebra and its four real degrees of freedom (Suh and Lipo), scalar-weighted flexible positive/negative-sequence reference generation (Rodríguez et al.), and the negative-sequence virtual-admittance family (Savaghebi et al.); see IBR references. The contribution under study is a fixed-structure algebraic controller that can be stamped into a sparse network NLP while retaining a separate exact reference evaluator.

Assumptions and validity

All phasors are fundamental-frequency RMS quantities at one equilibrium. Sequence extraction is ideal and instantaneous. There is no PLL, measurement delay, controller bandwidth, ramp rate, hysteresis, anti-windup, ride-through state machine, or dynamic-stability model. The implemented controller is three-leg and therefore has $I_0=0$. A solved equilibrium establishes neither closed-loop stability nor conformance with a standardised time response.

Normative conventions

ItemConvention
Phase order and rotation$a,b,c$ and $\alpha=e^{j2\pi/3}$
Fortescue scalingfactor $1/3$ in both voltage and current transforms
Voltage/current phasorsRMS; current positive from converter into network
Complex power$S=UI^*$; positive $P,Q$ are injection
Volt-var signpositive $Q$ injects vars at low voltage; negative $Q$ absorbs vars at high voltage
$\lvert \widetilde S\rvert$peak Fourier amplitude of 2ω complex power, not RMS
Public unitsSI; per-unit is internal numerical conditioning only

Candidate and implementation status

CandidateStatusRole
average-magnitude scalar droopimplementedlegacy comparator
positive-sequence droop with maximum-phase watt guardimplementedsequence comparator
split min/max worst-phase droopimplementedrecommended phase-aware scalar law
negative-sequence admittance and ripple blendimplementedunbalance/ripple study law
P/Q watt, var, proportional priorityimplementedpositive-sequence capability comparison
plant-aware per-leg, apparent-power, and dv2_max backoffimplementedphysical protection surrogate
virtual-delta droopfutureline-to-line sensor comparator
closest-feasible per-phase projectionfuture offline oracleupper-performance benchmark
power-versus-balance sequence priorityimplemented (SequencePriorityLimiter)service allocation comparison
grid-forming virtual-impedance negative sequenceimplemented (negative_sequence_virtual_impedance)passive voltage-source comparator

Position in the reference-generation taxonomy

Unbalanced-voltage current-reference strategies are usually classified as in Wang, Duarte and Hendrix and in Rodríguez et al. (see IBR references). The implemented policies map onto that classification as follows; only sinusoidal (fundamental-phasor) strategies can be represented by this model.

Classical strategyDefining propertyImplemented counterpart
BPSC — balanced positive-sequence current$I_2=0$NoUnbalanceControl; leaves $\widetilde S=3U_2I_1$
PNSC — positive/negative-sequence compensationconstant active power, sinusoidal currentripple-cancelling target, ripple_blend=1
AARC — average active/reactive controlconductance-like current $I\propto U$ in every sequencenegative-sequence admittance with $\phi_2=0$; the classical gain tracks the power command, the implemented $\kappa(\eta)$ is a voltage-unbalance droop
IARC — instantaneous active/reactive controlconstant instantaneous power, non-sinusoidal currentnot representable at the fundamental; excluded
flexible/pliant weightingscalar blend between strategiesripple_blend between the voltage-oriented and PNSC targets
positive/negative-sequence voltage support$I_2$ opposing $U_2$ under a peak-current limit (Camacho et al.)admittance droop with SequencePriorityLimiter
grid-forming voltage sourcebalanced EMF behind $Z_v$negative_sequence_virtual_impedance

The LV distribution analogue of the AARC row is the "resistive" behaviour of Meersman et al., in which a three-phase converter presents a conductance to the negative sequence. Their conclusion — that this reduces voltage unbalance on resistive LV feeders without communication — is the direct predecessor of the impedance_angle=0 default and should be cited with it.

Implemented phase-aware control signal chain

Relationship to standards and reference tools

This software is a research model, not a conformance implementation. The table maps concepts without claiming clause-level equivalence; a compliance study must use the licensed, current edition and its prescribed test procedure.

SourcePublic scope relevant hereMapping and non-coverage
IEEE 1547-2018 and IEEE 1547.1-2020DER reactive capability, voltage/power control, abnormal conditions, and conformance testingmotivates explicit curve bases and P/Q priority; this steady-state model does not reproduce response-time or conformance tests
IEEE 2800-2022interconnection and capability of IBRs on transmission systems, including required behaviour under unbalanced conditions and negative-sequence current injectionaddresses negative-sequence current behaviour normatively; it is a bulk-system document and is not an LV controller specification
VDE-AR-N 4110 / 4120 and ENTSO-E NC RfG (EU 2016/631)MV/HV connection rules; fault-time reactive and negative-sequence current injection proportional to the voltage deviation ("k-factor")the negative-sequence admittance droop is the steady-state analogue of k-factor injection with a fixed angle; these are fault-ride-through requirements, not continuous LV unbalance control, and their clause numbers and editions are unverified here
AEMO overview of AS/NZS 4777.2LV inverter performance, testing, and smart-inverter functionsmotivates an Australian comparator; no claim is made against a clause without the current amended licensed text
EN 50549-1/-2 and VDE-AR-N 4105European LV/MV connection requirements for generating plantsjurisdictional comparator for fixed low-voltage/high-voltage priority; cited for scope only, and their designations/editions are unverified here
IEC 61000-4-30:2025power-quality measurement methods$\lvert U_2\rvert /\lvert U_1\rvert$ is reported from ideal phasors, not a specified measurement window or instrument class
IEC TR 61000-3-13negative-sequence allocation at MV/HV/EHVuseful planning context, explicitly not an LV controller specification
EN 50160supply-voltage characteristicsa network-quality benchmark, not a local inverter-control prescription; the designation and edition are listed unverified in IBR references and must be pinned before use
OpenDSS InvControlmonitored-voltage AVG, MAX, and MIN modesindependent balanced fixed-point oracle; it does not implement this split low/high Volt-var conflict law or negative-sequence droop
Open novelty check — do this before submission

The scalar contribution below is stated against public summaries of AS/NZS 4777.2 and IEEE 1547-2018, because their normative text is licensed and is not reproduced here. Both standards prescribe which voltage a multi-phase DER shall observe for Volt-var and Volt-watt, and at least one of them may already require an extreme-phase (rather than averaged) reference. Someone must read the current licensed clause in both documents. If extreme-phase monitoring is already normative, the split minimum/maximum envelope is prior art and only the conflict rule, its continuity argument, and the smooth network surrogate remain as contributions. That would not invalidate any result on this page, but it would change the claim.

OpenDSS already provides a maximum-monitored-voltage Volt-watt mode, so that guard is not claimed as novel. Subject to the check above, the specific scalar contribution is the split minimum/maximum treatment of the two Volt-var branches, a declared continuous conflict rule, and a matching fixed-structure smooth network surrogate.

The measured voltage reference is part of the law

Every phase-magnitude comparator on this page is stated in phase-to-neutral voltage, but a magnitude only has meaning relative to a reference conductor. The implemented controller measures the POC voltage referred to the plant's declared neutral terminal; when the composed inverter is three-wire (neutral=nothing, which is also the only form accepted for a native THREE_LEG fleet record) that reference is the network's ground.

The distinction is the local zero-sequence displacement $U_0$, and it is not cosmetic:

  • $U_1$ and $U_2$ are invariant to it, so the positive-sequence Volt-var comparator and the negative-sequence droop give identical commands under any common-mode offset. PositiveSequenceVoltVarWatt as a whole is invariant only with worst_phase_watt_guard=false; its default Volt-watt guard reads the largest phase magnitude;
  • the minimum, maximum, and mean phase magnitudes are not invariant, so the worst-phase and average comparators respond to $U_0$. The extreme phases move to first order in $|U_0|$. The first-order shifts of the three phase magnitudes cancel in their mean when $U_2=0$, so the average comparator responds only at order $|U_0||U_2|/|U_1|$ and $|U_0|^2/|U_1|$; and
  • a three-leg bridge has $I_0=0$ and therefore cannot act on the very component it is reacting to.

This is the same objection raised against averaged references in §"Virtual-delta line-to-line droop", applied to the recommended law itself. It is a sensor specification, not a modelling artefact: a product that senses phase-to-neutral and a product that senses phase-to-ground implement different laws on the same feeder. Studies using a phase-magnitude comparator should therefore report $U_0$ alongside $|U_2|$ — InverterControlResult.voltage_sequence[1] — so the reference-dependent share of each curtailment decision is visible. The invariance contract is pinned by a common-mode metamorphic test; see Verification and benchmark cases.

The sensing reference is therefore declared on the law, independently of the power-stage wiring: SequenceController(...; sensing_reference=:device) uses the plant's neutral (ground for a three-wire plant), :ground always senses phase-to-ground, and a terminal name such as "n" models a three-wire power stage with a neutral sensing lead. The smooth stamp, exact-law fixed points and network sensitivities all read the same declared reference.

Current behaviour in BMOPFTools

The present implementation is not an averaged three-leg controller:

  • PN_PER_PHASE is the default Volt-var/Volt-watt reference for FOUR_LEG and SINGLE_PHASE IBRs;
  • the *_AVERAGED references are explicit alternatives, and the legacy voltage_aggregation="AVERAGE" field can also request averaging; and
  • Volt-var/Volt-watt is currently disabled for THREE_LEG, with a warning and fallback to static power boxes.

The built-in THREE_LEG injection model uses cyclic line-to-line branch currents. AdvancedInverter instead represents physical phase-conductor currents and imposes $I_a+I_b+I_c=0$. The latter is the appropriate feasibility oracle for developing a controller intended for a physical three-leg bridge.

The unavoidable three-leg constraints

Let $U_0$, $U_1$, and $U_2$ and $I_0$, $I_1$, and $I_2$ be the RMS Fortescue voltage and current phasors. For a three-leg, three-wire converter,

\[I_0=0,\qquad I_a+I_b+I_c=0.\]

It therefore has four real fundamental-current degrees of freedom: the complex positive- and negative-sequence currents. It can affect negative-sequence voltage, but it cannot inject zero-sequence current or directly correct a zero-sequence voltage. This is a physical boundary, not a control-design limitation.

This does not imply that network $U_0$ is invariant to the controller. In an asymmetric sequence-impedance matrix, $Z_{01}I_1$ and $Z_{02}I_2$ can change it even with $I_0=0$; voltage-dependent changes in other loads add another indirect path. The missing degree of freedom is independent I₀ actuation.

That four-real-degree budget is the organising constraint. Two complex current references consume it completely; constant active power, constant reactive power, balanced current, and a prescribed negative-sequence attenuation cannot all be imposed independently. Every practical law therefore embeds a priority or accepts a residual. This degree-of-freedom accounting is the standard unbalanced-converter result rather than a new observation here; see Suh and Lipo for the derivation, Nejabatkhah, Li, and Wu for the control taxonomy, and the maintained IBR references.

Using the sequence convention in AdvancedInverter, aggregate mean complex power and the double-frequency oscillating-power phasor are

\[S=3(U_1I_1^*+U_2I_2^*), \qquad \widetilde S=3(U_1I_2+U_2I_1).\]

These equations expose the principal tradeoff. Negative-sequence current is the useful actuator for voltage-unbalance attenuation, but it interacts with positive-sequence voltage to change phase-current peaks and DC-link 2ω power. A balanced positive-sequence current is not ripple-free under unbalanced voltage either: with $I_2=0$, $\widetilde S=3U_2I_1$.

Every candidate controller must ultimately satisfy all of the following, not only an aggregate apparent-power circle:

  • $I_0=0$ and each phase-conductor current limit;
  • net DC active-power availability: the plant may not draw more than the available DC power, and net import is permitted only to cover losses the DC source cannot supply (implemented through the AC-available power cap described in the control modelling guide);
  • selected-location apparent-power limits and converter losses;
  • internal-voltage/filter KVL and the instantaneous switching hull;
  • negative-sequence policy limits; and
  • DC-bus 2ω voltage and capacitor RMS-current limits.

The physical plant should use converter-terminal $U_{int}$ and $I_{conv}$ for converter power and DC-link checks. POC powers alone omit filter voltage drop, loss, and LCL shunt current. PowerOptLab therefore derives total and sequence powers from solved converter-terminal phasors. The control law may command either converter-side current or grid-side current, but both converter-leg and grid-conductor limits remain hard constraints and take precedence over the requested service.

Candidate laws

1. Worst-phase scalar droop

This is the lowest-risk baseline. Keep a balanced positive-sequence output, but replace the mean-voltage input by direction-aware envelopes:

  • Volt-watt uses the highest monitored phase voltage, so one overvoltage phase cannot be hidden by two normal phases;
  • the injecting side of Volt-var uses the lowest phase voltage;
  • the absorbing side of Volt-var uses the highest phase voltage; and
  • if low- and high-voltage requests coexist, a declared priority or deadlock rule resolves the conflict rather than allowing their average to select the wrong direction.

The recommended first rule is continuous dominant severity. Normalise the positive and negative branch ordinates by their respective branch maxima, form their signed severity difference $d$, and blend with $w=(1+d/\sqrt{d^2+\epsilon_c^2\rho^2})/2$, where the conflict measure $\rho=m/(m+\epsilon_c)$ uses the smaller normalized severity $m$. Because $\rho=0$ when only one branch is active, the rule changes nothing outside a genuine conflict. The implementation blends the signed normalized command and then maps it through the same smooth branch-scale selector. The request approaches winner-take-all away from the tie and returns zero continuously at equal normalized severity, including for asymmetric injecting and absorbing curve ranges. This avoids both :net cancellation away from a tie and the equilibrium/conditioning problems of a discontinuous switch. The equilibrium half of that argument is a known property of local Volt-var feedback rather than a claim made here: Farivar, Chen, and Low give existence and convergence conditions for local voltage control, and Zhu and Liu bound the droop slope under limited reactive power. Neither result has been applied to this law, which is why the continuity argument is stated as motivation and not as a proof. Fixed low-voltage and fixed high-voltage priorities remain useful jurisdictional comparators, while :net is retained as a legacy scientific baseline.

Illustrative Volt-var and Volt-watt curves with minimum/maximum phase inputs

A conservative smooth proxy can use $|U_1|\pm k|U_2|$ instead of hard minimum and maximum operators. This law prevents the most harmful averaged decisions and needs only firmware, but it does not actively compensate voltage unbalance.

2. Virtual-delta line-to-line droop

Measure

\[U_{ab}=U_a-U_b,\quad U_{bc}=U_b-U_c,\quad U_{ca}=U_c-U_a,\]

apply the existing PWL curves to $|U_{xy}|/\sqrt{3}$, and translate the desired virtual branch currents into terminal currents with the delta incidence matrix. The result satisfies $I_a+I_b+I_c=0$ by construction.

This is attractive when the product already senses line-to-line voltages: it requires no neutral-voltage sensor and does not react to an unobservable and uncontrollable zero-sequence voltage. It should be implemented in terminal current space, or with a minimum-norm branch-current gauge. Treating three cyclic branch powers as independently rated physical legs would introduce a nonphysical circulating degree of freedom.

3. Closest-feasible per-phase droop

Evaluate the familiar curves independently to obtain preferred phase powers $s_\phi^0=p_\phi^0+jq_\phi^0$, then convert them to preferred currents,

\[i_\phi^0=\left(s_\phi^0/u_\phi\right)^*.\]

Do not apply those powers directly. Project the preferred current vector onto the converter feasible set:

\[\mathop{\mathrm{minimize}}_{i_a,i_b,i_c} \sum_\phi w_\phi|i_\phi-i_\phi^0|^2 \quad\text{subject to}\quad i_a+i_b+i_c=0\]

together with current, net-power, switching, and DC-ripple constraints. With only the KCL equality and equal weights, the projection has the simple closed form $i=i^0-\operatorname{mean}(i^0)$. The constrained version is a small local allocator.

This is the most literal generalisation of per-phase Volt-var/Volt-watt. It can use phase-asymmetric active power, reactive power, and power circulation to counter unbalance. The realised phase powers will not in general lie exactly on all three curves; the projection residual is therefore a required diagnostic, not an error to hide. Because the fully constrained projection is an online optimisation, this law is better retained initially as a research benchmark and offline oracle than as the manufacturer-facing implementation. Local controllers that track the solution of an optimisation problem online are an established family — see Dall'Anese and Simonetto in IBR references — and this candidate should be positioned inside it rather than as a bespoke construction.

4. Dual-sequence droop

Use the positive-sequence channel for ordinary aggregate voltage/power control and reserve the negative-sequence channel for unbalance:

\[I_1^*=F_1(U_1),\qquad I_2^*=\operatorname{sat}\!\left(-k_2\widehat H_2^{-1}U_2\right),\]

where $H_2$ is the locally observed negative-sequence voltage sensitivity to injected current. A fixed virtual admittance is the simplest implementation. An online perturb-and-observe estimate can learn the useful angle using the same local voltage/current sensors and measurement history, without communications.

This reference family is established in the dual-sequence control literature (Nejabatkhah, Li, and Wu); optimal attenuation under current and power constraints is treated by Guo, Pal, and Jabr.

The static negative-sequence closed loop gives a useful sizing check. With the local Thévenin convention

\[U_2=E_2+Z_2I_2,\qquad I_2=-\kappa e^{-j\phi_2}U_2,\]

one obtains

\[\frac{|U_2|}{|E_2|} =\frac{1}{|1+\kappa Z_2e^{-j\phi_2}|} =\frac{1}{\sqrt{1+g^2+2g\cos\delta}}, \quad g=\kappa|Z_2|,\quad \delta=\arg Z_2-\phi_2.\]

For angle alignment, halving $|U_2|$ requires $g=1$ and hence $\kappa=1/|Z_2|$. For $|Z_2|=0.2$–$0.5\ \Omega$, that is $2$–$5\ \mathrm{A/V}$. The illustrative $0.08\ \mathrm{A/V}$ example has only $g=0.016$–$0.04$, or about 1.6–3.8% attenuation when aligned. It is chosen to keep the API example lightly actuated, not as a recommended product setting. Angle mismatch can amplify unbalance when $g^2+2g\cos\delta<0$. This is a static equilibrium result only; it does not establish dynamic stability.

The sensitivity angle matters. Pure negative-sequence reactive current is not generally the best voltage actuator on a resistive LV connection, and an incorrect high gain can worsen voltage or destabilise a weak-grid controller. This law therefore needs current priority, gain scheduling, anti-windup, and a dynamic impedance/stability study beyond the steady-state OPF model.

5. Ripple-cancelling negative-sequence current

For a three-wire converter, the unconstrained choice

\[I_2^{ripple}=-\frac{U_2}{U_1}I_1\]

makes $\widetilde S=0$. The implemented law does not divide by $U_1$. It uses the regularized target

\[I_2^{ripple}=-\frac{U_2U_1^*}{|U_1|^2+U_{floor}^2}I_1, \qquad \widetilde S=3U_2I_1\frac{U_{floor}^2}{|U_1|^2+U_{floor}^2},\]

with $U_{floor}$ taken from NegativeSequenceAdmittanceDroop.voltage_floor — a different declared floor from the power_voltage_floor used in the $P,Q\mapsto I_1$ conversion. The closed-form residual, not an assertion of exact zero, is the unit-test oracle, and the disk radius quoted below inherits the same regularization. This is valuable as a reference policy and as one endpoint of a tradeoff sweep. It is not automatically a voltage-unbalance controller: its current angle is selected to cancel DC power pulsation and may oppose the angle needed to attenuate $U_2$.

A useful research oracle chooses $I_2$ by minimising

\[w_v|I_2-I_2^{unbalance}|^2 +w_{dc}|U_1I_2+U_2I_1|^2 +w_i\max_\phi |I_\phi|^2,\]

subject to the exact converter limits. Varying $w_v/w_{dc}$ produces a transparent Pareto frontier between voltage unbalance, semiconductor utilisation, and capacitor stress. This optimisation-based form is not the implemented manufacturer-facing law. The implemented ripple_blend is a fixed algebraic interpolation between the two endpoints. Related voltage-unbalance/oscillating- power tradeoffs are discussed by Helaly.

6. Sequence droop with algebraic limiters (recommended)

The manufacturer-facing controller can avoid a QP or MPC entirely. At each phasor update:

  1. Compute $U_1$ and $U_2$ with the fixed Fortescue transform. If the controller already receives phasors, this is only a few complex additions and constant multiplications.

  2. Evaluate the existing Volt-var/Volt-watt PWL curves for the aggregate positive-sequence $P,Q$ request. Retain a maximum-phase-voltage guard for Volt-watt so that a single high phase cannot be hidden.

  3. Evaluate a new PWL voltage-unbalance droop on $\eta=|U_2|/\sqrt{|U_1|^2+U_{floor}^2}$. Its output $\kappa(\eta)$ is a negative-sequence admittance gain.

  4. Give that admittance a fixed configured angle relative to $U_2$,

    \[I_2^v=-\kappa(\eta)e^{-j\phi_2}U_2,\]

    where $\phi_2$ represents the expected local negative-sequence impedance angle. A product family can expose a small set of LV/resistive, mixed, and MV/inductive presets. Online impedance identification can remain an optional later feature. The admittance form goes continuously to zero at $U_2=0$, needs no unit-phasor division, and is especially convenient for a smooth network model. A bounded current-magnitude droop can still be obtained with the downstream current limiter.

  5. Optionally blend toward the ripple-cancelling target using one fixed setting,

    \[I_2^{req}=(1-\lambda)I_2^v+\lambda I_2^{ripple}, \qquad 0\le\lambda\le1.\]

    A single scalar weighting between two sequence-current references is the flexible positive/negative-sequence construction of Rodríguez et al.; $\lambda$ should be presented as an instance of it, not as a new knob.

  6. Apply the ordinary product priority and saturation logic described below.

For fixed $I_1$, the 2ω power limit is especially cheap to enforce. Since

\[\widetilde S=3U_1(I_2-I_2^{ripple}),\]

$|\widetilde S|\leq\widetilde S_{max}$ is just a disk in the complex $I_2$ plane:

\[|I_2-I_2^{ripple}|\le \frac{\widetilde S_{max}}{3|U_1|}.\]

Clipping $I_2^{req}$ to this disk is one magnitude comparison and one scalar rescaling. No optimisation solver is involved. The current implementation uses an even simpler conservative common-current scale when dv2_max is declared; the disk clip remains a candidate for a less conservative balance-priority allocator.

Ripple-limited negative-sequence-current disk

The phase currents are reconstructed directly,

\[I_a=I_1+I_2,\qquad I_b=\alpha^2I_1+\alpha I_2,\qquad I_c=\alpha I_1+\alpha^2I_2.\]

If any phase exceeds its limit, a common scale $\gamma=\min(1,I_{max}/\max_\phi|I_\phi|)$ is a safe, very cheap fallback (CommonScaleLimiter). It also curtails the reserved service: when negative-sequence support saturates a phase, positive-sequence active power is cut with it. The less conservative SequencePriorityLimiter reserves either $I_1$ or $I_2$ and gives the other request the largest admissible scale. With reserved phase contribution $a_\phi$ and requested contribution $b_\phi$, each phase needs $|a_\phi+t\,b_\phi|\le I_{max}$. The largest such $t$ is the positive root of a quadratic, written in rationalised form so that it remains defined at $b_\phi=0$:

\[t_\phi=\frac{n_\phi}{c_\phi+\sqrt{c_\phi^2+|b_\phi|^2n_\phi}},\qquad n_\phi=I_{max}^2-|a_\phi|^2,\quad c_\phi=\Re\{a_\phi b_\phi^*\},\qquad t=\min\Big(1,\min_\phi t_\phi\Big).\]

The reserved sequence is first limited to $(1-h)I_{max}$ with the declared priority_headroom_fraction $h$, so $n_\phi>0$. This is a closed-form, one-dimensional limiter, not optimisation-based control. It is the fixed-structure analogue of the peak-current-constrained sequence references of Camacho et al. and Afshari et al. (see IBR references).

The reconstructed current can be applied at either side of an output filter. Converter-current control maps most directly to semiconductor protection and converter power. Grid-current control maps most directly to network response and is already familiar in LCL implementations. With an LCL filter the two currents are unequal, so a grid-current command must also be checked against converter-leg headroom. The implemented plant-aware allocator represents the non-target LCL current as a local shunt-current offset and backs off the common command against both per-leg ratings, converter-terminal apparent power, and a declared dv2_max. It is conservative but fixed-structure and prevents ordinary protection saturation from becoming an infeasible equality.

Two declared modes are preferable to hidden weights:

  • power priority (SequencePriorityLimiter(priority=:power)) preserves the conventional positive-sequence Volt-var/Volt-watt request and gives unbalance control the remaining target phase-current headroom; and
  • balance priority (priority=:balance) reserves the negative-sequence request, then curtails positive-sequence current if necessary.

Both act on the target-side per-leg rating and on the plant-aware protection (both filter-side ratings, converter apparent power and dv2_max). The protection first scales only the lower-priority sequence with the reserved one held as an offset, and touches the reserved sequence only if that alone violates a limit. This matters most for the ripple limit: because $\widetilde S=3(U_1I_2+U_2I_1)$ is dominated by $U_1I_2$, common scaling would give up a lot of active power for little ripple reduction. The positive-sequence allocator separately offers watt, var, and proportional P/Q priority. In all modes, protection retains absolute priority: phase current, DC voltage, capacitor current, and modulation margin; then net active-power availability; then the selected power/balance service priority. The deployed code therefore consists of PWL evaluation, a Fortescue transform, complex arithmetic, and scalar saturation—the same broad implementation class as conventional droop plus current limiting.

Network-scale smooth formulation

Large-network simulation strengthens, rather than weakens, the case for the sequence law. The deployed controller remains algebraic, so the OPF should stamp those equations directly. It must not embed one optimisation problem, KKT system, complementarity system, or integer mode selector per inverter.

Sequence measurement

The Fortescue transform is affine in rectangular voltage components. For negative-sequence droop the smooth model uses

\[\nu_2=\sqrt{|U_2|^2+\epsilon_2^2}-\epsilon_2,\qquad \nu_1=\sqrt{|U_1|^2+U_{floor}^2},\qquad \eta=\nu_2/\nu_1.\]

BMOPFTools' shared smooth_norm supplies $\nu_2$ and records its approximation. The width is $\epsilon_2=0.1\epsilon_\eta U_{floor}$, so the unbalance-input error is at most $0.1\epsilon_\eta$. The exact evaluator retains $|U_2|$. $U_{floor}$ is a declared low-voltage control regularization; it is not a norm smoothing width. No zero-root equality is introduced at balanced voltage.

The PWL curve $\kappa(\eta)$ uses the shared PWL interface, with BMOPFTools softplus as the default and a selectable smoothing family. In rectangular form, multiplication by $-\kappa e^{-j\phi_2}$ is only two smooth algebraic equalities for $I_2$. It avoids angle variables, atan, and a normalised $U_2/|U_2|$ direction.

Smooth worst-phase guards

Represent the three phase-voltage magnitudes by implicit nonnegative square-root variables. Replace hard max and min in the model by pairwise smooth maximum and minimum operators using a declared SI voltage width. The square roots inside those selectors are direct expressions with strictly positive radicands. Because there are only three arguments, this adds constant work per device. The firmware may retain exact comparisons; the smoothed OPF law should be tested against it around every transition.

Smooth protection behaviour

Hard current, apparent-power, switching, and ripple capability inequalities are already smooth when written as squared norms. However, stamping an unconstrained controller equality alongside those inequalities makes a stressed equilibrium infeasible instead of reproducing the controller's saturation. The saturation policy must therefore be part of the algebraic controller model.

For the common-scale fallback, first form unconstrained sequence commands $\widehat I_1$, $\widehat I_2$ and their phase currents. Use upper norms $n_\epsilon(z)=\sqrt{|z|^2+(\epsilon_I/4)^2}$ and

\[M_I=\operatorname{smax}_{\epsilon_I} (I_{max},n_\epsilon(\widehat I_a),n_\epsilon(\widehat I_b), n_\epsilon(\widehat I_c)),\qquad \gamma_I=I_{max}/M_I.\]

This denominator cannot underestimate a phase-current magnitude. Converter and grid per-leg checks, apparent-power and optional ripple checks then allocate remaining headroom using the local converter voltage and filter shunt current. They also use upper norms, with the appropriate current or power width. An identically-zero offset is exactly zero and needs no root variable. PWM reserve is subtracted from the relevant fundamental-current limit before allocation.

Nonnegative scale factors are combined by $c_\delta(a,b)=ab/\operatorname{smax}_\delta(a,b)$. This stays between zero and the hard minimum and deviates by at most $\delta/2$. Use dimensionless ratios $\delta=\epsilon_I/I_{max}$ or $\epsilon_S/S_{max}$; using per-unit amperes or VA here would change the physical law when the OPF base changes.

The positive-headroom expression exceeds the exact positive part by at most half its width. All exact squared capability inequalities remain in the plant; controller approximation bounds do not replace physical validation.

Watt/var/proportional priority is applied before this final protection scale. SequencePriorityLimiter replaces the target-side common scale with the reserved-sequence limit and the per-phase quadratic fill above. Its smooth model overestimates the square root by at most a quarter of its width and uses upper selector denominators, so the smooth fill never exceeds the exact one. Declared i_positive_max and i_negative_max limit converter-arm sequence currents, including the mandatory loss-import and LCL shunt offsets. The legacy profile clips the independent sequence services first: common scaling retains one ray, while sequence priority clips each sequence independently before its coupled phase-current, VA and ripple protection. PCC mode includes those same physical sequence disks in its declared service order. A balanced P/Q direction does not consume I₂ headroom, including after balance-first I₂ saturation.

Three-leg capacitor thermal allocation is included in the composed controller. Switching-hull, internal-voltage and modulation protection are still plant constraints without a corresponding command allocator; they can make a local controller equilibrium infeasible and must be reported. The common-scale law is the first large-network implementation because it has fixed structure, no active-set logic, and an obvious firmware counterpart.

Sparsity and numerical policy

Each controller touches only its own terminal voltage and current variables. The Fortescue expressions, norms, two PWL evaluations, and limiter add O(1) work per IBR; different devices still couple only through the existing bus KCL. The Jacobian and Hessian therefore retain the network's block sparsity as device count grows.

For scalable Ipopt studies:

  • work in rectangular coordinates and per unit;
  • cache and register sequence magnitudes instead of rebuilding repeated expression trees;
  • use one documented smoothing scale for curve corners and separate, voltage-relative regularisation for complex norms;
  • bound droop slopes and gains so that steep controls do not create a badly conditioned equilibrium problem;
  • keep the model structure fixed when coefficients are parameterised;
  • verify independent starts at the same declared smoothing parameters; and
  • report the exact-versus-smooth controller residual as well as ordinary KCL and device-limit residuals.

The additional nonlinearities remain nonconvex, so Ipopt still finds a local equilibrium/optimum. Large-scale validation should include independent starts and explicit scaling sweeps in both device count and controller gain. The smooth controlled solvers use fixed smoothing parameters. Separate exact-law network calculations are available for single inverters and fleets, with convergence, cycling and plant-solve checks.

Accuracy, sparsity and conditioning

The shifted expression is appropriate for current-linear losses because its one-sided loss error is known: at most $a_{loss}\sum_k\epsilon_k$ in watts. The plant now calls BMOPFTools' smooth_norm, preserving its established physical width and recording the approximation. It is not used uncorrected in capability denominators, where underestimating the norm could enlarge the command.

Direct expressions remove unnecessary squared equalities. Repeated subexpressions are retained as normalized definitions $y=f(x)/s$ with derivative one in their output variable. This avoids both $y^2=0$ degeneracy and excessive duplication of nested limiter expressions. Squared roots are retained for energized voltage magnitudes and priority-capacity calculations with their declared headroom and domain constraints.

A smaller smoothing width reduces approximation error but increases curvature near zero. Choose widths from physical error budgets, keep them independent of solver tolerances, and validate both numerical residuals and physical quantities. No single solver option establishes accuracy or convergence across all feeders.

The unused a_loss == 0 magnitude epigraphs in the standalone physical plant remain an empirical solver-path workaround. Removing them in isolation regressed sequence/ripple tests; they are not physical loss terms or mathematically justified regularization. This broader plant-conditioning issue is separate from the eliminated controller zero-root equalities.

The controller regressions use fixed target smoothing, independent starts and multiple per-unit bases. They check strict solve status, original constraint residuals, conductor currents, converter power, ripple volts and exact-versus- smooth command disagreement at the solved point. These checks do not certify global optimality or closeness to an independently solved exact-law equilibrium.

DC capacitor implications

For a monolithic link with a DC source that contributes negligibly at 2ω, the small-ripple relation already implemented by AdvancedInverter gives

\[|D|=\frac{|\widetilde S|}{2\omega C_{dc}V_{dc}},\qquad C_{dc,min}=\frac{|\widetilde S|}{2\omega V_{dc}\Delta V_{2,max}},\]

where $|D|$ and $\Delta V_{2,max}$ are peak sinusoidal amplitudes. The associated capacitor-current RMS component is

\[I_{2\omega,rms}=\frac{|\widetilde S|}{\sqrt2 V_{dc}}.\]

Consequently:

  • a negative-sequence voltage controller can require a larger capacitor even though a three-leg converter carries no neutral current;
  • a ripple-aware negative-sequence angle can reduce the required 2ω capacitance and RMS-current rating, at the cost of less voltage-unbalance attenuation or more phase current;
  • capacitance and ripple-current rating are separate design constraints;
  • the calculation must be combined with switching ripple, ESR versus frequency, DC-source impedance, hold-up energy, lifetime, and transient-control needs; and
  • a finite-bandwidth DC source or DC/DC stage can share 2ω current, so the open-source formula is a conservative topology-specific limit, not a universal sizing rule.

For a four-leg converter, zero-sequence current flows in the fourth leg and does not pass through a monolithic DC capacitor as fundamental neutral current. For a split-link three-leg converter it does pass through the half-banks, creates midpoint motion, and shares their thermal budget with 2ω and switching current. Those are materially different capacitor-sizing problems.

Bill-of-materials consequences

The recommended three-leg laws need no fourth leg, neutral conductor, split DC link, or extra magnetic component. They need:

  • positive/negative-sequence extraction in firmware, normally using the DSP and PLL-class processing already present;
  • the existing phase-current and DC-voltage feedback; and
  • either three phase-to-neutral voltage phasors or a line-to-line-only mode.

The line-to-line mode has the strongest no-new-sensor case. If phase-to-neutral voltage is not already measured, adding a neutral-referenced sensing channel can be a real BOM, isolation, and certification change. It still does not give a three-leg bridge authority over zero-sequence voltage.

Larger capacitance is not intrinsically required by phase-aware control. It is required only when the chosen negative-sequence policy leaves more $|\widetilde S|$ than the existing link and ripple specification can tolerate. The algebraic ripple backoff can derate the complete request; a future disk limiter can redirect negative-sequence support before hardware limits are crossed. A separate scalar thermal limiter can turn i_cap_max into the corresponding allowable $\widetilde S_{max}$ after reserving the measured or modelled switching-current component.

Supported studies and evidence limits

Fleet construction, matched-case execution and hardware sweeps are implemented; see Inverter-control study methodology. The verification guide describes exact-law network comparisons, while the numerical-policy discussion above explains the current start, scale and per-unit restrictions. Virtual-delta, closest-feasible projection and sequence-service-priority laws remain outside the implemented policy set.

The three-leg plant constrains realizable coupled phase currents. Independently imposing preferred per-phase power curves would bypass the topology, DC and modulation constraints that the study is intended to retain.