Skip to main content

N-R Ybus, mismatches and Jacobian with Q limits

Short answer

Y‑bus: Yii = 4.0701 − j17.1798 pu, Yij = −2.0351 + j8.6099 pu. Flat‑start powers: P2° = 0.0629, Q2° = 0.2236, P3° = −0.1221, Q3° = −0.5566 pu. Jacobian (3×3): ∂P2/∂δ2 = 18.00, ∂P2/∂δ3 = −8.87, ∂P2/∂|V3| = −2.10; ∂P3/∂δ2 = −8.87, ∂P3/∂δ3 = 17.74, ∂P3/∂|V3| = 3.95; ∂Q3/∂δ2 = 2.10, ∂Q3/∂δ3 = −2.10, ∂Q3/∂|V3| from formula. NR update: [ΔP2; ΔP3; ΔQ3] = J [Δδ2; Δδ3; Δ|V3|].

Figure shows a 3-bus system. The series impedance and shunt admittance of each line are 0.026 + j0.11 pu and j0.04 pu respectively. The bus specification and power input etc. at the buses is as under:

BusPGQGPLQLBus Voltage
1UnspecifiedUnspecified1.00.51.03+j0 (Slack bus)
21.5Unspecified00V = 1.03 (PV bus)
3001.20.5Unspecified (PQ bus)

[Figure: lines 1-2, 1-3 and 2-3; slack bus 1 with load 1 + j0.5; PV bus 2 with generation 1.5 + jQG2; PQ bus 3 with load 1.2 + j0.5]

For bus 2 the minimum and maximum reactive power limits are 0 and 0.8 pu. Form (i) Y bus (ii) find P2°, Q2°, P3° and Q3° (iii) find jacobian matrix (iv) form the general equations for calculating the change in variables by N-R method for first iteration.

Bus 1 is the slack bus, bus 2 a PV bus (P2=1.5P_2 = 1.5 pu, ∣V2∣=1.03|V_2| = 1.03 pu, 0≤QG2≤0.80 \le Q_{G2} \le 0.8 pu) and bus 3 a PQ bus (P3=−1.2P_3 = -1.2, Q3=−0.5Q_3 = -0.5 pu). The shunt admittance j0.04 pu is taken as the total line charging of each line, with j0.02j0.02 pu at each end. Flat start: V2(0)=1.03∠0∘V_2^{(0)} = 1.03\angle 0^\circ, V3(0)=1∠0∘V_3^{(0)} = 1\angle 0^\circ.

(i) Y-bus

yseries=10.026+j0.110=2.0351−j8.6099 puYii=2yseries+2(j0.02)=4.0701−j17.1798=17.6553∠−76.6716∘Yij=−yseries=−2.0351+j8.6099=8.8471∠103.2986∘\begin{aligned} y_{series} &= \frac{1}{0.026 + j0.110} = 2.0351 - j8.6099\ \text{pu} \\ Y_{ii} &= 2y_{series} + 2(j0.02) = 4.0701 - j17.1798 = 17.6553\angle -76.6716^\circ \\ Y_{ij} &= -y_{series} = -2.0351 + j8.6099 = 8.8471\angle 103.2986^\circ \end{aligned} Ybus=[4.0701−j17.1798−2.0351+j8.6099−2.0351+j8.6099−2.0351+j8.60994.0701−j17.1798−2.0351+j8.6099−2.0351+j8.6099−2.0351+j8.60994.0701−j17.1798] puY_{bus} = \begin{bmatrix} 4.0701 - j17.1798 & -2.0351 + j8.6099 & -2.0351 + j8.6099 \\ -2.0351 + j8.6099 & 4.0701 - j17.1798 & -2.0351 + j8.6099 \\ -2.0351 + j8.6099 & -2.0351 + j8.6099 & 4.0701 - j17.1798 \end{bmatrix}\ \text{pu}

(ii) Calculated powers at the flat start

With Yij=∣Yij∣∠θijY_{ij} = |Y_{ij}|\angle\theta_{ij}, Vi=∣Vi∣∠δiV_i = |V_i|\angle\delta_i and ϕij=θij−δi+δj\phi_{ij} = \theta_{ij} - \delta_i + \delta_j:

Pi=∑j=1n∣Vi∣∣Vj∣∣Yij∣cos⁡ϕijQi=−∑j=1n∣Vi∣∣Vj∣∣Yij∣sin⁡ϕij\begin{aligned} P_i &= \sum_{j=1}^{n} |V_i||V_j||Y_{ij}|\cos\phi_{ij} \\ Q_i &= -\sum_{j=1}^{n} |V_i||V_j||Y_{ij}|\sin\phi_{ij} \end{aligned}

Jacobian elements (polar form, j≠ij \ne i):

∂Pi∂δi=∑j≠i∣Vi∣∣Vj∣∣Yij∣sin⁡ϕij∂Pi∂δj=−∣Vi∣∣Vj∣∣Yij∣sin⁡ϕij∂Pi∂∣Vi∣=2∣Vi∣∣Yii∣cos⁡θii+∑j≠i∣Vj∣∣Yij∣cos⁡ϕij∂Pi∂∣Vj∣=∣Vi∣∣Yij∣cos⁡ϕij∂Qi∂δi=∑j≠i∣Vi∣∣Vj∣∣Yij∣cos⁡ϕij∂Qi∂δj=−∣Vi∣∣Vj∣∣Yij∣cos⁡ϕij∂Qi∂∣Vi∣=−2∣Vi∣∣Yii∣sin⁡θii−∑j≠i∣Vj∣∣Yij∣sin⁡ϕij∂Qi∂∣Vj∣=−∣Vi∣∣Yij∣sin⁡ϕij\begin{aligned} \frac{\partial P_i}{\partial \delta_i} &= \sum_{j\ne i} |V_i||V_j||Y_{ij}|\sin\phi_{ij} \\ \frac{\partial P_i}{\partial \delta_j} &= -|V_i||V_j||Y_{ij}|\sin\phi_{ij} \\ \frac{\partial P_i}{\partial |V_i|} &= 2|V_i||Y_{ii}|\cos\theta_{ii} + \sum_{j\ne i} |V_j||Y_{ij}|\cos\phi_{ij} \\ \frac{\partial P_i}{\partial |V_j|} &= |V_i||Y_{ij}|\cos\phi_{ij} \\ \frac{\partial Q_i}{\partial \delta_i} &= \sum_{j\ne i} |V_i||V_j||Y_{ij}|\cos\phi_{ij} \\ \frac{\partial Q_i}{\partial \delta_j} &= -|V_i||V_j||Y_{ij}|\cos\phi_{ij} \\ \frac{\partial Q_i}{\partial |V_i|} &= -2|V_i||Y_{ii}|\sin\theta_{ii} - \sum_{j\ne i} |V_j||Y_{ij}|\sin\phi_{ij} \\ \frac{\partial Q_i}{\partial |V_j|} &= -|V_i||Y_{ij}|\sin\phi_{ij} \end{aligned}

Substituting ∣V1∣=∣V2∣=1.03|V_1| = |V_2| = 1.03, ∣V3∣=1.0|V_3| = 1.0 and all angles zero (equivalently Pi−jQi=Vi∗∑kYikVkP_i - jQ_i = V_i^{*}\sum_k Y_{ik}V_k):

P20=0.0629 pu,Q20=0.2236 puP30=−0.1221 pu,Q30=−0.5566 pu\begin{aligned} P_2^{0} &= 0.0629\ \text{pu}, \quad Q_2^{0} = 0.2236\ \text{pu} \\ P_3^{0} &= -0.1221\ \text{pu}, \quad Q_3^{0} = -0.5566\ \text{pu} \end{aligned}

Q-limit check: QG2=Q20+QL2=0.2236Q_{G2} = Q_2^{0} + Q_{L2} = 0.2236 pu, which lies between 0 and 0.8 pu. So bus 2 stays a PV bus and only ΔP2\Delta P_2 is written for it.

(iii) Jacobian matrix

Unknowns: δ2\delta_2, δ3\delta_3, ∣V3∣|V_3|. Equations: ΔP2\Delta P_2, ΔP3\Delta P_3, ΔQ3\Delta Q_3.

∂P2∂δ2=(1.0300)(1.0300)(8.8471)sin⁡(103.30∘)+(1.0300)(1.0000)(8.8471)sin⁡(103.30∘)=18.0024∂P2∂δ3=−(1.0300)(1.0000)(8.8471)sin⁡(103.30∘)=−8.8682∂P2∂∣V3∣=(1.0300)(8.8471)cos⁡(103.30∘)=−2.0961∂P3∂δ2=−(1.0000)(1.0300)(8.8471)sin⁡(103.30∘)=−8.8682∂P3∂δ3=(1.0000)(1.0300)(8.8471)sin⁡(103.30∘)+(1.0000)(1.0300)(8.8471)sin⁡(103.30∘)=17.7364∂P3∂∣V3∣=2(1.0000)(17.6553)cos⁡(−76.67∘)+(1.0300)(8.8471)cos⁡(103.30∘)+(1.0300)(8.8471)cos⁡(103.30∘)=3.9480∂Q3∂δ2=−(1.0000)(1.0300)(8.8471)cos⁡(103.30∘)=2.0961∂Q3∂δ3=(1.0000)(1.0300)(8.8471)cos⁡(103.30∘)+(1.0000)(1.0300)(8.8471)cos⁡(103.30∘)=−4.1922∂Q3∂∣V3∣=−2(1.0000)(17.6553)sin⁡(−76.67∘)−(1.0300)(8.8471)sin⁡(103.30∘)−(1.0300)(8.8471)sin⁡(103.30∘)=16.6232\begin{aligned} \frac{\partial P_2}{\partial \delta_2} &= (1.0300)(1.0300)(8.8471)\sin(103.30^\circ) + (1.0300)(1.0000)(8.8471)\sin(103.30^\circ) = 18.0024 \\ \frac{\partial P_2}{\partial \delta_3} &= -(1.0300)(1.0000)(8.8471)\sin(103.30^\circ) = -8.8682 \\ \frac{\partial P_2}{\partial |V_3|} &= (1.0300)(8.8471)\cos(103.30^\circ) = -2.0961 \\ \frac{\partial P_3}{\partial \delta_2} &= -(1.0000)(1.0300)(8.8471)\sin(103.30^\circ) = -8.8682 \\ \frac{\partial P_3}{\partial \delta_3} &= (1.0000)(1.0300)(8.8471)\sin(103.30^\circ) + (1.0000)(1.0300)(8.8471)\sin(103.30^\circ) = 17.7364 \\ \frac{\partial P_3}{\partial |V_3|} &= 2(1.0000)(17.6553)\cos(-76.67^\circ) + (1.0300)(8.8471)\cos(103.30^\circ) + (1.0300)(8.8471)\cos(103.30^\circ) = 3.9480 \\ \frac{\partial Q_3}{\partial \delta_2} &= -(1.0000)(1.0300)(8.8471)\cos(103.30^\circ) = 2.0961 \\ \frac{\partial Q_3}{\partial \delta_3} &= (1.0000)(1.0300)(8.8471)\cos(103.30^\circ) + (1.0000)(1.0300)(8.8471)\cos(103.30^\circ) = -4.1922 \\ \frac{\partial Q_3}{\partial |V_3|} &= -2(1.0000)(17.6553)\sin(-76.67^\circ) - (1.0300)(8.8471)\sin(103.30^\circ) - (1.0300)(8.8471)\sin(103.30^\circ) = 16.6232 \end{aligned} J0=[18.0024−8.8682−2.0961−8.868217.73643.94802.0961−4.192216.6232]J^{0} = \begin{bmatrix} 18.0024 & -8.8682 & -2.0961 \\ -8.8682 & 17.7364 & 3.9480 \\ 2.0961 & -4.1922 & 16.6232 \end{bmatrix}

(iv) Equations for the first N-R iteration

Mismatches:

ΔP2=P2sp−P20=1.5−0.0629=1.4371ΔP3=P3sp−P30=−1.2−(−0.1221)=−1.0779ΔQ3=Q3sp−Q30=−0.5−(−0.5566)=0.0566\begin{aligned} \Delta P_2 &= P_2^{sp} - P_2^{0} = 1.5 - 0.0629 = 1.4371 \\ \Delta P_3 &= P_3^{sp} - P_3^{0} = -1.2 - (-0.1221) = -1.0779 \\ \Delta Q_3 &= Q_3^{sp} - Q_3^{0} = -0.5 - (-0.5566) = 0.0566 \end{aligned}

General equations:

[ΔP2ΔP3ΔQ3]=[∂P2∂δ2∂P2∂δ3∂P2∂∣V3∣∂P3∂δ2∂P3∂δ3∂P3∂∣V3∣∂Q3∂δ2∂Q3∂δ3∂Q3∂∣V3∣][Δδ2Δδ3Δ∣V3∣]\begin{bmatrix} \Delta P_2 \\ \Delta P_3 \\ \Delta Q_3 \end{bmatrix} = \begin{bmatrix} \frac{\partial P_2}{\partial \delta_2} & \frac{\partial P_2}{\partial \delta_3} & \frac{\partial P_2}{\partial |V_3|} \\ \frac{\partial P_3}{\partial \delta_2} & \frac{\partial P_3}{\partial \delta_3} & \frac{\partial P_3}{\partial |V_3|} \\ \frac{\partial Q_3}{\partial \delta_2} & \frac{\partial Q_3}{\partial \delta_3} & \frac{\partial Q_3}{\partial |V_3|} \end{bmatrix} \begin{bmatrix} \Delta\delta_2 \\ \Delta\delta_3 \\ \Delta|V_3| \end{bmatrix}

With numbers:

[1.4371−1.07790.0566]=[18.0024−8.8682−2.0961−8.868217.73643.94802.0961−4.192216.6232][Δδ2Δδ3Δ∣V3∣]\begin{bmatrix} 1.4371 \\ -1.0779 \\ 0.0566 \end{bmatrix} = \begin{bmatrix} 18.0024 & -8.8682 & -2.0961 \\ -8.8682 & 17.7364 & 3.9480 \\ 2.0961 & -4.1922 & 16.6232 \end{bmatrix} \begin{bmatrix} \Delta\delta_2 \\ \Delta\delta_3 \\ \Delta|V_3| \end{bmatrix}

Solving, Δδ2=0.0661\Delta\delta_2 = 0.0661 rad, Δδ3=−0.0252\Delta\delta_3 = -0.0252 rad, Δ∣V3∣=−0.0113\Delta|V_3| = -0.0113 pu, so after the first iteration

δ21=0+0.0661=0.0661 rad=3.787∘δ31=0+(−0.0252)=−0.0252 rad=−1.445∘∣V3∣1=1+(−0.0113)=0.9887 pu\begin{aligned} \delta_2^{1} &= 0 + 0.0661 = 0.0661\ \text{rad} = 3.787^\circ \\ \delta_3^{1} &= 0 + (-0.0252) = -0.0252\ \text{rad} = -1.445^\circ \\ |V_3|^{1} &= 1 + (-0.0113) = 0.9887\ \text{pu} \end{aligned}

Answer: P20=0.0629P_2^0 = 0.0629, Q20=0.2236Q_2^0 = 0.2236, P30=−0.1221P_3^0 = -0.1221, Q30=−0.5566Q_3^0 = -0.5566 pu; bus 2 stays PV; J0J^0 as above; first-iteration result V2=1.0300∠3.787∘V_2 = 1.0300\angle 3.787^\circ pu, V3=0.9887∠−1.445∘V_3 = 0.9887\angle -1.445^\circ pu.

✓ Answer checked by Claude Sonnet 5.5

All Power System Analysis II chapter 2 questions →