Next Article in Journal
Design and Validation of an Instrument for Noninvasive Measurement of Connecting Rod Deformation in Spark Ignition Engines for Hybrid Vehicles
Previous Article in Journal
Accuracy Assessment of Exhaust Valve Geometry Reconstruction: A Comparative Study of Contact and Optical Metrology in Reverse Engineering
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Performance Evaluation of a Flatness-Based Controller for a Three-Phase Three-Level NPC Shunt Active Power Filter

1
Laboratoire Energie et Systèmes Electriques, École Nationale Supérieure d’Électricité et de Mécanique, Hassan II University of Casablanca, Casablanca BP 8118, Morocco
2
School of Electrical and Control Engineering, Shenyang Jianzhu University, Shenyang 110136, China
*
Author to whom correspondence should be addressed.
Designs 2026, 10(1), 16; https://doi.org/10.3390/designs10010016
Submission received: 1 October 2025 / Revised: 26 December 2025 / Accepted: 31 December 2025 / Published: 4 February 2026
(This article belongs to the Section Electrical Engineering Design)

Abstract

The widespread adoption of nonlinear loads in industry has introduced significant power quality issues in electric power distribution grids. The integration of these nonlinear loads has led to the proliferation of serious power quality problems such as the generation of harmonics and reactive power that negatively impact the quality and stability of the electrical grid. In addition to eliminating current harmonics, a shunt active power filter (APF) can also provide reactive power compensation. By dynamically adjusting the reactive power injection, these APFs can improve the power factor of the system and maintain the desired voltage regulation. The proposed control leverages the differential flatness property of the SAPF system, allowing for exact linearization and simplified tracking control without requiring complex modulation techniques. In this paper, a flatness-based control scheme is proposed for a three-phase three-level Neutral Point Clamped (NPC) APF. The main objectives of this work are twofold. The first objective is to mitigate current harmonics and compensate the reactive power drawn by nonlinear loads. The second objective focuses on maintaining a stable DC-link capacitor voltage of the active power filter (APF). To meet these requirements, a cascaded control structure is used, where the external loop regulates the DC-link voltage, while the inner loop is responsible for harmonic current compensation. The effectiveness of the proposed control strategy is validated through simulation results obtained using the MATLAB/Simulink R2024a environment.

1. Introduction

Harmonic current is typically generated by nonlinear loads such as switch-mode power converters, variable speed motors, drives and battery chargers [1]. According to international standards and norms, power systems can tolerate a certain level of harmonics. However, the proliferation of nonlinear loads led to this current becoming dominant, hence making the electrical grid not fulfill the international standards [2]. The presence of this harmonic current in the power system results in increased power losses and hence a degradation of the system’s efficiency, damage in electrical equipment, and interferences with radio and telecom signals.
In the past, passive filters have been a common solution to mitigate harmonic current problems in power systems [3]. Passive filters are simple and low-cost solutions, but they have several disadvantages, such as the risk of resonance and bulky size. With the rapid advancements in power semiconductor device technology, active power filters (APFs) have emerged as a more effective solution for addressing current harmonics issues [4,5]. One of the most widely adopted APF topologies is the Shunt APF (SAPF), which operates by injecting compensation currents in opposition to the undesired harmonic currents. The traditional two-level Voltage Source Inverter (VSI) has been the most commonly used power converter in SAPF applications. However, the two-level VSI faces limitations, particularly in terms of the quality of the generated voltage waveforms, hence necessitating a high filtering effort and an increased filter size. To overcome the drawbacks of the two-level inverters, multilevel voltage inverters have been introduced [6,7]. Multilevel inverters can generate higher quality waveforms than their two-level counterparts. This makes them more suitable for medium and high-power applications [8]. One of the multilevel inverter topologies that has received attention from researchers for high power applications is the Neutral-Point-Clamped (NPC) inverter, which was simultaneously introduced by Baker [9] and Nabae et al. [10] in 1981. NPC inverters are characterized by low voltage stress on switching devices and offer a more cost-effective solution than the Flying Capacitor (FC) and Modular Multilevel Converter (MMC) topologies [11]. The transition from passive filters to APFs, and the adoption of multilevel inverter topologies, such as the NPC inverter, have been key advancements in addressing the growing harmonic challenges in modern power systems. In addition to the commonly cited advantages related to device voltage stress and overall cost, the selection of a three-level NPC converter is also motivated by its favorable balance between performance and implementation complexity. For the power range and harmonic compensation objectives addressed in this work, the three-level structure provides sufficiently low output distortion while maintaining high reliability and industrial maturity. Furthermore, it ensures efficient natural DC-bus midpoint balancing and exhibits lower switching losses under the adopted modulation scheme compared with other multilevel variants such as ANPC. Higher-level converters (e.g., five-level) could offer incremental performance gains, but at the expense of significantly increased control complexity, sensing requirements, computation effort, and real-time constraints. Therefore, the three-level NPC topology represents an optimal compromise for the proposed application.
On the other hand, among the most used control strategies in power electronics applications are those based on a linear approach, such as resonant controllers in the natural a b c -frame, Proportional Integral (PI) controllers in the d q -frame, and sliding mode controllers. While these control strategies remain popular due to their simplicity and historical success, they suffer from many limitations such as harmonic susceptibility and parameter sensitivity [12,13]. Flatness-based control stands out among other control strategies thanks to its unique approach to handling nonlinear systems, unlike traditional methods such as Proportional Integral Derivative (PID) control [14], which rely on linear approximations and may struggle with complex nonlinear dynamics. Flatness-based control directly exploits the system’s inherent nonlinear structure, which allows for explicit trajectory planning and precise tracking without the need for linearization or gain tuning [15]. In contrast to adaptive control, which often requires robust parameter adjustments, or sliding mode control with variable switching frequency, flatness-based control offers a more straightforward and computationally efficient solution for nonlinear systems exhibiting the flatness property [16].
The modulation technique employed in this work is Space Vector Pulse Width Modulation (SVPWM) [17,18]. The SVPWM method helps to stabilize the DC-link voltage and reduce the current ripple content, further enhancing the overall system performance.
In this work, the focus is on the control of a three-phase three-level NPC APF. The proposed solution offers significant advantages in terms of effectively compensating for harmonic current. The control structure is developed using a cascaded approach with two main loops. An inner loop is designed based on the flatness control approach; this strategy is used to compensate for the harmonic current, providing excellent steady-state performance. The outer loop is implemented using a PI controller; this later is responsible for regulating the output voltage to track the desired reference.
The remainder of this paper is structured as follows. Section 2 describes the SAPF system and its mathematical modeling. Section 3 describes the development of the control strategy, and Section 4 presents simulation results demonstrating the effectiveness of the proposed controller.

2. System Overview and Dynamic Modeling

2.1. System Overview

The three-phase, three-level NPC APF system is shown in Figure 1. It is parallel connected via a smoothing inductor L f , r f with the grid and the nonlinear load consisting of an uncontrolled full-bridge rectifier feeding a DC load of type R , L .
The three-level NPC inverter has three legs, and each one has four Insulated Gate Bipolar Transistors (IGBTs): S 1 j , S 2 j , S 3 j , and S 4 j ( j = a , b , c ), connected in series. The bus voltage v 1 + v 2 is split by the connection of two equal series capacitors with capacitances C 1 = C 2 = C . Each leg is completed by the addition of two clamp diodes D 1 j and D 2 j providing the connection to the neutral point o [19].
The NPC inverter is capable of providing three distinct output voltage levels: the positive DC bus voltage v 1 , zero-voltage, and the DC bus negative voltage v 2 . For a one phase operation, when IGBTs S 1 j and S 2 j are turned on, the output is connected to v 1 ; when S 2 j and S 3 j are turned on, the output is connected to zero; and when S 3 j and S 4 j are turned on, the output is connected to v 2 . The input signal ( µ j ϵ 1 , 0 , 1 ) determines the state of the IGBTs ( S 1 j , S 2 j , S 3 j , and S 4 j ) according to Table 1.

2.2. System Dynamic Modeling

Using Kirchhoff’s Voltage Law (KVL), the voltages across the filter inductors in the a b c -frame can be expressed as follows:
L f d d t i f a i f b i f c = v a v b v c v g a v g b v g c r f i f a i f b i f c
The voltage vector v a v b v c T provided by the NPC inverter can be expressed by:
v a v b v c = 1 6 2 1 1 1 2 1 1 1 2 ( μ a μ b μ c ) v s + ( μ a 2 μ b 2 μ c 2 ) v d
where v s = v 1 + v 2 and v d = v 1 v 2 . The grid voltages are considered balanced and sinusoidal, hence the grid voltage vector can be expressed as follows:
v g t = E g s i n ω g t s i n ω g t 2 π 3 s i n ω g t 4 π 3
where E g and ω g represent the amplitude and angular frequency of the three-phase power grid, respectively.
According to Kirchhoff’s Current Law (KCL), the DC-link voltages dynamics are described by:
C d d t v 1 v 2 = μ a + µ a 2 μ b + µ b 2 μ c + µ c 2 μ a µ a 2 μ b µ b 2 μ c µ c 2 i f 2
where i f = i f a i f b i f c T .
Based on the above developments, the dynamic model of the three-level NPC SAPF in the natural abc-frame, including the DC-link capacitor dynamics, switching states, grid voltages, and grid currents, is given by:
L f d i f d t = 1 6 M μ v s + μ 2 v d r f i f v g
C d d t v 1 v 2 = μ a + µ a 2 μ b + µ b 2 μ c + µ c 2 μ a µ a 2 μ b µ b 2 μ c µ c 2 i f 2
where
v g = v g a v g b v g c T ,   M = 2 1 1 1 2 1 1 1 2 ,
μ = μ a μ b μ c T ,   μ 2 = μ a 2 μ b 2 μ c 2 T .
Using the Concordia’s transformation, the three-phase system in the a b c -frame is converted to a stationary two-axis α β -frame, given as:
d i f α β d t = 1 L f r f i f α β + v g α β v s 2 μ α β v d 6 N
C d d t v 1 v 2 = 1 2 A i f α β + 1 6 B i f α β
where
i f α β = i f α i f β T ;   v g α β = v g α v g β T ;   μ α β = μ α μ β T ;   N = µ α 2 µ β 2 2 µ α µ β ;
A = μ α μ β μ α μ β ;   B = μ α 2 μ β 2 2 μ α μ β μ α 2 μ β 2 2 μ α μ β
In terms of the sum and difference in capacitor voltages, the previous switched mathematical model can be written as follows:
d i f α β d t = 1 L f r f i f α β + v g α β v s 2 μ α β v d 6 N
C d d t v s v d = μ α μ β μ α 2 μ β 2 6 2 μ α μ β 6 i f α β
The switched model (7a) and (7b) employs a discontinuous control input μ α β . This model is useful for performing accurate numerical simulations but not suitable for continuous controller design. By averaging the system dynamics over a switching period T s , the following design-oriented averaged model is obtained.
d ī f α β d t = 1 L f r f ī f α β + v g α β v ¯ s 2 u α β 1 6 N v ¯ d
C d d t v ¯ s v ¯ d = u α u β u α 2 u β 2 6 2 u α u β 6 ī f α β
where the overbar stands for averaging with respect to time over one switching cycle. It is worth noting that the average model corresponding to the three-level NPC inverter has a quadratic nonlinearity with respect to the input control signals u α and u β , in contrast to the two-level inverter which can be modeled by a bilinear model.

2.3. Space Vector Pulse Width Modulation Strategy

Space Vector Pulse Width Modulation (SVPWM) is an advanced technique used to control the switches in a three-phase voltage source inverter [20,21]. The key steps of the SVPWM technique are:
  • Space vector representation: The three-phase output voltages are represented as a single rotating space vector in the α β plane;
  • Switching pattern determination: SVPWM determines the optimal switching pattern for the inverter switches to synthesize the desired output voltage space vector. This process is achieved by selecting the appropriate inverter switching states and their corresponding durations;
  • Pulse width modulation: The determined switching pattern is then used to generate the gate signals for the inverter switches using pulse width modulation.

2.3.1. Space Vector Representation

The reference voltage vector V r e f for the three-phase voltages v a b c = v a v b v c T can be expressed as follows [22]:
V r e f = 2 3 v a + v b e j 2 π 3 + v c e j 2 π 3
The α β components of this reference voltages are given by the following expression:
V r e f = v α + j v β
The polar coordinate (magnitude V r e f and angle ( θ )) of the reference voltage vector V r e f are straightforward from (11):
V r e f = v α 2 + v β 2
θ = tan 1 v β v α
In a three-level inverter, each phase can have three operating states: 0 , 1 , 2 , which correspond to the voltage levels v 2 , 0 , and v 1 respectively (assuming that v 1 = v 2 = v s 2 ). Since there are three phases, and each phase can be in one of the three states, the total number of possible working states for the three-level inverter is 3 3 = 27 . These 27 working states can be represented as 27 space vectors in the α β -frame, as shown in Figure 2. By disregarding the redundant states, the reference voltage vector V r e f can only take 18 different positions in the α β -frame, based on the switching states of the three-level inverter. These 18 positions are arranged in two hexagons in the α β -frame. Hexagon 1 has 6 positions, corresponding to 6 switching states. Hexagon 2 has 12 positions, corresponding to 12 switching states. Each position on the two hexagons is produced by a unique set of switching states.
There exists also one position at the origin of the diagram, corresponding to the three switching states 222, 111, and 000.
The positions of the reference voltage vector V r e f on the α β plane divide the diagram into six triangular sectors that can be represented by a variable S whose value depends on the angle θ of the reference space vector according to the following expression:
S = 1 i f 0 θ π 3 2 i f π 3 θ 2 π 3 3 i f 2 π 3 θ π 4 i f π θ 4 π 3 5 i f 4 π 3 θ 5 π 3 6 i f 5 π 3 θ 2 π
Each of these six sectors is divided into 4 smaller triangular regions. As an example, the sector corresponding to S = 1 is illustrated in Figure 3. The complete space vector diagram is then divided into a total of 24 triangular regions.

2.3.2. Switching Pattern Determination

From the polar coordinates of the reference vector V r e f , one can determine which value S of the sector and which region r in the α β -frame that vector is located. The reference vector V r e f is located in terms of the polar coordinates according to the following expression in terms of the parameters a and b , see Figure 3:
a = cos θ 1 3 sin θ V r e f
b = 2 3 sin θ V r e f
As an example, the regions of the first sector S = 1 are as follows:
r = 1 i f a 1 2   a n d   b 1 2   a n d   a + b 1 2
r = 2 i f a 1 2   a n d   b 1 2   a n d   a + b 1 2
r = 3 i f b 1 2
r = 4 i f a 1 2
Following the same procedure, all the other sectors can be determined.

2.3.3. Pulse Width Modulation

As discussed previously, the reference voltage vector V r e f can be represented by its magnitude V r e f and angle θ on the α β plane. The three nearest voltage space vectors are selected based on their proximity to V r e f in this plane. This proximity is determined by considering both the magnitude and angle of the voltage space vectors.
Let the three nearest voltage space vectors be denoted as v a , v b , and v c . These vectors can be described by their magnitudes v a , v b , v c , and their angles with respect to the α reference axis. The three nearest voltage space vectors v a , v b , and v c are selected such that the reference voltage vector V r e f can be approximated or represented by a linear combination of these vectors. Let T a , T b , and T c represent the dwell times of the three nearest voltage space vectors v a , v b , and v c , respectively, within each sampling period T s . According to volt-second balance [23,24], one can write:
T s V r e f = T a v a + T b v b + T c v c
T s = T a + T b + T c
When the reference voltage vector V r e f is located in the second region ( r = 2 ) of the first sector, the following expression can be written:
T s V r e f cos θ sin θ = T a v a + T b v b + T c v c
where v a , v b , and v c are given by: v a = 1 3 v s cos 0 sin 0 = v s 3 0 ,
v b = 3 3 v s cos π 6 sin π 6 = v s 2 3 v s 6 , v c = 1 3 v s cos π 3 sin π 3 = v s 6 3 v s 6 .
From (16), one gets:
T s V r e f c o s θ = v s T a 1 3 + T b 1 2 + T c 1 6
T s V r e f s i n θ = 3 6 v s T b + T c
where T a , T b and T c are given by:
T a = T s 2 k s i n θ
T b = 2 k s i n π 3 + θ T s
T c = T s 2 k s i n π 3 θ
with k = 3 V r e f T s 3 v s .
The calculation of dwell times for the upper half-phase in region 2 of the first sectors is given in Figure 4. The calculation method is the same for all sectors [25,26].

3. Control Law Synthesis via Differential Flatness

The controller consists of two principal loops. The first one is an AC current control scheme founded on the principle of differential flatness; it is designed to generate the required reactive and harmonic current components to counteract the distortions introduced by the nonlinear load. The outer loop is dedicated to the regulation of the DC-link voltage and employs a PI controller. The overall control architecture is illustrated in Figure 5.
The reference currents for the SAPF are derived from those of the nonlinear load ( i L α and i L β ) using the PQ theory [27,28] as illustrated in Figure 6. This method is based on transforming the three-phase voltages and currents from the a b c frame into the α β one. In the latter, the complex power can be expressed as:
s L = p L + j q L
where p L is the real power and q L is the imaginary one that can be expressed as follows:
p L q L = v g α v g β v g β v g α i L α i L β
v g α and v g β are the   α and β components of the voltage vector, respectively, and i L α and i L β are the α and β components of the current vector, respectively.
The instantaneous real and imaginary powers, p L and q L , can be decomposed into two components: DC components P L and Q L , which represent the average of the real and imaginary powers, and AC components p ~ L and q ~ L , which represent the harmonic part. Their expressions can be written as follows:
p L q L = P L + p ~ L Q L + q ~ L
The harmonic reference currents are generated based on the oscillating power component p ~ L of the real power p L , together with the total imaginary power q L . The corresponding compensation currents references in the α β frame are obtained as follows:
i f α i f β = 1 v g α 2 + v g β 2 v g α v g β v g β v g α p ~ L p d c q L
where p d c is an additional power that constitutes the control signal for regulating the DC bus voltage.

3.1. High-Bandwidth Current Control Scheme

In a differentially flat system, the system variables consist of state vector x and input vector u , and can be expressed in terms of a set of specific variables called the flat outputs y and their time derivatives [29,30]:
y = ϕ x , u , u ˙ , , u s
x = φ y , y ˙ , , y r
u = ψ y , y ˙ , , y r + 1
More precisely, a system is said to be differentially flat if there exists a flat output vector y R m such that all the system states x R n and control inputs u R m can be expressed as algebraic functions of the flat output and a finite number of its time derivatives.
The steps involved in the synthesis of a flatness controller for a power system are summarized below:
  • Verification of the differential flatness: The first step is to check the flatness conditions expressed in (23a), (23b) and (23c);
  • Reference trajectory planning: The second step is designing the desired references for the flat outputs of the control system;
  • Control law synthesis: The third step is to synthesize the control laws that will allow the regulation of flat outputs to their reference trajectories in terms of the flat outputs and their derivatives.

3.1.1. Verification of Differential Flatness

Let x α β = i f α i f β T be the state vector of the system. To meet the control requirements, the candidate flat output vector is chosen as follows:
y α β = y α y β = i f α i f β = ϕ x α β
According to (24), the state vector is expressed as follows:
x α β = i f α i f β = y α y β = φ y α β
Therefore, the second condition for the system to be flat is verified.
Equation (8a) can be used to express the input vector u α β = u α u β T as a function of the flat output and its derivative:
u α β = 2 v ¯ s v g α β N v d ¯ 6 + r f y ¯ α β + L f d y ¯ α β d t ψ y α β , y ˙ α β

3.1.2. Reference Trajectory Planning

The trajectory planning defines the evolution of all the system state variables, not just the flat outputs [31,32]. By imposing a known trajectory, it is possible to predict, analytically, the evolution of the system state variables. This analytical prediction is valuable for the control design and implementation, as it allows for precise control of the system behavior. The ability to plan and control the trajectory of flat outputs is a key advantage of differential flatness-based control.
To generate smooth reference signals for the output components, the reference vector y α β = y α y β T is filtered by a second-order system. The resulting reference trajectory is then given by:
y f α β = y f α y f β = 1 1 + τ s 2 y α y β
where τ is a positive quantity representing the filter time constant.

3.1.3. Control Law Synthesis

A state feedback law is employed to make y α β track the reference y f α β , which is the filtered version of reference vector y α β [33]. The state feedback controller is expressed as follows:
d e d t + k 1 e + k 2 e   d t = 0
where e = y f α β y α β is the error vector.
The integral terms in the state feedback controller ensure a zero static error. The coefficients k 1 and k 2 of the regulators are designed such that the operating point is stable and the system exhibits a desired dynamic performance.
Using (28), the dynamics of y α β can be described by the following differential equation:
d y α β d t = γ α γ β = d y f α β d t + k 1 e + k 2 e   d t
Let γ α β = d y α β d t . By using (26), the input vector u α β can be expressed in terms of the variable γ α β as follows:
u α β = 2 v ¯ s v g α β N v ¯ d 6 + r f y ¯ f α β + L f γ ¯ α β
In a three-level NPC inverter with balanced DC-link capacitor voltages v 1 = v 2 , u α β becomes:
u α β = 2 v ¯ s v g α β + r f y ¯ f α β + L f γ ¯ α β
In the Laplace domain, Equation (28) becomes:
s 2 + 2 ζ ω n s + ω n 2 E ( s ) = 0
where ζ and ω n are given by:
ω n = k 2   and     ζ = 1 2 k 1 2 k 2
The desired closed-loop damping ratio ζ and natural frequency ω n can be imposed by appropriately selecting the values of the coefficients k 1 and k 2 .

3.2. Outer-Loop Control Strategy for DC Bus Voltage Regulation

One of the control objectives in the SAPF is to maintain the voltage level at its DC side at a desired reference value. The first step in the outer control loop design is to obtain the dynamic model relating the DC-link voltage v ¯ s with the reference currents i f α β .
Using (8b), the dynamics of v ¯ s and v ¯ d can be described by the following set of differential equations:
C d v ¯ s d t = u α ī f α + u β ī f β
C d v ¯ d d t = 1 6 u α 2 u β 2 ī f α + 2 u α u β ī f β
By replacing the control signals u α and u β by their expressions in (31), the dynamics of v ¯ s in (33a) become as follows:
C d v ¯ s d t = 2 v s y ¯ α f + y ¯ β g
where f and g are given by:
f = L f γ ¯ α + r f y ¯ α + v g α + 1 2 6 u β 2 u α 2 v ¯ d ,   y ¯ α = ī f α
g = L f γ ¯ β + r f y ¯ β + v g β + 1 6 u α u β v ¯ d ,   y ¯ β = ī f β
The following three assumptions are considered.
Assumption 1.
The impedance of ( L f ,   r f ) is negligible.
Assumption 2.
The two DC voltages   v ¯ 1   and   v ¯ 2   are equal.
Assumption 3.
The inner current loop is significantly faster than the DC link voltage loop, which leads to   i f α β = i f α β .
The relationship between v ¯ s and the reference currents i f α β becomes as follows:
C d v ¯ s d t = 2 v ¯ s i ¯ f α v g α + i ¯ f β v g β
The second step in the outer control design is to obtain the dynamic model relating the variable v s to the control signal, which is in this case the power p d c . To do this, we replace the reference currents calculated by (22) in (34), hence obtaining:
C d v ¯ s d t = 2 v ¯ s p ¯ d c
By rearranging (36), one obtains:
C d v ¯ s 2 d t = 4 p ¯ d c
The voltage v ¯ s can be tuned to its desired reference value v s by controlling the squared voltage v ¯ s 2 to ( v s ) 2 . A simple PI controller [34] can be used for this purpose, as illustrated in Figure 7.
The corresponding closed-loop system transfer function H s is given by:
H s = v ¯ s 2 s v ¯ s 2 ( s ) = 4 k i C 1 + k p k i s s 2 + 4 k p C s + 4 k i C
where k p and k i are, respectively, the proportional and the integral gains of the voltage controller.
The characteristic equation of the system can be written as:
P s = s 2 + 2 ζ 1 ω d s + ω d 2
where ω d is the damped natural frequency, and ζ 1 refers to the damping factor corresponding to the voltage loop that is given by:
ζ 1 = k p 2 C k i   and   ω d = 4 k i C
Remark 1.
The proposed controller relies on a dual-loop structure combining an external PI regulator for the DC-bus and an internal flatness-based control law for current shaping. From an implementation standpoint, the computational burden remains comparable to that of a conventional PI-based scheme. In fact, the flatness-based internal loop only involves the real-time evaluation of simple algebraic expressions and first-order derivatives, as shown in the control law of (28). These derivatives are obtained using low-order filtering, which avoids the need for numerical differentiation or iterative algorithms. No matrix inversion, optimization routine, or multivariable solver is required. Consequently, the execution time of the entire dual-loop structure remains very close to that of a classical current PI regulator with a few harmonic compensators. This makes the proposed strategy fully compatible with real-time implementation on standard DSP platforms operating at sampling frequencies of 10–20 kHz.

4. Simulation-Based Control Validation

The proposed SAPF model is implemented in the MATLAB/Simulink R2024b environment and performs the numerical simulation. The results will be used to evaluate the effectiveness of the three-level NPC inverter and the proposed flatness-based controller in mitigating power quality issues and improving the overall system performance. The simulation parameters are summarized in Table 2 and Table 3. The controller parameters k 1 and k 2 were determined using the flatness-based control approach. A PI controller was carefully tuned to ensure stable and efficient regulation, while meeting the desired dynamic specifications such as settling time and overshoot.
To assess the performance of the system in cascade with its controller, the following conditions are taken into account:
  • Performance in the presence of DC bus voltage variation.
  • Performance analysis under load transition: from nonlinear to mixed nonlinear and linear R L , L L load.
  • Performance with system parameter variation.

4.1. Performance in the Presence of DC Bus Voltage Variation

The proposed controller is evaluated under a step change in the dc-bus voltage reference from 800 V to 900 V. Figure 8 illustrates the voltages v 1 and v 2 . Under ideal conditions, these voltages should remain balanced. However, due to the neutral-point’s fluctuations, a slight imbalance can be observed.
As shown in Figure 9, the control signal p d c varies according to the DC bus voltage changes, but its averaged value remains constant in steady-state operation. Tracking-wise, it is noticeable that v s   follows its reference v s   tightly and with a short time-response.
The load currents are shown in Figure 10. The waveforms of these currents are not sinusoidal, indicating the presence of harmonics and therefore a high level of harmonic distortion. Figure 11 shows the load current for phase a . The THD coefficient of the load currents before filtering is 29.20% (see Figure 12), confirming the high harmonic content.
It is worth noting that harmonic analysis was carried out using the FFT tool of the Powergui block under steady-state conditions. A fundamental frequency of 50 Hz and a time window of 80 ms (four cycles) were selected, yielding a frequency resolution of 12.5 Hz. Harmonic components at integer multiples of the fundamental frequency were obtained by extracting the corresponding FFT frequency bins, enabling reliable harmonic assessment and THD computation.
Figure 13 shows the filter currents, which contain the harmonic components to be compensated in order to achieve a sinusoidal grid voltage. The SAPF, controlled by the flatness-based strategy, injects opposing harmonic currents to cancel out distortions caused by nonlinear loads. As a result, the grid current waveform is corrected to a near-sinusoidal shape, improving power quality.
The tracking performance between the filter’s current and its reference is represented in Figure 14 for phase a . The results show that the suggested flatness-based controller is able to generate a current that perfectly tracks its reference, thereby confirming the efficiency of the control strategy.
The filtered source currents are illustrated in Figure 15. The source currents are nearly sinusoidal, indicating an improvement in power quality. To quantify this improvement, Figure 16 presents the corresponding Total Harmonic Distortion (THD), which has been successfully reduced to 2.26%.
As shown in Figure 17, the current is in phase with the voltage, indicating a near-unity power factor.
A comparative review of representative state-of-the-art controllers (a PI controller [35], Predictive control [36], and an Artificial Neural Network controller [37]) has been added in Table 4, using key metrics reported in the literature such as post-compensation grid-current THD, DC-bus voltage settling time, and implementation complexity. The results indicate that the proposed flatness-based strategy achieves THD and dynamic performance comparable to or better than these methods while requiring fewer terms, no predictive optimization, and no repetitive structures. Its explicitly derived control law also reduces computational burden and eliminates the need for high-order observers or extensive memory buffers. Overall, the method offers a favorable performance-complexity trade-off relative to existing approaches.

4.2. Performance Analysis Under Load Transition: From Nonlinear to Mixed Nonlinear and Linear Load

The system performance is evaluated during a transition from a standalone nonlinear load to a combined nonlinear and linear load at 0.2 s. Figure 18 shows that the DC bus voltage remains regulated at 800 V during the transition from a purely nonlinear load to a combined nonlinear and linear load. Despite the sudden change in load type, the controller maintains tight tracking of the voltage reference while ensuring stability. Moreover, the controller actively compensates for disturbances while preserving the DC-link voltage, with only minor deviations attributed to neutral-point fluctuations (as seen in Figure 18 for v 1 and v 2 voltages). Figure 19 shows the corresponding control signal p d c , which stays bounded regardless of the load change.
Figure 20 illustrates the load currents with a transition from a pure nonlinear to a combined load at 0.2 s. As can be seen in Figure 21, a visible sinusoidal fundamental component can be observed after the load transition but with a highly distorted waveform, which is typical of nonlinear loads. The THD has decreased from 29.20% to 18.50% (see Figure 22).
Figure 23 shows the compensation currents generated by the active power filter, ensuring total neutralization of both harmonic currents and reactive power.
After the linear load is added, the current waveforms change developing a new quadrature component to supply the required reactive power while maintaining harmonic cancelation. The current amplitude increases to accommodate both compensation needs, demonstrating the controller’s adaptive capability. The control strategy based on the flatness approach guarantees a sufficiently fast response (see Figure 24). Even if the reference signal has a wide bandwidth due to high harmonic content, the compensation current perfectly tracks its reference in order to attenuate harmonics and compensate for the reactive power demanded by the load.
Figure 25 illustrates the waveforms of the mains current after filtering, in the presence of a nonlinear load. The proposed controller offers ample dynamic performance, as evidenced by the fact that the resulting mains current has waveforms that are practically sinusoidal and in phase with the mains voltage. This clearly shows that the power factor correction is effective (see Figure 26).

4.3. Performance with System Parameter Variation

Controller robustness is assessed under NPC inverter parameter variations. The simulation investigates the system response to a 20% increase in C 1 at 0.2 s, followed by a return to the original value at 0.4 s. The other system parameters remain unchanged. Figure 27 shows that the DC bus voltage in the NPC inverter is regulated to 800 V. Despite the 20% variation in C 1 , the system maintains precise voltage regulation, with deviations limited to less than 0.5%. The system demonstrates fast recovery after each parameter change, proving its adaptability to sudden component variations.
The individual capacitor voltages v 1 and v 2 exhibit imbalance, caused by the neutral-point’s current fluctuations during the transition. This imbalance confirms the inherent challenge of neutral-point stability in NPC topologies, even when the total DC bus voltage remains perfectly regulated. The control signal demonstrates the controller’s ability to maintain system stability through parameter variations while preserving all performance characteristics (see Figure 28).
Figure 29, Figure 30, Figure 31, Figure 32, Figure 33 and Figure 34 illustrate that the proposed controller maintains the desired performance despite the operating changes introduced in this test. It is clear that the deterioration in control performance remains very limited despite the variations performed. In particular, the grid currents after filtering remain sinusoidal and in phase with the voltage. This proves the ability of the system to compensate for the produced harmonics and neutralize their effect on the grid side.

5. Conclusions

In summary, the paper proposes a novel approach for controlling a three-phase SAPF based on a three-level NPC inverter using a differential flatness-based nonlinear controller. The proposed strategy demonstrates that it can compensate harmonics and reactive currents. The source current THD is reduced to below 2.26%, which meets the limit of 5% set by international standards [38]. The controller effectively regulates the DC-link voltage to its desired reference. It has been formally demonstrated that the proposed solution achieves the control objectives. The simulation results show that the proposed control strategy is effective in enhancing power quality by reducing harmonics and reactive power, while maintaining proper DC-link voltage regulation.

Author Contributions

Conceptualization, O.M. and A.A.; Formal analysis, O.M. and A.A.; Investigation, O.M. and A.A.; Methodology, O.M., A.A., I.L., C.A. and J.W.; Software, O.M., A.A. and C.A.; Supervision, I.L.; Validation, O.M., A.A. and J.W.; Visualization, O.M. and A.A.; Writing—original draft, O.M.; Writing—review and editing, O.M., A.A., I.L., C.A. and J.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data supporting the findings of this study are available within the article. Further information is available from the corresponding authors upon reasonable request.

Acknowledgments

The authors would like to sincerely thank Meriem Aourir from the University of Hassan II Casablanca for their valuable support and guidance throughout this work.

Conflicts of Interest

The authors declare no conflicts of interest.

Acronyms

The following abbreviations are used in this manuscript:
APFActive Power Filter
NPCNeutral Point Clamped
SAPFShunt Active Power Filter
VSIVoltage Source Inverter
FCFlying Capacitor
MMCModular Multilevel Converter
PIDProportional Integral Derivative
PIProportional Integral
SVPWMSpace Vector Pulse Width Modulation
IGBTInsulated Gate Bipolar Transistors
KVLKirchhoff’s Voltage Law

References

  1. Islahuzzaman, I.S.; Sudrajat, M.I.; Moonen, N.; Popovic, J.; Leferink, F. The Significance of Cable and Nonlinear Loads to Losses, Voltage Drop, and Harmonics in Remote Off-Grid Systems. IEEE Lett. Electromagn. Compat. Pract. Appl. 2024, 6, 72–78. [Google Scholar] [CrossRef]
  2. Michalec, Ł.; Jasiński, M.; Sikorski, T.; Leonowicz, Z.; Jasiński, Ł.; Suresh, V. Impact of Harmonic Currents of Nonlinear Loads on Power Quality of a Low Voltage Network–Review and Case Study. Energies 2021, 14, 3665. [Google Scholar] [CrossRef]
  3. Adak, S. Harmonics Mitigation of Stand-Alone Photovoltaic System Using LC Passive Filter. J. Electr. Eng. Technol. 2021, 16, 2389–2396. [Google Scholar] [CrossRef]
  4. Das, S.R.; Ray, P.K.; Sahoo, A.K.; Ramasubbareddy, S.; Babu, T.S.; Kumar, N.M.; Elavarasan, R.M.; Mihet-Popa, L. A Comprehensive Survey on Different Control Strategies and Applications of Active Power Filters for Power Quality Improvement. Energies 2021, 14, 4589. [Google Scholar] [CrossRef]
  5. Abouloifa, A.; Giri, F.; Lachkar, I.; Chaoui, F.Z.; Kissaoui, M.; Abouelmahjoub, Y. Cascade Nonlinear Control of Shunt Active Power Filters with Average Performance Analysis. Control Eng. Pract. 2014, 26, 211–221. [Google Scholar] [CrossRef]
  6. Mikami, W.; Nagatake, K.; Ono, T. Neutral-Point-Clamped PWM Inverter. U.S. Patent No. US4443841A, 17 April 1984. [Google Scholar]
  7. Lopez, I.; Ceballos, S.; Pou, J.; Zaragoza, J.; Andreu, J.; Kortabarria, I.; Agelidis, V.G. Modulation Strategy for Multiphase Neutral-Point-Clamped Converters. IEEE Trans. Power Electron. 2015, 31, 928–941. [Google Scholar] [CrossRef]
  8. Feng, J. Study of Control Methods for Three-Level, Five-Level and Multilevel Inverters. Sci. Technol. Eng. Chem. Environ. Prot. 2025, 1, 5. [Google Scholar] [CrossRef]
  9. Baker, R.H. Bridge Converter Circuit. U.S. Patent No. 4270163, 26 May 1981. [Google Scholar]
  10. Nabae, A.; Takahashi, I.; Akagi, H. A New Neutral-Point-Clamped PWM Inverter. IEEE Trans. Ind. Appl. 1981, IA-17, 518–523. [Google Scholar] [CrossRef]
  11. Rodriguez, J.; Franquelo, L.G.; Kouro, S.; Leon, J.I.; Portillo, R.C.; Prats, M.A.M.; Perez, M.A. Multilevel Converters: An Enabling Technology for High-Power Applications. Proc. IEEE 2009, 97, 1786–1817. [Google Scholar] [CrossRef]
  12. Zhang, G.; Shao, Z.; Chen, L. Deadbeat Control Strategy of Shunt Active Power Filter Based on Repetitive Predictor Theory. Trans. Chin. Soc. Agric. Eng. 2012, 28, 172–178. [Google Scholar]
  13. Fliess, M.; Lévine, J.; Martin, P.; Rouchon, P. Flatness and Defect of Non-Linear Systems: Introductory Theory and Examples. Int. J. Control 1995, 61, 1327–1361. [Google Scholar] [CrossRef]
  14. Astrom, K.J. PID Controllers: Theory, Design, and Tuning; The International Society of Measurement and Control: London, UK, 1995. [Google Scholar]
  15. Uicich, S.; Gauthier, J.-Y.; Allard, B.; Lin-Shi, X. Flatness-Based Control for Transient Current Suppression in a Dual Active Bridge Converter. In Proceedings of the 2024 IEEE International Conference on Industrial Technology (ICIT), Bristol, UK, 25–27 March 2024; IEEE: New York, NY, USA, 2024; pp. 1–6. [Google Scholar]
  16. Osmanović, A.; Mašić, Š.; Velagić, J. Decoupled Power Control of SEIG-WECS System Using Nonlinear Flatness-Based Controller. In Proceedings of the 2019 IEEE International Electric Machines & Drives Conference (IEMDC), San Diego, CA, USA, 12–15 May 2019; IEEE: New York, NY, USA, 2019; pp. 377–383. [Google Scholar]
  17. Nandhini, E.; Sivaprakasam, A. A Review of Various Control Strategies Based on Space Vector Pulse Width Modulation for the Voltage Source Inverter. IETE J. Res. 2022, 68, 3187–3201. [Google Scholar] [CrossRef]
  18. Subbulakshmy, R.; Palanisamy, R. SVPWM Control Strategy for Novel Interleaved High Gain DC Converter Fed 3-Level NPC Inverter for Renewable Energy Applications. ISA Trans. 2023, 140, 426–437. [Google Scholar] [CrossRef]
  19. Zouari, W.; El Badsi, I.N.; El Badsi, B.; Masmoudi, A. Three-Level NPC Inverter-Fed IM Drives under PTC, Minimizing the Involved Voltage Vectors and Balancing the DC Bus Capacitor Voltages. Sustainability 2022, 14, 13522. [Google Scholar] [CrossRef]
  20. Ramasamy, P.; Krishnasamy, V. SVPWM Control Strategy for a Three Phase Five Level Dual Inverter Fed Open-End Winding Induction Motor. ISA Trans. 2020, 102, 105–116. [Google Scholar] [CrossRef] [PubMed]
  21. Das, R.M.; Nandakumar, S.; SivaPrakash, K.; Bharatiraja, C. An Improved Random SVPWM for Zero Voltage Switching Three Phase Inverter. Mater. Today Proc. 2022, 65, 285–292. [Google Scholar]
  22. Yousef, A.Y. Space Vector Pulse Width Modulation Technique. Int. J. Emerg. Technol. Comput. Sci. Electron. 2015, 15, 159–165. [Google Scholar]
  23. Le, H.-P.N.; Pham, K.D.; Nguyen, N. Analyses, Modeling, and SVPWM Control of a Three-Level T-NPC Inverter to Reduce Common-Mode Voltage Under Open-Circuit Fault in a Neutral-Point Switch. IEEE Access 2024, 12, 104708–104727. [Google Scholar] [CrossRef]
  24. Shruthi, M.; Ezhilarasan, G.; SM, C.S. Advanced SVPWM Technique for Multilevel Inverter Systems. Eng. Technol. Appl. Sci. Res. 2025, 15, 23923–23929. [Google Scholar] [CrossRef]
  25. Palanisamy, R. Mitigation of Capacitor Voltage Unbalance and Common Mode Voltage for 3-Phase 5-Level NPC Inverter Using Hexagonal SVPWM. e-Prime-Adv. Electr. Eng. Electron. Energy 2024, 9, 100639. [Google Scholar] [CrossRef]
  26. Zhao, M.; Ge, Q.; Zhu, J.; Wang, K.; Zhang, B.; Zhao, L. Improved Synchronized SVPWM Strategy for High-Power Three-Level Active Neutral Point Clamped Traction Inverter. IEEE Trans. Power Electron. 2024, 40, 3189–3209. [Google Scholar] [CrossRef]
  27. Afonso, J.L.; Freitas, M.S.; Martins, J.S. Pq Theory Power Components Calculations. In Proceedings of the 2003 IEEE International Symposium on Industrial Electronics (Cat. No. 03TH8692), Rio de Janeiro, Brazil, 9–11 June 2003; IEEE: New York, NY, USA, 2003; Volume 1, pp. 385–390. [Google Scholar]
  28. Czarnecki, L.S. Instantaneous Reactive Power Pq Theory and Power Properties of Three-Phase Systems. IEEE Trans. Power Deliv. 2005, 21, 362–367. [Google Scholar] [CrossRef]
  29. Shahin, A.; Abulanwar, S.; Ghanem, A.; Rizk, M.E.; Deng, F.; Pierfederici, S.; Ismael, I. Sensorless Robust Flatness-Based Control with Nonlinear Observer for Non-Ideal Parallel DC–AC Inverters. IEEE Access 2022, 10, 53940–53953. [Google Scholar] [CrossRef]
  30. Aourir, M.; Abouloifa, A.; Aouadi, C.; Hamdoun, A.; Lachkar, I. Flatness based control of single phase multicellular shunt active power filter for power quality improvement. In Proceedings of the 2018 Renewable Energies, Power Systems & Green Inclusive Economy (REPS-GIE), Casablanca, Morocco, 23–24 April 2018; IEEE: New York, NY, USA, 2018; pp. 1–6. [Google Scholar]
  31. Li, Z.-Y.; Liu, Y.; Zhou, B. Differential Flatness of Single-Input Commensurate Delay Systems with Applications to Trajectory Planning, Tracking, and Transformation to Fully Actuated Systems. IEEE Trans. Circuits Syst. I Regul. Pap. 2024, 71, 3799–3809. [Google Scholar] [CrossRef]
  32. Hekss, Z.; Abouloifa, A.; Echalih, S.; Lachkar, I.; El Aroudi, A.; Giri, F. Flatness Based Control of Single-Phase Grid Connected Photovoltaic System Associated with a Shunt Active Power Filter. IFAC-PapersOnLine 2022, 55, 43–48. [Google Scholar] [CrossRef]
  33. Ma, S.F.; Zhao, A.; Sun, J.-Q. Identification of Linear Flat Outputs Using Neural Networks—Examples of Two-Degree-of-Freedom Underactuated Mechanical Systems. Mech. Syst. Signal Process. 2024, 216, 111471. [Google Scholar] [CrossRef]
  34. Kula, K.S. Tuning a PI/PID Controller with Direct Synthesis to Obtain a Non-Oscillatory Response of Time-Delayed Systems. Appl. Sci. 2024, 14, 5468. [Google Scholar] [CrossRef]
  35. Monroy-Morales, J.L.; Campos-Gaona, D.; Hernández-Ángeles, M.; Peña-Alzola, R.; Guardado-Zavala, J.L. An Active Power Filter Based on a Three-Level Inverter and 3D-SVPWM for Selective Harmonic and Reactive Compensation. Energies 2017, 10, 297. [Google Scholar] [CrossRef]
  36. Gao, H.; Zhang, W.; Ren, M.; Liu, X. Three-Level Active Power Filter Based on Model Predictive Control. Electronics 2022, 11, 1291. [Google Scholar] [CrossRef]
  37. Chennai, S.; Benchouia, M.T. Three-Phase Three-Level (NPC) Shunt Active Power Filter Performances Based on PWM and ANN’s Controllers for Harmonic Current Compensation. Int. J. Electr. Eng. Inform. 2014, 6, 213–234. [Google Scholar]
  38. Barua, A.; Salehin, S.; Alam, S.U.; Rashid, M.A.; Bhowmik, S.; Paul, S.; Chowdhury, P.; Rahman, M.S. Reduction of Total Harmonic Distortion (THD) in Source Current Using a Shunt Active Power Filter with P-Q Theory and PI Controller. In Proceedings of the 2024 International Conference on Innovations in Science, Engineering and Technology (ICISET), Chittagong, Bangladesh, 26–27 October 2024; pp. 1–6. [Google Scholar]
Figure 1. Three-phase SAPF system: (a) Electrical circuit diagram (b) Equivalent representation.
Figure 1. Three-phase SAPF system: (a) Electrical circuit diagram (b) Equivalent representation.
Designs 10 00016 g001
Figure 2. The space vector diagram for the three-level NPC inverter.
Figure 2. The space vector diagram for the three-level NPC inverter.
Designs 10 00016 g002
Figure 3. The regions in Sector 1.
Figure 3. The regions in Sector 1.
Designs 10 00016 g003
Figure 4. The dwell times for Region 2.
Figure 4. The dwell times for Region 2.
Designs 10 00016 g004
Figure 5. Block diagram of the designed nonlinear control system.
Figure 5. Block diagram of the designed nonlinear control system.
Designs 10 00016 g005
Figure 6. Block diagrams illustrate reference current i f a b c calculation using PQ theory along with the DC-link PI voltage regulator.
Figure 6. Block diagrams illustrate reference current i f a b c calculation using PQ theory along with the DC-link PI voltage regulator.
Designs 10 00016 g006
Figure 7. The closed-loop system using a simple PI controller for regulating the squared voltage v ¯ s 2 to the squared voltage reference ( v s ) 2 .
Figure 7. The closed-loop system using a simple PI controller for regulating the squared voltage v ¯ s 2 to the squared voltage reference ( v s ) 2 .
Designs 10 00016 g007
Figure 8. The voltages v 1 , v 2 , v s , and the reference v s .
Figure 8. The voltages v 1 , v 2 , v s , and the reference v s .
Designs 10 00016 g008
Figure 9. The control signal p d c .
Figure 9. The control signal p d c .
Designs 10 00016 g009
Figure 10. The load currents.
Figure 10. The load currents.
Designs 10 00016 g010
Figure 11. The load current for phase a .
Figure 11. The load current for phase a .
Designs 10 00016 g011
Figure 12. Harmonic content of the load current.
Figure 12. Harmonic content of the load current.
Designs 10 00016 g012
Figure 13. The filter currents.
Figure 13. The filter currents.
Designs 10 00016 g013
Figure 14. Compensation current i f a and its reference i f a for phase a .
Figure 14. Compensation current i f a and its reference i f a for phase a .
Designs 10 00016 g014
Figure 15. The grid currents.
Figure 15. The grid currents.
Designs 10 00016 g015
Figure 16. Harmonic content of the grid current.
Figure 16. Harmonic content of the grid current.
Designs 10 00016 g016
Figure 17. The grid voltage and grid current showing that the power factor is close to unity.
Figure 17. The grid voltage and grid current showing that the power factor is close to unity.
Designs 10 00016 g017
Figure 18. The voltages v 1 , v 2 , v s , and v s .
Figure 18. The voltages v 1 , v 2 , v s , and v s .
Designs 10 00016 g018
Figure 19. The control signal p d c .
Figure 19. The control signal p d c .
Designs 10 00016 g019
Figure 20. The load currents.
Figure 20. The load currents.
Designs 10 00016 g020
Figure 21. The load current for phase a .
Figure 21. The load current for phase a .
Designs 10 00016 g021
Figure 22. Harmonic content of the load current.
Figure 22. Harmonic content of the load current.
Designs 10 00016 g022
Figure 23. The filter currents.
Figure 23. The filter currents.
Designs 10 00016 g023
Figure 24. Compensation current i f a and its reference i f a for phase a .
Figure 24. Compensation current i f a and its reference i f a for phase a .
Designs 10 00016 g024
Figure 25. The grid currents.
Figure 25. The grid currents.
Designs 10 00016 g025
Figure 26. Verification of Power Factor Correction.
Figure 26. Verification of Power Factor Correction.
Designs 10 00016 g026
Figure 27. The voltages v 1 , v 2 , v s and v s .
Figure 27. The voltages v 1 , v 2 , v s and v s .
Designs 10 00016 g027
Figure 28. The control signal p d c .
Figure 28. The control signal p d c .
Designs 10 00016 g028
Figure 29. The load currents.
Figure 29. The load currents.
Designs 10 00016 g029
Figure 30. The load current for phase a .
Figure 30. The load current for phase a .
Designs 10 00016 g030
Figure 31. The filter currents.
Figure 31. The filter currents.
Designs 10 00016 g031
Figure 32. Compensation current i f a and its reference i f a for phase a .
Figure 32. Compensation current i f a and its reference i f a for phase a .
Designs 10 00016 g032
Figure 33. The grid currents.
Figure 33. The grid currents.
Designs 10 00016 g033
Figure 34. The grid voltage and current showing unitary power factor.
Figure 34. The grid voltage and current showing unitary power factor.
Designs 10 00016 g034
Table 1. States of µ j .
Table 1. States of µ j .
S 1 j S 2 j S 3 j S 4 j µ j v j
11001 v 1
011000
0011−1 v 2
Table 2. System parameters.
Table 2. System parameters.
ParametersValues
RMS value of the grid voltage and frequency220 V, 50 Hz
Reference DC voltage v s 800 V
Impedance at the input of the polluting load L c 0.1 mH
Filter impedance L f , r f 2   m H ,   8   m
Diode bridge L , R 20   m H ,   20  
Capacitors C ,   C L 1   m F ,   1   µ F
Table 3. Control parameters.
Table 3. Control parameters.
ParametersValues
Inner loop ζ = 1 ,   ω n = 9000   π   rad / s ,   k 1 = 7.9 × 10 8 ,   k 2 = 5.6 ×   10 4
Outer loop ζ = 0.5 ,     ω d = 100 π rad/s
Table 4. Benchmarking of the proposed flatness-based control against existing approaches.
Table 4. Benchmarking of the proposed flatness-based control against existing approaches.
Flatness
Control
PI
Controller
Predictive
Control
Artificial Neural Networks Controller
THD3.47%4.2%4.51%4.32%
Settling time for v d c 0.15 sNot providedNot provided0.2 s
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Mikram, O.; Abouloifa, A.; Lachkar, I.; Aouadi, C.; Wang, J. Design and Performance Evaluation of a Flatness-Based Controller for a Three-Phase Three-Level NPC Shunt Active Power Filter. Designs 2026, 10, 16. https://doi.org/10.3390/designs10010016

AMA Style

Mikram O, Abouloifa A, Lachkar I, Aouadi C, Wang J. Design and Performance Evaluation of a Flatness-Based Controller for a Three-Phase Three-Level NPC Shunt Active Power Filter. Designs. 2026; 10(1):16. https://doi.org/10.3390/designs10010016

Chicago/Turabian Style

Mikram, Oumaima, Abdelmajid Abouloifa, Ibtissam Lachkar, Chaouqi Aouadi, and Juan Wang. 2026. "Design and Performance Evaluation of a Flatness-Based Controller for a Three-Phase Three-Level NPC Shunt Active Power Filter" Designs 10, no. 1: 16. https://doi.org/10.3390/designs10010016

APA Style

Mikram, O., Abouloifa, A., Lachkar, I., Aouadi, C., & Wang, J. (2026). Design and Performance Evaluation of a Flatness-Based Controller for a Three-Phase Three-Level NPC Shunt Active Power Filter. Designs, 10(1), 16. https://doi.org/10.3390/designs10010016

Article Metrics

Back to TopTop