1. Introduction
When power converters are utilised to supply electrical energy to islanded loads, in microgrids or distributed generation applications, typically an
filter is connected at the converter outputs [
1,
2,
3]. For instance, converters augmented by
filters are used in applications such as uninterruptible power supplies (UPS) [
4], energy storage systems [
5], motor drives [
6], microgrids [
7], etc.
When SISO control tools are utilised, to design the control systems of power converters equipped with
filters, typically two cascaded PI or PR control loops are required: an outer voltage control loop, and an inner current control loop [
3,
8]. The voltage loop computes the reference for the inner current loop, and the current loop computes the desired converter voltage to be synthesized by a pulse-width modulation (PWM) scheme. However, as discussed in [
7], the cascaded interconnection of the voltage and current control loops has some drawbacks. First, because SISO design tools are used, the inner and outer loops are separately designed with different bandwidths to avoid cross-couplings between the dynamics of the voltage and current control loops (usually, the outer loop is one order of magnitude slower than the inner loop). This produces a relatively slower transient response. Second, the controllers must be carefully tuned because their parameters affect the system’s stability. To overcome the drawbacks of cascaded linear controllers, model predictive control schemes, which are MIMO systems have been recently proposed.
Model Predictive Control (MPC) has been garnering growing interest in the realm of power electronics converter applications. Most common applications include grid-connected converters, inverters with RL load, inverters with output LC filter, and high-performance drives [
9]. MPC has several advantages such as simplicity for the inclusion of nonlinearities, simple treatment of constraints, the multivariable case can be easily considered, dead times can be compensated, etc [
10]. On the other hand, the disadvantage of MPC is its relatively high computational load, particularly in power converter topologies where a large number of vectors are available. However, the exponential development in the processing power of microprocessors (such as digital signal processors and field-programmable gate arrays) has allowed the implementation of MPC algorithms in real-time platforms [
11].
A wide variety of MPC algorithms for power electronics converters exist. An MPC algorithm can be considered, in general terms, as any algorithm that uses a model of the system to predict its future behaviour and select the most appropriate control action based on the solution to an optimal criterion [
12]. The optimal criterion is evaluated in a cost function and can be, for example, tracking of the system state variables, minimising common-mode voltage, or reducing the converter switching frequency [
12,
13]. After the optimal criterion has been reached, and consequently the best possible solution to the optimisation problem has been obtained, the algorithm sends it to the converter to be synthesised.
MPC algorithms are classified according to the nature of the optimisation variable in the control problem. In broad terms, these algorithms for power electronics are classified as Direct MPC or Indirect MPC methods [
13]. In direct MPC methods, the optimisation variable is an integer-valued vector representing the state of the converter switching devices. Conversely, in indirect MPC the optimisation variable is a real-valued vector representing the fundamental component of the converter output voltage or duty cycles.
Direct MPC methods are subdivided into three categories: optimal switching vector MPC (OSV-MPC), MPC with hysteresis bounds, and MPC with an implicit modulator. OSV-MPC, commonly named as Finite Control Set MPC (FCS-MPC) in the literature, was firstly proposed to control the output current of a two-level inverter connected to an RL load [
14]. Since then, it has been applied to many converter topologies [
9]. In this strategy, the converter switches are directly computed and sent to the converter. Thus, allowing direct manipulation of the controlled variables. The advantages of OSV-MPC are an intuitive design procedure, straightforward implementation and fast transient response [
13]. However, they come at the cost of high computational complexity, particularly for multilevel power converters, and variable switching frequency due to the absence of a modulator [
15].
Direct MPC methods with implicit modulator have been proposed to overcome the issue of variable switching frequency introduced by OSV-MPC while maintaining its advantages [
16,
17]. These strategies attempt to emulate the behaviour of pulse-width modulation techniques. In particular, Optimal Switching Sequence MPC (OSS-MPC) and Modulated MPC (M
2PC) introduce the concept of variable switching time instants [
13]. According to the concept of variable switching time instants, the position of the converter switches can change at any moment during a sampling interval. Then, the strategies compute a sequence of switch positions and their corresponding duty cycles to be applied during the next sampling interval. Thus, a fixed switching frequency is achieved resulting in a reduction of harmonic distortion [
13]. However, M
2PC is prone to suboptimality because the optimisation problem is solved in two stages: the first stage is to find the optimal switch positions and the second stage is to compute the duty cycles [
18].
OSS-MPC avoid suboptimal solutions by computing the optimal sequence of switch positions and their corresponding duty cycles in one stage. The strategy was first introduced for power control of a grid-connected two-level inverter [
17]. Then, the strategy was modified to be used in other converter topologies such as a three-level neutral-point-clamped (3L-NPC) inverter and vienna rectifier [
19,
20,
21,
22]. In [
23], OSS-MPC was used for voltage control of an LC-filtered two-level inverter achieving low output voltage ripple and reduced harmonic content compared against other MPC methods (such as OSV-MPC). In this paper, the OSS-MPC presented in [
22] is extended to three-level neutral-point-clamped (3L-NPC) inverters with output LC filter in standalone operation (such as UPS). The strategy uses a prediction model based on the improved Euler method to compute the future value of the load output voltage and inductor filter current. The predicted values are compared against the desired reference values in the cost function of an optimisation problem. The cost function penalizes the deviation between the measured values and the reference values, and also the control effort of the converter. The optimisation problem is solved offline to compute an optimal switching sequence to be applied by the converter. The optimal switching sequence is then transformed into a three-phase reference signal which is used in an optimisation problem to compute an optimal common-mode voltage to balance the DC-link capacitors of the converter. The common-mode voltage is then added to the three-phase reference signal and the resulting optimal three-phase reference is sent to an In-Phase Disposition PWM scheme to generate the pulses of the switching devices.
2. The 3L-NPC Inverter
The 3L-NPC was the first multilevel converter topology, proposed by the group of Akagi in [
24]. It was introduced around 1980 to reduce the pulsating torque and harmonic losses on AC drives; thus, improving the efficiency and reducing the cost of the system. Nowadays, this converter topology is the standard for medium and high-voltage applications [
25,
26]. In the mining industry, for example, 3L-NPC converters are used in variable frequency drives (VFD) for long belt-conveyor systems carrying ore [
27].
As shown in the circuit diagram in
Figure 1(a), the 3L-NPC converter is composed of four switches and two clamped diodes per leg, producing a total of 27 three-phase switching states
for the whole converter, where
. As depicted in
Figure 1(b), these switching states produce 19 non-redundant and 8 redundant switching vectors (SVs)
in the
frame, where
, and
is the amplitude invariant
-to-
transformation [
28].
According to the circuit diagram depicted in
Figure 1(a), the inverter voltages
are given by
where
, and
is the NP-voltage. Using the transformation
, the inverter voltages (
1) in the stationary
frame can be expressed as:
On the other hand, for a three-phase load with a floating neutral, the NP-voltage evolves as a function of the NP-current
according to:
Therefore, for a given output current
, as shown in (
3), only small- and medium-size SVs,
and
in fig:NPC1](b) respectively, can affect the NP-voltage [
29]. However, to balance the NP voltage, small SVs play a significant role because the redundancy of each SV drives an NP-current of the same amplitude but in the opposite direction. This tendency impacts
but not
when the capacitors are balanced with a negligible voltage ripple, i.e.,
.
To synthesize a desired inverter output voltage, the three nearest SVs are typically employed in carrier-based and space vector PWM techniques [
29,
30]. Due to the presence of redundancies, several switching sequences (or switching patterns) can synthesize the desired output voltage. Therefore, the generation of switching sequences can be used for several purposes, such as to reduce the switching frequency and to minimize the NP-voltage ripple [
29].
Figure 1.
3L-NPC converter: (a) topology; (b) space of switching vectors; (c) 7S-SS for the region .
Figure 1.
3L-NPC converter: (a) topology; (b) space of switching vectors; (c) 7S-SS for the region .
Based on the above analysis, the seven-segment switching sequence (7S-SS) [
29] will be adopted in this work to implement the OSS-MPC strategy for voltage and current control. This switching pattern consists of four SVs, which are arranged in such a way that the transition between two adjacent switching states demands only one switching action. Additionally, each switching period is split into two sub-cycles of duration
, in which the disposition of the second sub-cycle is a reversal of the arrangement of the first [
29], as shown in the example in fig:NPC1](c). Furthermore, the first sub-cycle starts with an N-type small-size SV (
) and ends with the P-type redundancy (
). Therefore, each 7S-SS candidate can be defined accordingly as:
where
is the time in which the
ith switching vector is synthesized by the converter, as depicted in
Figure 1(c).
Since the twelve internal regions [highlighted in grey in fig:NPC1](b)] have two N-type small-size SVs, each of them is further partitioned in two subregions to reduce the NP-voltage ripple [
29]. Thus, to determine which dominant N-type small-size SV should be utilised to assemble the desired switching sequence, the space of SVs is divided in 36 regions as shown in fig:NPC1](b). Then, according to the OSS-MPC principles, a 7S-SS candidate is denoted as
, where
.
6. Optimal Solution
In the previous section, the relaxed solution to the optimisation problem was calculated. The relaxed duty cycles vector
is the local solution for each region
of the control hexagon
. The relaxed solution computed with (
Section 5.1.1) fulfills the equality constraint
. Thus, all regions can be mapped onto
in the
-plane. However, only one region fulfils the non-negativity constraint [
20]. The non-negativity constraint can then be considered in the solution with a simple methodology (as reported in [
20,
22]). The methodology introduced therein also reduces the computational burden avoiding the search over all 24 regions of the control region
to only four. The methodology will be explained in this section.
Firstly, considering the
-plane shown in
Figure 4(a) with the Space of Vectors of the 3L-NPC is divided into 12 regions. The algorithm seeks the region where
is located, and then the three sectors in that region are evaluated in the control algorithm. Given that
is the desired solution of the optimisation problem, its angle is used to find the optimal region in the plane. The optimal sector
is obtained from the following equation:
When the optimal sector is calculated, the duty cycles of the switching sequences contained in it are evaluated. The sector whose duty cycles comply with the non-negativity constraint is the optimal sector, and thus, the optimal switching sequence is found.
Figure 4.
Control region of the 3L-NPC. (a) Hexagon divided into 12 sectors to reduce the computational burden of the OSS-MPC algorithm, and (b) close-up look into sectors -.
Figure 4.
Control region of the 3L-NPC. (a) Hexagon divided into 12 sectors to reduce the computational burden of the OSS-MPC algorithm, and (b) close-up look into sectors -.
The conventional enumeration algorithm can be reduced to only 3 regions after the sector has been identified. Each sector has three candidate switching sequences, but only one of them fulfills the non-negativity constraint. Thus, the optimal pair
is found evaluating the non-negativity condition over the duty cycles vector of each candidate region. However, if
falls outside the control region
(e.g., see
in
Figure 4(b)) then none of the candidate switching sequences fulfil the non-negativity constraint.
The aforementioned case occurs during a transient operation. The candidate switching sequence is then reduced to one and is built by the medium and large switching vectors belonging to the only outer region that intersects the optimal sector. The case is further analyzed in the next subsection.
6.1. Handling the negative duty cycles: the overmodulation stage
6.1.1. Relaxed optimisation problem
The unconstrained average switching vector goes outside the hexagon, thus the duty cycle for the small switching vector becomes negative. Defining
, the optimisation variable becomes
Consider the equality constraint
Notice that one of the two optimisation variables is dependent. Thus, if we set
to be dependent of
, we can find an auxiliary vector to reduce the equality-constrained optimisation problem into an unconstrained optimisation problem
Then,
and
. The cost function is
6.1.2. Solution of the relaxed optimisation problem
The unconstrained optimisation problem is solved by setting to zero the derivative of the cost function with respect to the optimisation variable
Solving it for
yields:
The matrix
corresponds to a scalar multiplied by the identity matrix. Bearing on mind that
, the optimal duty cycle
is
Notice that the denominator of
is the length between a large and medium vector in the hexagon frontier (see
Figure 4(b)), thus:
Then, the optimal solution for the overmodulation stage is:
8. Hardware-in-the-Loop (HIL) Results
In this section, Hardware-in-the-Loop (HIL) results are shown to validate the proposed controller. The 3L-NPC converter, LC filter and loads are emulated using PLECS-RT box 1 HIL platforms with a time-step of 5
s. The control system is separately implemented using a dSPACE MicroLabBox platform. This dSpace controller is equipped with a Freescale QorIQ P5020 dual-core 2 GHz processor, for number crunching, and a Kintex-7 XC7K325-T FPGA. The FPGA handles the AD conversion, performs an In-Phase Disposition PWM strategy and implements a dead time of 1
s for each switching device; the HIL system is shown in
Figure 5(a). The processor computes the Clark transform of the measured three-phase variables, executes the optimisation algorithm, and computes the appropriate three-phase reference signals for the modulator. The loads considered for the study are a three-phase resistive load bank and a nonlinear load implemented using a three-phase diode rectifier with a capacitor and resistor connected in parallel at the DC side, as shown in
Figure 5(b). The parameters of the system are shown in
Table 1 and are similar to those used in a previous work (see [
23]).
The performance of the controllers is evaluated using the following goodness factors: RMS error (RMSE), percentage of voltage error (E
v) and total harmonic distortion (THD). The percentage of error is defined as follows:
where
is the set of indices of the measurements vector, and
is the total number of elements in the vector.
is the period of the fundamental frequency, and
is the period of the sampling frequency. Whenever the desired reference amplitude is unknown, the root-mean-square error (RMSE) will be used. The RMS error is defined as follows:
A one-step delay compensation is carried out to compensate for the computational delay introduced by the digital platform. The state vector
is computed using (
20) with the values measured at the
instant, and the switching sequence applied during the previous switching interval. The voltage reference
is computed shifting the phase of the reference signal one step ahead. The load output current
is estimated using the Lagrange extrapolation technique. The Lagrange extrapolation technique uses the actual and past measurements of the signal to estimate its future value. The load output current
is computed as follows [
37]:
The estimated load output current has an RMS error of 0.0603 [A] in the
-component, and 0.0640 [A] in the
-component for the worst-case scenario (nonlinear load). The estimated and measured load output current are shown in
Figure 6. As shown in this figure, the estimated current tracks relatively well the measured current.
In
Figure 7(a), the output voltages when the system operates without load are shown. The reference voltage has an amplitude of 300 [V] with a frequency of 50[Hz]. For this condition, the load output voltages have a voltage error of 2.04% and a THD of 1.74%. Then, a three-phase resistive load is connected as in
Figure 7(d). In this condition, the voltage error is 2.05% and the THD is 1.03%. When a nonlinear load is connected, as in
Figure 7(g), the voltage error is 2.83%. The harmonic spectrum for the load output voltage and load output current are shown in
Figure 8(a)-(b). The voltage THD in this case is 2.73% with the presence of 5th and 7th harmonics, which are produced by the bridge rectifier. In
Figure 7(b)-(h) the load output current is shown for the three aforementioned cases. Finally, in
Figure 7(c)-(i), the DC-link capacitor voltages are shown. The control strategy is capable of maintaining the DC-link voltages balanced and well regulated, for all operating conditions with very small oscillations.
The transient operation of the controlled system is studied in
Figure 9 considering changes in the reference voltage amplitude. The variables are presented in the synchronous reference frame to verify the settling time of the load output voltage.
The settling time is computed as the time required by the output voltage to reach and stay within 5% of the desired voltage. In
Figure 9(a) the reference voltage receives a step variation from 300 [V] to 100 [V] at t = 0.2 [s]. The voltage error amounts to 5.98% under steady-state conditions. The rise in voltage error results from the reduction in the amplitude of the reference voltage. In
Figure 9(b), the reference voltage varies from 100 [V] to 300 [V] at t = 0.2 [s]. In this case, the load output voltage manages to stay within the band of 5% around the desired voltage. Thus, the settling time is 1.03 [ms] approximately.
Notice that a relatively low steady-state error is presented in the HIL results shown in
Figure 9 a and
b. This small steady-state error is produced because there is not an integrator in the MPC algorithm [
38,
39]. If steady state error is a must, then the state space matrix
[see (
7)] must be augmented with additional states to represent the integrator [
38]; however, this topic is considered outside the scope of this work.
Figure 9.
Transient operation of the system for reference voltage step. (a) voltage step from 300 [V] to 100 [V], (b) voltage step from 100 [V] to 300 [V].
Figure 9.
Transient operation of the system for reference voltage step. (a) voltage step from 300 [V] to 100 [V], (b) voltage step from 100 [V] to 300 [V].
Figure 10 shows the operation of the system for a load step. A dip occurs in the load output voltage, as shown in
Figure 10(a), and takes 1 [ms] approximately to recover. Notice that there is a sudden increase in the inductor reference current to 10 A approximately, and the current features a fast dynamic response to the step change.
The cost function of (
30) has two terms: the first term penalizes the deviation of the system states from a reference vector and the second term penalizes the control effort of the converter. The control effort is penalized in the cost function by the deviation between the optimisation variable
and the steady-state control action
. The weight of this deviation on the optimisation problem is set by the parameter
. Increasing
will lead the converter’s response to move closer to open-loop operation since
depends only on the load reference voltage and load output current. The system’s performance with a logarithmic variation of the parameter
is shown in
Figure 11. The results are obtained considering a three-phase resistive load at the LC filter terminals. The best trade-off in terms of voltage error between open-loop and closed-loop operation of the converter is achieved when
, as shown in
Figure 11(a). When
is increased, the response of the system tends toward
which does not penalize the voltage error. Thus, the voltage error increases.
As shown in
Figure 11(b), the voltage THD presents slight variations around 1%, as shown in
Figure 11(b). The system’s transient response is also dependent on the value of
. A trade-off between settling time and overshoot must be reached, as shown in
Figure 12. Increasing
up to 100 will reduce the settling time of the system but increase the voltage overshoot. However, for
, the system response will present a damped sinusoidal oscillation which increases the settling time.
Figure 11.
System performance over variation of .
Figure 11.
System performance over variation of .
Figure 12.
Transient operation of the system for different values of .
Figure 12.
Transient operation of the system for different values of .
Author Contributions
Conceptualization, Felipe Herrera, Andrés Mora, Roberto Cárdenas and Jose Rodriguez; Formal analysis, Felipe Herrera, Andrés Mora, Roberto Cárdenas, Matías Díaz and Marco Rivera; Funding acquisition, Roberto Cárdenas, Matías Díaz and Jose Rodriguez; Investigation, Felipe Herrera, Jose Rodriguez and Marco Rivera; Methodology, Andrés Mora and Roberto Cárdenas; Project administration, Roberto Cárdenas; Resources, Matías Díaz; Software, Felipe Herrera, Matías Díaz and Marco Rivera; Supervision, Andrés Mora and Roberto Cárdenas; Validation, Felipe Herrera, Andrés Mora and Roberto Cárdenas; Writing – original draft, Felipe Herrera and Andrés Mora; Writing – review & editing, Andrés Mora, Roberto Cárdenas, Matías Díaz, Jose Rodriguez and Marco Rivera. All authors have read and agreed to the published version of the manuscript.