Automatic Control Method of Proportional-Integral + Multiple Proportional Resonance for Grid-Connected Inverter of Z-Source Photovoltaic Building

The integration of solar energy into building infrastructure represents a pivotal strategy for addressing escalating energy demands with a sustainable and renewable resource. At the heart of any photovoltaic (PV) building integration system lies the power electronic interface responsible for converting the direct current (DC) output from PV panels into grid-compliant alternating current (AC). This interface is most commonly realized through a grid connected inverter. Among various inverter topologies, the Z-source inverter offers distinctive advantages for such applications. Its unique impedance network, composed of inductors and capacitors arranged in an X-shape, allows for a shoot-through state where both switches in a phase leg can be turned on simultaneously. This feature eliminates the need for dead-time, reduces output current distortion, provides inherent voltage buck/boost capability, and enhances system reliability. However, the performance and power quality injected into the grid by the grid connected inverter are critically dependent on the efficacy of its control strategy. Disturbances, harmonic pollution, and dynamic load changes can severely degrade output quality. Therefore, developing advanced, automated control methods is paramount for ensuring stable, efficient, and high-quality operation of Z-source based PV building systems.

A modern hybrid inverter system with battery storage, representative of advanced power conversion technology for renewable integration.

Mathematical Modeling of the Three-Phase Z-Source Grid Connected Inverter

Establishing an accurate mathematical model is the foundational step for designing a high-performance controller. A typical three-phase Z-source PV building system comprises the PV array, a DC-link capacitor, the symmetrical Z-network (L1=L2, C1=C2), a three-phase inverter bridge, and output filter inductors connected to the grid. The dynamic behavior of the grid connected inverter can be described using state-space equations. In the three-phase stationary coordinate system (abc frame), the key differential equations governing the system are:

The DC-link capacitor voltage dynamics:
$$C_{01} \frac{dV_{dc}}{dt} = i_{pv} – i_{dc}$$
where \(V_{dc}\) is the DC-link voltage, \(i_{pv}\) is the PV array output current, \(i_{dc}\) is the input current to the inverter bridge, and \(C_{01}\) is the DC-link capacitance.

The bridge input current is defined by the switching states:
$$i_{dc} = \sum_{k=a,b,c} i_k S_k$$
where \(S_k\) is the switching function for phase \(k\) (\(S_k=0\) for upper switch on, \(S_k=1\) for lower switch on).

The AC-side dynamics for the three phases are:
$$L \frac{di_a}{dt} = V_a – e_a, \quad L \frac{di_b}{dt} = V_b – e_b, \quad L \frac{di_c}{dt} = V_c – e_c$$
where \(L\) is the filter inductance, \(i_{a,b,c}\) are the inverter output currents, \(V_{a,b,c}\) are the inverter output voltages, and \(e_{a,b,c}\) are the grid voltages.

For controller design, it is advantageous to transform these equations into a two-phase rotating reference frame (dq frame) synchronized with the grid voltage. This transformation converts AC quantities into DC quantities, simplifying the control objective to regulating DC values. Applying the Park transformation, the model in the dq frame becomes:
$$L \frac{di_d}{dt} = V_d – e_d + \omega L i_q$$
$$L \frac{di_q}{dt} = V_q – e_q – \omega L i_d$$
Here, \(i_d\) and \(i_q\) are the direct and quadrature components of the inverter output current, \(V_d\) and \(V_q\) are the corresponding voltage components, \(e_d\) and \(e_q\) are the grid voltage components (typically \(e_d\) is the grid voltage magnitude and \(e_q=0\) for a grid-oriented frame), and \(\omega\) is the grid angular frequency. The terms \(\omega L i_q\) and \(-\omega L i_d\) represent cross-coupling between the d and q axes. The voltage gain provided by the Z-network is a function of the shoot-through duty ratio \(D\), given by:
$$V_{dc} = \frac{1}{1-2D} V_{pv}$$
where \(V_{pv}\) is the PV array voltage. This model forms the basis for designing the current control loops for the grid connected inverter.

Iterative Proportional-Integral (PI) Control for Reference Tracking

Traditional PI controllers are ubiquitous in industry due to their simplicity and effectiveness in regulating DC signals. In the dq frame, the primary control objectives for the grid connected inverter are to force \(i_d\) to track a reference corresponding to the desired active power and \(i_q\) to track a reference for reactive power (often set to zero for unity power factor). A standard digital PI controller for the current loop at sampling instant \(k\) has the output:
$$I_{out}(k) = K_p I_e(k) + \sum_{j=0}^{k} K_i I_e(j)$$
where \(K_p\) and \(K_i\) are the proportional and integral gains, and \(I_e(k)\) is the current error at time \(k\).

However, this standard implementation has a significant drawback for tracking periodic references, which is inherent in AC systems even after transformation if disturbances are present. The integrator sums all past errors, which can lead to wind-up and poor transient response when tracking sinusoidal or periodic signals. The Iterative PI control strategy addresses this by leveraging the periodic nature of the reference signal. It modifies the integral action to sum errors only from corresponding points in previous fundamental periods. Its output is derived as:
$$I_{out}(k) = I_{out}(k-n) + K_p I_e(k) – K_p I_e(k-n) + K_i I_e(k)$$
where \(n\) is the number of samples per fundamental period. This structure effectively creates a “learning” mechanism where the controller remembers the correction applied one cycle ago and adjusts it based on the current error. This significantly improves the dynamic response and tracking accuracy of the grid connected inverter for periodic signals.

Parameter tuning is critical for optimal performance. The controller aims to minimize a chosen performance index. A suitable criterion is the Integral of Time multiplied by Absolute Error (ITAE):
$$J = \int_{0}^{t} t |\phi(t)| dt$$
where \(\phi(t) = t – I_{out}(k)\) is the error for a unit ramp response test. The optimization process adjusts \(K_p\) and \(K_i\) to minimize \(J\), subject to constraints like maximum overshoot and settling time. A convergence rule such as \(\frac{J_{max} – J_{min}}{J_{min}} < \mu\) (where \(\mu\) is a small positive threshold) can be used to find the optimal gains. The following table summarizes the key characteristics of the Iterative PI controller compared to a standard PI for the grid connected inverter application.

Feature Standard PI Controller Iterative PI Controller
Integral Action Sums all historical errors Sums errors from corresponding points in previous cycles
Tracking Periodic Signals Poor, prone to wind-up and lag Excellent, learns from previous cycle
Transient Response Slower, with potential for oscillation Faster, with reduced oscillation
Steady-State Error Zero for DC references Zero for periodic and DC references
Application in Grid Connected Inverter Suitable for DC component regulation in dq frame Superior for rejecting periodic disturbances and improving dynamic tracking

Multiple Proportional Resonance (MPR) Control for Harmonic Suppression

While the Iterative PI controller in the dq frame excels at tracking the fundamental active and reactive power commands, it has limited ability to suppress specific harmonic currents. Harmonics can be generated by the inverter’s switching action, non-linear loads elsewhere on the grid, or background grid voltage distortion. To ensure high-quality power injection, the grid connected inverter must actively mitigate these harmonics. A Proportional-Resonant (PR) controller, implemented in the stationary (αβ) frame, is inherently suited for this task. A resonant controller provides theoretically infinite gain at a specific resonant frequency \(\omega_0\), enabling zero steady-state error for sinusoidal signals at that frequency. The ideal transfer function is:
$$G_{PR}(s) = K_P + \frac{2K_R \omega_c s}{s^2 + 2\omega_c s + \omega_0^2}$$
Here, \(K_P\) is the proportional gain, \(K_R\) is the resonant gain, and \(\omega_c\) is the cutoff frequency introduced to provide a finite bandwidth for practical implementation and robustness.

However, a single PR controller is tuned only for the fundamental frequency (e.g., 50/60 Hz). To suppress harmonics, multiple resonant controllers tuned to the harmonic frequencies must be employed in parallel, forming a Multiple Proportional-Resonant (MPR) controller. For a grid connected inverter, the most critical low-order harmonics are typically the 5th and 7th (250/350 Hz or 300/420 Hz). Therefore, the MPR controller’s transfer function becomes:
$$G_{MPR}(s) = K_P + \frac{2K_R \omega_c s}{s^2 + 2\omega_c s + \omega_5^2} + \frac{2K_R \omega_c s}{s^2 + 2\omega_c s + \omega_7^2}$$
where \(\omega_5\) and \(\omega_7\) are the angular frequencies of the 5th and 7th harmonics, respectively. This structure allows the grid connected inverter to apply high corrective gain precisely at these troublesome frequencies, effectively preventing them from appearing in the output current.

The choice of parameters \(K_P\), \(K_R\), and \(\omega_c\) significantly impacts performance. A higher \(K_R\) provides stronger harmonic rejection but may reduce stability margins. A larger \(\omega_c\) increases the bandwidth around the resonant frequency, improving the controller’s tolerance to grid frequency variations but reducing its selectivity. The table below illustrates the influence of these key MPR parameters on the controller’s performance for the grid connected inverter.

Parameter Primary Effect Impact on Grid Connected Inverter Performance Trade-off Consideration
Proportional Gain (\(K_P\)) Affects overall response speed and damping. Higher \(K_P\) speeds up response to all frequency components. Excessive \(K_P\) can cause overshoot and instability.
Resonant Gain (\(K_R\)) Determines the magnitude of gain at the target resonant frequency. Higher \(K_R\) leads to better suppression of the specific harmonic (5th, 7th). Very high \(K_R\) can amplify noise and reduce phase margin.
Cutoff Frequency (\(\omega_c\)) Sets the bandwidth of the resonant peak. Larger \(\omega_c\) makes the controller more robust to grid frequency drifts. Reduces the selectivity, allowing nearby frequencies to be affected.

Integrated Control Strategy: Iterative PI + MPR with Decoupling

The complete automatic control strategy for the Z-source photovoltaic building grid connected inverter synergistically combines the Iterative PI and MPR controllers, while also addressing the inherent cross-coupling present in the dq-frame model. A block diagram illustrating this integrated approach is highly effective. The control structure operates as follows:

  1. Current Reference Generation: The active power reference (from a maximum power point tracking algorithm) and reactive power reference (often zero) are used to generate the direct-axis current reference \(i_d^*\) and quadrature-axis current reference \(i_q^*\).
  2. Error Calculation in dq Frame: The measured three-phase grid currents (\(i_a, i_b, i_c\)) are transformed into the dq frame (\(i_d, i_q\)). Errors are calculated as \(e_d = i_d^* – i_d\) and \(e_q = i_q^* – i_q\).
  3. Iterative PI Control in dq Frame: The errors \(e_d\) and \(e_q\) are processed by separate Iterative PI controllers. These controllers excel at forcing the DC-valued \(i_d\) and \(i_q\) to track their references, providing excellent dynamic response for fundamental power control.
  4. Decoupling and Grid Voltage Feedforward: To achieve independent control of the d and q axes, the cross-coupling terms (\(\omega L i_q\) and \(-\omega L i_d\)) and the grid voltage components (\(e_d, e_q\)) are added as feedforward compensation signals. The output voltages from the PI controllers are thus:
    $$V_d^{PI} = V_d^{PI’} + \omega L i_q + e_d$$
    $$V_q^{PI} = V_q^{PI’} – \omega L i_d + e_q$$
    where \(V_d^{PI’}\) and \(V_q^{PI’}\) are the raw outputs of the Iterative PI controllers. This decoupling linearizes the plant model, significantly simplifying the controller design and improving performance.
  5. Harmonic Compensation in αβ Frame: The current errors are also transformed into the stationary αβ frame (\(e_\alpha, e_\beta\)). These error signals are fed into the MPR controller. The MPR controller, with its resonant peaks at the fundamental, 5th, and 7th harmonics, generates correction voltages (\(V_\alpha^{MPR}, V_\beta^{MPR}\)) designed to eliminate harmonic distortions from the current.
  6. Voltage Synthesis and Modulation: The final reference voltage commands for the grid connected inverter are synthesized by combining the decoupled PI outputs (transformed back to αβ frame: \(V_\alpha^{PI}, V_\beta^{PI}\)) with the MPR outputs:
    $$V_\alpha^* = V_\alpha^{PI} + V_\alpha^{MPR}, \quad V_\beta^* = V_\beta^{PI} + V_\beta^{MPR}$$
    These reference voltages (\(V_\alpha^*, V_\beta^*\)) are then used by a pulse-width modulation (PWM) scheme, which also incorporates the shoot-through states required for the Z-source network’s boost operation, to generate the switching signals for the inverter bridge.

The mathematical formulation of the decoupling and feedforward terms is crucial. They are derived directly from the dq-frame model equations to cancel out the coupled dynamics and disturbances:

From the model \(L \frac{di_d}{dt} = V_d – e_d + \omega L i_q\), the desired controller output \(V_d\) to achieve a commanded dynamic for \(i_d\) is \(V_d = u_d + e_d – \omega L i_q\), where \(u_d\) is the output of the current regulator (e.g., Iterative PI) for the d-axis. Similarly, for the q-axis: \(V_q = u_q + e_q + \omega L i_d\). This directly yields the decoupling and feedforward compensation structure shown in step 4. The integrated control law for the grid connected inverter can be compactly represented as:

In the dq frame for fundamental control:
$$ \begin{bmatrix} V_d^{PI} \\ V_q^{PI} \end{bmatrix} = \mathbf{G}_{PI}(s) \begin{bmatrix} i_d^* – i_d \\ i_q^* – i_q \end{bmatrix} + \begin{bmatrix} e_d \\ e_q \end{bmatrix} + \omega L \begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix} \begin{bmatrix} i_d \\ i_q \end{bmatrix} $$
where \(\mathbf{G}_{PI}(s)\) represents the diagonal matrix of Iterative PI controllers.

In the αβ frame for harmonic control:
$$ \begin{bmatrix} V_\alpha^{MPR} \\ V_\beta^{MPR} \end{bmatrix} = \mathbf{G}_{MPR}(s) \begin{bmatrix} i_\alpha^* – i_\alpha \\ i_\beta^* – i_\beta \end{bmatrix} $$
where \(\mathbf{G}_{MPR}(s)\) is the MPR controller transfer function matrix, and \(i_\alpha^*, i_\beta^*\) are the αβ transformations of \(i_d^*, i_q^*\).

This combined strategy ensures that the Z-source photovoltaic building grid connected inverter achieves multiple objectives simultaneously: fast and accurate tracking of active/reactive power commands (via Iterative PI in dq), effective suppression of dominant low-order current harmonics (via MPR in αβ), and stable operation through proper decoupling. This leads to a very high-quality sinusoidal current output that meets stringent grid codes, maximizes energy harvest from the PV array, and ensures the reliable integration of the building’s solar generation system into the utility network.

Scroll to Top