A New Modulated Finite Control Set-Model Predictive Control of Quasi-Z-Source Inverter for PMSM Drives

: In this paper, a new modulated ﬁnite control set-model predictive control (FCS-MPC) methodology is proposed for a quasi-Z-source inverter (qZSI). The application of the qZSI in this paper is to drive the permanent magnet synchronous machine (PMSM). The proposed methodology calculates the optimal duration time (ODT) for the candidate vector from the switching patterns of the inverter after it is selected from the FCS-MPC algorithm. The control objective of the FCS-MPC are the three-phase currents of PMSM, when the motor speed is below or equal to the base speed. While at a speed beyond the based speed, the inductor current and capacitor voltage of the qZS network are added as control objectives. For each candidate optimal vector, the optimal time, which is a part of the sampling interval, is determined based on minimizing the ripples of the control objectives using a quadratic cost function. Then, the optimal vector is applied only to the inverter switches during the calculated ODT at the start of the sampling interval, while the zero vector is applied during the remaining part of the sampling interval. To reduce the calculation burden, the zero-state is excluded from the possible states of the inverter, and the sub-cost function deﬁnition is used for the inductor current regulation. The proposed modulated FCS-MPC is compared with the unmodulated FCS-MPC at the same parameters to handle a fair comparison. The simulation results based on the MATLAB/Simulink© software shows the superiority of the proposed algorithm compared to the unmodulated FCS-MPC in terms of a lower ripple in the inductor current and capacitor voltage, and a lower THD for the PMSM currents.


Introduction
The quasi-Z-source inverter (qZSI) has been introduced in research as an advanced topology from the primary one, ZSI, by reserving the same number of components [1,2]. The qZSI minimizes the capacitor voltage stress, makes the drawn current from the supply continuous, and has the same voltage conversion ratio as the basic ZSI [3]. This family of ZSI engages both the buck and boost functionality within a single unit without needing more elements.
The integration of qZSI in drive applications has been reported in several publications [4][5][6]. The reason for this is that it is more capable of adjusting the DC-link voltage to the wide-range variations in speed compared to the conventional voltage source inverter (VSI). Typically, the field weakening control (FWC) method is applied when the speed command is beyond the rated speed of the machine with the VSI. However, the current of the machine is increased with the FWC, and therefore the efficiency will deteriorate at a higher speed [7]. Thus, the ZSI family expands the flexibility of using the drive system like an electric vehicle that is significantly growing every year around the world.
A permanent magnet synchronous machine (PMSM) has a simple structure, a compact size, and a high-power density. Moreover, in PMSM, the slip ring is missing, and the rotor does not use any winding to generate the magnetic flux, as it results from the magnetic poles on the rotor and the stator windings. These features reduce conduction losses and improve the overall efficiency of the PMSM. To control the PMSM speed, several techniques are developed, such as conventional techniques [8,9] and model predictive control (MPC) [10,11]. The latter demonstrates a superior performance during the transient and steady state, where the actuation of the switches of the inverter with the MPC is done using a future vision based on the current values of the control objectives. The priority of each control goal inside the objective function is managed by adjusting its corresponding weighting factor [12].
A finite control set-MPC (FCS-MPC) is a class in the MPC category, which depends on the finite number of switching states of the topology switches. It has been applied for qZSI to drive the PMSM in [11], and the results have shown that qZSI can derive the PMSM below and above the base speed without the need to apply FWC. In [13], the presented methodology used a PI loop to regulate the capacitor voltage and to generate the reference value of the inductor current. In addition, the sub cost function definition proposed in [14] is employed to improve the calculation burden. Although the technique presented in [14] offers a more accurate value for the reference current than the one obtained using the estimation way, it sacrifices the overall response as an extra control loop based on the conventional PI. Another drawback here is that the capacitor voltage is regulated also inside the cost function, and this is considered more effort. Predictive torque control (PTC) has been applied to the induction motor with the bidirectional qZSI (BqZSI) in [15]. The optimization law includes the torque and flux from the machine side and the capacitor voltage in the BqZS network. While in [16], the optimization law regulates only the machine side objectives of the torque and flux.
The methodology to apply the optimal vector from the FCS-MPC algorithm during all the sampling interval increases the ripples in the control objectives, especially when the sampling rate is high in the case of an unpowerful implementation platform. Several studies have reviewed the variable duty optimization techniques and have identified the research gaps in the field [17][18][19]. In [17], the duty-cycle is calculated based on the torque and flux difference parameters, and two vectors have been applied inside one sampling interval for the PMSM with VSI, whereas the duty-cycle of the shoot-through vector is calculated only based on the ripple of the inductor current, as in [18]. In [19], the authors presented the modulated MPC (M-MPC) to calculate the duty-cycle of the shoot-through state to control the inductor current in the ZSI-based PMSM drive. The presented algorithm does not employ any weighting factor inside the cost function, and the ZSI can operate at a fixed switching frequency. In [20], the authors proposed an algorithm to minimize the torque ripple with a similar topology, called modified qZSI. The introduced algorithm calculated the time of each applied voltage vector like the conventional space vector modulation.
Recent promising control techniques, based on a finite-time command filter, have been researched to minimize the tracking errors in the non-linear systems [21][22][23][24][25]. The command filtered adaptive output feedback control is presented in [21] for minimizing the tracking error. The control method is verified by comparing it to the tracking error of the adaptive output feedback control. In [22], an adaptive finite-time command filtering control, based on a neural network, was proposed for switched nonlinear systems. A good tracking performance was obtained under both the arbitrary switchings and the backlashlike hysteresis input. In [23], a finite-time adaptive fuzzy tracking control was presented for multi-input multi-output nonlinear systems with input saturation. In [24], an improved finite-time tracking control command filter was designed to ensure that the output of the filter can approximate the derivatives of virtual signals more quickly, suppress chattering, and relax the input signal limit of the Levant differentiator. Although these references have presented promising control methodologies with some stability analysis, their validity can be reliable when applied to electrical drive and motor control systems. In [25], the inductor current, capacitor voltage, and output current of the qZSI were controlled by a logical operation-based MPC in two separate cascaded stages, i.e., control logic and judgment logic. Therefore, the weighting factors are eliminated. However, this method is not yet applied to the PMSMs or IMs.
Unmodulated FCE-MPC is the current popular MPC for the PMSM driven by qZSI. In this method, the optimum selected voltage vector is applied during the whole sampling period, as in [26]. In this way, the ripples in the inductor current and capacitor voltage of the qZSI become visibly high. This paper proposes a methodology for calculating the optimal duration time (ODT) to reduce the ripples in the qZSI inductor current and capacitor voltage and the PMSM currents. The optimal duration for the active and shoot-through vectors is calculated based on the proposed criteria within a quadratic cost function. In the remaining part of the sampling interval of these vectors, the zero-state vector is applied to the qZSI switches. Using the zero vector after the shoot-through vector prevents the inductor current to continue charging until the sampling interval ends, while for the PMSM currents, optimizing the time to apply the active vector minimizes the total harmonics distortion (THD). This is beneficial to the high sampling rate in case of using the low-cost digital platform in the implementation. Furthermore, the calculation burdens are reduced by excluding the zero vector from the calculations inside the FCS-MPC algorithm. The validation of the effect of ODT on the inductor current, capacitor voltage, and machine's current is presented in detail. The algorithm covers the whole operational speed range of PMSM.
In general, the paper contributions can be listed as: • Proposing a new model predictive control methodology to calculate the optimal duration time (ODT) for the optimized voltage vector that results from the FCS-MPC algorithm.

•
The criteria to calculate the ODT are based on minimizing the ripples in the qZSI inductor current, the qZSI capacitor voltage, and the PMSM currents using a quadratic cost function.

•
Deriving the optimal duration time interval with mathematical analysis for the proposed methodology.

•
The zero-vector is excluded from the calculations in the main loop to avoid computational burdens.

•
Simulating the proposed modulated FCS-MPC using the MATLAB/Simulink software.

•
Comparing the proposed controller with the conventional algorithm in the literature of FCS-MPC with qZSI.

•
The proposed algorithm minimizes the ripple of the inductor current and capacitor voltage of the qZSI, and the dynamic performance of the controlled PMSM is achieved. • A lower THD for the PSMS currents compared to that based on the conventional FCS-MPC of qZSI has been achieved.
The remainder of this paper starts with Section 2, which describes the discrete model of the qZSI and PMSM. Section 3 demonstrates the proposed modulated FCS-MPC algorithm in detail, while Section 4 shows the simulation results and Section 5 reports the paper's conclusions.

System Description and Modeling
The PMSM terminals are connected to the three-phase inverter fed from the DC-link voltage of the qZS network, as shown in Figure 1. The inverter has three legs with two switches each, and each switch has two states, either ON or OFF (ON refers to binary 1, while OFF refers to binary 0). Therefore, the total number of the possible switching states of the inverter is eight, i.e., 23. These states can be classified into three groups, which are: zero-state (V1), active states (V2:V7), and shoot-through (ST) state (V8). For PMSM, the shoot-through state and the zero state, which could be called the null state, have the same effect on the machine currents and speed, as a zero voltage is applied to the stator in both states. Table 1 summarizes the space vectors of the output voltage during the possible switching states of qZSI. In the remaining part of the paper, V dc refers to the DC-link voltage before the inverter stage. The remainder of this paper starts with Section 2, which describes the discrete mode of the qZSI and PMSM. Section 3 demonstrates the proposed modulated FCS-MPC algorithm in detail, while Section 4 shows the simulation results and Section 5 reports th paper's conclusions.

System Description and Modeling
The PMSM terminals are connected to the three-phase inverter fed from the DC-lin voltage of the qZS network, as shown in Figure 1. The inverter has three legs with tw switches each, and each switch has two states, either ON or OFF (ON refers to binary 1 while OFF refers to binary 0). Therefore, the total number of the possible switching state of the inverter is eight, i.e., 23. These states can be classified into three groups, which are zero-state (V1), active states (V2:V7), and shoot-through (ST) state (V8). For PMSM, th shoot-through state and the zero state, which could be called the null state, have the sam effect on the machine currents and speed, as a zero voltage is applied to the stator in bot states. Table 1 summarizes the space vectors of the output voltage during the possibl switching states of qZSI. In the remaining part of the paper, refers to the DC-lin voltage before the inverter stage.

Mathematical Model of the PMSM Part
The type of PMSM in this study is surface-mounted, so the direct and quadrature inductances of the machine are equivalent, i.e., L d = L q . The three-phase currents of the stator are converted into the rotational dq-coordinate using the Park transformation. These current components represent the input state-variables vector of the PMSM, i.e., x = i sd i sq T , where T is the matrix transpose. The input or control vector is the stator voltage in the dq frame, i.e., v = v sd v sq T . Accordingly, the continuous state-space model of the PMSM can be expressed as where R s is the phase resistance and ω(t) is the electrical angular speed of the PMSM. Besides, the voltages v sd (t) and v sq (t) can be evaluated from the switching state of the inverter and the DC-link voltage as where θ is the electrical angle and (S 1 , S 3 , S 5 ) are the switching functions of the three-phase inverter.

Mathematical Model of the qZS Part
The configuration of the qZS network depends on the switching state of the inverter switches. The state-variables in the qZS network are the current in the inductor L 1 and the voltage across the capacitor C 1 . The analysis of this part assumes that the currents in the two inductances of L 1 and L 2 are typical due to the symmetry of L 1 and L 2 . Furthermore, the capacitor voltage is indirectly employed to regulate the DC-link voltage of the inverter, as it has a constant value, while the DC-link voltage is a pulsating waveform, which needs more complicated circuits to detect the actual value.

Zero-State
The zero-state is obtained through shortening the upper or the lower switches of the three legs in the inverter. The equations of inductor current and capacitor voltage will not be driven here because the discrete model of the controlled variable will not be used with this state. This state will be inserted in the remaining part of the active or shoot-through vector, as discussed below.

Active States
In this case, the diode D 7 has a forward-biased state, and therefore there will be a direct connection between the input source v in and the PMSM, as shown in Figure 2. According to this circuit configuration, the differential equations that describe the state-variables can be expressed as where L 1 and C 1 are the inductance and capacitance of the LC network, r l1 is the parasitic resistance of the inductor, v in (t) is the input voltage, v C1 (t) is the capacitor voltage of Electronics 2021, 10, 2814 6 of 23 is the inductor current of L 1 , and i inv (t) is the instantaneous dc-current drawn by the inverter during this case, that can be calculated by where i is the number of the switching vector.

Shoot-Through State
This case can be generated by shortening at least one of the three legs of the inver During this case, the diode D7 has a reversed-biased state, and both inductors capacitors exchange their energy, in which case the inductors are discharging, wher the capacitors are charging, as shown in Figure 3. The state-variable equations during state are:

Proposed Modulated-MPC of qZSI-Based Vector Optimal Duration
FCS-MPC selects the optimal vector from the possible vectors of the converter, an remains applied until the next sampling interval. The main idea behind the propo technique is to find the time to apply the optimal vector and apply the zero vector in remaining part of the sampling interval.

References of Control Objectives
The PMSM speed, , is regulated to the reference speed, * , using a PI con loop that generates the reference of the electrical torque * of the PMSM as

Shoot-Through State
This case can be generated by shortening at least one of the three legs of the inverter. During this case, the diode D 7 has a reversed-biased state, and both inductors and capacitors exchange their energy, in which case the inductors are discharging, whereas the capacitors are charging, as shown in Figure 3. The state-variable equations during this state are: Electronics 2021, 10, 2814 6 where is the number of the switching vector.

Shoot-Through State
This case can be generated by shortening at least one of the three legs of the inve During this case, the diode D7 has a reversed-biased state, and both inductors capacitors exchange their energy, in which case the inductors are discharging, whe the capacitors are charging, as shown in Figure 3. The state-variable equations during state are:

Proposed Modulated-MPC of qZSI-Based Vector Optimal Duration
FCS-MPC selects the optimal vector from the possible vectors of the converter, a remains applied until the next sampling interval. The main idea behind the propo technique is to find the time to apply the optimal vector and apply the zero vector in remaining part of the sampling interval.

References of Control Objectives
The PMSM speed, , is regulated to the reference speed, * , using a PI con loop that generates the reference of the electrical torque * of the PMSM as

Proposed Modulated-MPC of qZSI-Based Vector Optimal Duration
FCS-MPC selects the optimal vector from the possible vectors of the converter, and it remains applied until the next sampling interval. The main idea behind the proposed technique is to find the time to apply the optimal vector and apply the zero vector in the remaining part of the sampling interval.

References of Control Objectives
The PMSM speed, ω m , is regulated to the reference speed, ω * m , using a PI control loop that generates the reference of the electrical torque T * e of the PMSM as where K p and K i are the proportional and integral gains of the PI speed controller, respectively. The load torque must be derated when the speed increases beyond the base speed, ω b , to avoid the overheating of the machine windings. So, the weakening factor, F, is defined as a function of motor speed as To achieve the maximum torque per ampere (MTPA), where the efficiency is high, the reference current in the d-axis of the PMSM is defined as zero, i.e., I * sd =0. At this condition, the reactive power absorbed by the PMSM has the minimum value, while for the quadrature current, the reference value depends on the reference torque from the speed regulator, as: When the speed command is set above the base value, the qZSI operates in the boosting mode, and therefore the inductor current and capacitor voltage are controlled with the proposed modulated FCS-MPC. The reference value of the inductor current is computed based on the reference electromagnetic torque from (8) and the given reference speed as: Then, the stator voltage of PMSM must be adjusted to the command speed. This can be achieved by defining the reference capacitor voltage in (12) as a function of the command speed and the input voltage.
Below the base speed of the PMSM, the qZSI works in buck mode and the DC-link voltage remains nearly constant at the input voltage. While in the boost mode, its peak value is a function of the reference voltage of the capacitor and the input voltage, as in (13).
The reference states could be summarized in matrix form as: Electronics 2021, 10, 2814 8 of 23

Prediction of the Control Objectives
The next step in the FCS-MPC algorithm is to define the discrete model of the control objectives. The trajectory of the control objectives at the different switching states of the inverter can be predicted utilizing their discrete model. The Forward Euler equation has been adopted to solve the differential equations derived in the previous section. The prediction model depends on the sampling interval, T s . The discrete model for the PMSM current is given by where the voltage components V sdq (k) are the measured voltage of the stator windings at time k. Table 2 summarizes the discrete model of the qZS network part during only the active and shoot-through cases because the zero-state will not be employed inside the FCS-MPC loop, as discussed below. It could be noticed that the control variables have been set in terms of their own optimal modulations indices, where µ act and µ sT are the modulation indices in the active state and shoot-through state, respectively. Table 2. Prediction of control states with modulation index.

State
Capacitor

Modulation Intervals for the qZSI-Based PMSM Drives
The dynamic equations of the proposed modulated MPC are explained and derived in detail. Moreover, they have been compared to the conventional MPC. The shoot-through optimal duration (µ sT ) has been derived in detail, while the µ sT in the conventional MPC is set to 1. The proposed M-MPC is mapped in a flow chart as shown in Figure 4. In this flowchart, the implementation process is described during each executing sampling interval in the following sequence: • Initialization and measurements • Calculations of references for qZSI and PMSM • Prediction of currents • Selection of the optimal voltage vector • Calculation of optimal duty for the selected voltage vector • Applying the selected vector within its optimal duty to the inverter, while the zero vector is applied for the rest time

Shoot-Through Optimal Duration ( ) beyond the Base Speed
The shoot-through state is exploited to boost the input voltage to the desired value based on the command speed of the PMSM. Substituting from Table 2 by the predicted current during the shoot-through state in the cost function of (16), the latter could be rewritten as: where the coefficients can be defined in matrix form as:

Cost Functions at a Speed beyond Base Speed
For minimizing the calculation burden, two cost functions are tested in parallel for the ST and NST states to track the reference inductor current. The prediction current of the qZS inductor has the same value in all the six active vectors. The cost functions with the ST and NST intervals are described in (16) and (17), respectively. The quadratic cost functions are used to increase accuracy and sensitivity. The results for low switching frequency can be improved by considering a squared error for the control variables of the cost function.
The cost functions for the two cases are calculated to decide which state should be applied instead of testing all the eight switching states. This methodology is known as a sub-cost function definition, tested before executing the main cost function, whereas the capacitor voltage has different values with all the eight states. Therefore, it is better to employ the inductor current.
Once the shoot-through state is selected, the vector and its ODT (µ sT X 8 ) is applied at the beginning of the interval to minimize the inductor current ripple, whereas the zero vector is applied in the remaining time, i.e., (1 − µ sT )X 1 . In the same way, when the nonshoot-through mode is selected, the optimum voltage vector is chosen for tracking the current components of the PMSM and the capacitor voltage, as in (18).
where K d , K q , and K c are the weighting factors for the different terms of the cost function. The candidate active vector X opt is the selected vector from X 2 : X 7 and is applied during the time µ act T s . In the remaining time, T s , the zero voltage is applied (1 − µ act )T s .

Shoot-Through Optimal Duration (µ sT ) beyond the Base Speed
The shoot-through state is exploited to boost the input voltage to the desired value based on the command speed of the PMSM. Substituting from Table 2 by the predicted current during the shoot-through state in the cost function of (16), the latter could be rewritten as: where the coefficients can be defined in matrix form as: The condition for minimizing the ripple in the inductor current, dg st dµ sT = 0, can be defined as: Substituting from (14) into (20) by the reference variables, the modulation interval during the shoot-through operation could be defined through the following derivation steps: Then, the modulation interval during the shoot-through operation could be determined by The saturation limit of µ sT is set based on the minimum value at zero and maximum value at one. Then, the shoot-through vector and its ODT (µ sT X 8 ) are applied at the beginning of the interval, whereas the zero voltage is applied in the remaining time, i.e., (1 − µ sT )X 1 , as depicted on the right side of the flowchart in Figure 4 If the NST state is selected, from the sub-cost function stage, the cost function for PMSM drives involves the stator currents of the machine and the capacitor voltage of the qZSI, as in (18). From the reference states in (14) and the predicted variables defined in Table 2, the cost function could be rewritten as: For simplicity, the cost function could be rewritten as where the coefficients of the cost function of (28) are abbreviated in matrix form as: For minimizing the errors in the control variables, dg dµ act = 0: With intensive integration, (30) could be set as The inverter current at the optimally selected vector is given as With the consideration of the inverter current as in (32), (31) gives where the coefficients of (33) are defined as:

Cost Function and Modulation below the Base Speed
Below the base speed, qZSI works in the buck mode as the conventional VSI. Therefore, no shoot-through vector is needed, so the duty of the shoot-through is zero, while the active duty-cycle can be simply obtained by setting K c = 0 in (18) and these yields: For minimizing the ripple of the PMSM currents, dg dµ act = 0. After intensive abbreviations and substitutions, the optimal duration for the active state can be defined by In addition, (35) could be derived directly from (33) when the variables of C 1 and C 2 in (29) are set as zero. The saturation limit of µ act is set based on the minimum value at zero and on the maximum value at one. Then, the selected active vector and its ODT (µ act X opt ) are applied at the beginning of the interval, whereas the zero voltage is applied in the remaining time, i.e., (1 − µ act )X 1 , as depicted in the middle and left parts of the flowchart in Figure 4.

Simulation Results and Discussion
To investigate the performance of the proposed M-MPC for the qZSI-based PMSM drives, a MATLAB/Simulink ® model has been developed to simulate the proposed technique. The solver of the MATLAB/Simulink ® is set to carry the simulation with a fixed step size of 1 µs, while the main algorithm of FCS-MPC is executed at every sampling interval. The system parameters for both the qZSI and PMSM sides are listed in Table 3. Simulation results are presented in this arrangement to verify the effect of the proposed modulated FCS-MPC over the conventional MPC on the performance of PMSM driven by qZSI as follows: (1) the dynamic performance of the PMSM and Qzsi sides has been simulated and analyzed for both modulated and unmodulated FCS-MPCs, (2) control variables (i.e., control signals and the optimal switching vector with modulated and unmodulated FCS-MPCs) have been shown, (3) small-time scale figures are depicted for describing the steady-state performance of the modulated and unmodulated FCS-MPCs, (4) the total harmonic distortion (THD) of the phase current was established to ensure the superiority of the modulated MPC over the unmodulated one, and finally (5) comparisons are performed in forward and reverse directions, and below and above the base speed.
The PI regulator of the PMSM has been tuned with a try-and-error methodology to minimize the overshoot during the transient and the steady-state error with the reference speed. Moreover, the weighting factors are determined for balancing the different terms in the designed cost function. The sub cost function is used to reduce the calculation burdens and simplify the main cost function design. According to the desired rated and maximum speeds (3000 and 5000 rpm) and refereeing to (14), the reference variables at steady state are set in (36). 

Dynamic Performance of the PMSM Side
The simulation results, under the rated and maximum conditions with the proposed M-MPC and with the unmodulated MPC, are shown in Figures 5 and 6, respectively. The speed is first referenced at 3000 rpm and then at 5000 rpm at a load torque of 0.637 Nm, with a maximum available torque of 1.9 Nm. It is observed that the motor speed matches its reference in both M-MPC and the conventional MPC in forward and reverse directions.
The PMSM is first loaded with its rate of 0.637 Nm, and then the load is decreased such that a constant power operation is guaranteed when the speed exceeds the base value. The stator phase-current of the PMSM is limited up to 15 A during the speed change instant when the developed electrical torque from the speed regulator is less than the maximum of 1.9 Nm. Moreover, in both techniques, the d-axis current always equals zero during the speed variation.

Dynamic Performance of the qZS Side
The simulation results with the proposed modulated and unmodulated FCS-MPC for the qZSI side are shown in Figures 7 and 8, respectively. In both schemes, the reference voltage of the qZSI capacitor voltage is set based on the reference speed. It could be observed that the inductor current accurately tracks its reference in all examined

Dynamic Performance of the qZS Side
The simulation results with the proposed modulated and unmodulated FCS-MPC for the qZSI side are shown in Figures 7 and 8, respectively. In both schemes, the reference voltage of the qZSI capacitor voltage is set based on the reference speed. It could be observed that the inductor current accurately tracks its reference in all examined operational modes, i.e., rated, maximum, and reverse modes (see Figures 7 and 8 (upper)). The capacitor voltage equals 89.25 V (see Figures 7 and 8 (middle)), and the peak value of the DC-link voltage becomes 127.5 V (see Figures 7 and 8 (bottom)).
At time 0.2 s, the speed of the PMSM is reversed. A transient period from 0.2 s to 0.21 s occurs. During this period, the PMSM draws a high transient current to reverse its direction. Therefore, the inductor current is increased to raise up the voltage across the capacitors. At the end of this transient period, the nominal load current is drawn and hence the inductor current is decreased. Therefore, the capacitor voltage is decreased up to its steady state according to the new speed and load. At time 0.2 s, the speed of the PMSM is reversed. A transient period from 0.2 s to 0.21 s occurs. During this period, the PMSM draws a high transient current to reverse its direction. Therefore, the inductor current is increased to raise up the voltage across the capacitors. At the end of this transient period, the nominal load current is drawn and hence the inductor current is decreased. Therefore, the capacitor voltage is decreased up to its steady state according to the new speed and load.   At time 0.2 s, the speed of the PMSM is reversed. A transient period from 0.2 s to 0.21 s occurs. During this period, the PMSM draws a high transient current to reverse its direction. Therefore, the inductor current is increased to raise up the voltage across the capacitors. At the end of this transient period, the nominal load current is drawn and hence the inductor current is decreased. Therefore, the capacitor voltage is decreased up to its steady state according to the new speed and load.   Figures 9 and 10 show the control variables with M-MPC and the unmodulated MPC, respectively. Below the base speed, in forward and reverse directions, the optimal vector is selected between V2:V7; while the zero vector V1 is not used in the calculations, and no ST state (V8) is needed. In this case, there is no need to calculate the duty-cycle of the ST in (26), while the duty-active has been determined for minimizing only the ripple of the PMSM currents. When the speed exceeds the base value, the ST state is mandatorily needed to boost the dc-link voltage. Therefore, the ST vector V8 is applied during the time (µ st T s ). The level of the duty-ST depends on how the motor speed runs away from the base one. Without the modulation technique, as shown in Figure 11, the selected vectors have been applied during the whole sampling interval.

Steady-State Performance of the PMSM Side
The steady-state responses for T s = 20 µs are shown in Figures 11 and 12 for the M-MPC and unmodulated MPC, respectively. The proposed M-MPC leads to a significantly lower current error than the unmodulated MPC. The shape of the phase current at the rated and maximum speeds is improved with the proposed M-MPC rather than the unmodulated MPC, as shown in Figure 11a,b and Figure 12a,b, respectively. The ripple in the inductor current is significantly decreased with the M-MPC, as depicted in Figure 11c, compared to the unmodulated MPC in Figure 12c, whereas the ripple in the capacitor voltage is slightly decreased with the M-MPC, as depicted in Figure 11d, compared to the unmodulated MPC in Figure 12d.  Figures 9 and 10 show the control variables with M-MPC and the unmodulated MPC, respectively. Below the base speed, in forward and reverse directions, the optimal vector is selected between V2:V7; while the zero vector V1 is not used in the calculations, and no ST state (V8) is needed. In this case, there is no need to calculate the duty-cycle of the ST in (26), while the duty-active has been determined for minimizing only the ripple of the PMSM currents. When the speed exceeds the base value, the ST state is mandatorily needed to boost the dc-link voltage. Therefore, the ST vector V8 is applied during the time (

Control Variables
). The level of the duty-ST depends on how the motor speed runs away from the base one. Without the modulation technique, as shown in Figure 11, the selected vectors have been applied during the whole sampling interval.   Figures 9 and 10 show the control variables with M-MPC and the unmodulated MPC, respectively. Below the base speed, in forward and reverse directions, the optimal vector is selected between V2:V7; while the zero vector V1 is not used in the calculations, and no ST state (V8) is needed. In this case, there is no need to calculate the duty-cycle of the ST in (26), while the duty-active has been determined for minimizing only the ripple of the PMSM currents. When the speed exceeds the base value, the ST state is mandatorily needed to boost the dc-link voltage. Therefore, the ST vector V8 is applied during the time (

Control Variables
). The level of the duty-ST depends on how the motor speed runs away from the base one. Without the modulation technique, as shown in Figure 11, the selected vectors have been applied during the whole sampling interval.

Steady-State Performance of the PMSM Side
The steady-state responses for = 20 μs are shown in Figures11 and 12 for the M-MPC and unmodulated MPC, respectively. The proposed M-MPC leads to a significantly lower current error than the unmodulated MPC. The shape of the phase current at the rated and maximum speeds is improved with the proposed M-MPC rather than the unmodulated MPC, as shown in Figures 11a,b and 12a,b, respectively. The ripple in the inductor current is significantly decreased with the M-MPC, as depicted in Figure 11c, compared to the unmodulated MPC in Figure 12c, whereas the ripple in the capacitor voltage is slightly decreased with the M-MPC, as depicted in Figure 11d, compared to the unmodulated MPC in Figure 12d.
The performance of the proposed MFCS-MPC is also tested at a higher sampling time, i.e., at 40µs, as shown in Figure 13. From the results, the modulated algorithm guarantees a good performance of the converter and the PMSM. The performance of the control objectives is not very different compared to the modulated MPC at 20 µs. A low sampling time with modulation decreases the inductor current ripples.  The performance of the proposed MFCS-MPC is also tested at a higher sampling time, i.e., at 40µs, as shown in Figure 13. From the results, the modulated algorithm guarantees a good performance of the converter and the PMSM. The performance of the control objectives is not very different compared to the modulated MPC at 20 µs. A low sampling time with modulation decreases the inductor current ripples.

Steady-State Performance of the qZSI Side
The optimized vector, with the traditional MPC algorithm, is applied during the entire sampling time, as shown in Figure 14. The same procedure is applied in the next sampling intervals. One vector occupies the entire the sampling interval, and there are no duty-ST and duty-active. With the proposed MPC algorithm, the optimal vector is only applied during a defined time, which has been calculated in each sampling interval, aiming to minimize the ripple in the controlled variables as derived in (26), (33), and (35). In Figure 15, in each sampling interval, there will be two possibilities for the number of vectors according to the calculated optimal times: One vector in the sampling period: this case occurs when the duty-ST/duty-active is larger than one; then, the proposed MPC algorithm applies only the optimized vector during the entire sampling interval (V3, as shown in the region with the red outlines in Figure 15a). The possibility of this case may be higher with the active vectors, as the duty-ST is usually lower than the maximum limit at one (i.e., in the range from 0 to 0.6 in Figure 15b). that same shoot-through states occur in the same time period; then, the THD for the PMSM currents is the same for the studied system. Moreover, the inductor current ripple and the capacitor voltage will be identical in both algorithms. Table 4 summarizes the results acquired for the steady-state simulations when the PMSM is operating at the maximum and rated speeds of 5000 and 3000 rpm, respectively. The current error is defined as the absolute band between the peak limit and the lower boundary of the wave for the measured wave related to its reference. It could be noted that the proposed modulated MPC reduces the ripples of the control variables compared to the unmodulated MPC along with the whole speed range.   Two vectors in the sampling interval: it is shown in the region with the purple outlines in Figure 15. It happens when the duty-ST/duty-active is less than the maximum limit at one. In the remaining part of the sampling interval (i.e., 1-Duty-ST/Duty-active), the null vector is applied to the inverter switches (V1). Moreover, as depicted in Figure 15a, it can be noticed that the optimal vector is transmitted between the six active vectors (V2:V7) and the ST vector (V8). Moreover, it is shown in Figure 15b,c that the duty-ST and the duty-active are complementary, i.e., when the duty-ST equals one, the duty-active equals zero, and vice versa.
The proposed and conventional MPC have different optimal vectors at the same time instant. For example, at instant 0.1998 s, the optimal vector of the proposed algorithm is V8, while the conventional algorithm is V5, as depicted in Figures 14 and 15a, respectively. Furthermore, at this instant, the conventional algorithm applies only the vector V5 during the whole sampling interval (100%), while with the proposed algorithm, the optimal vector V8 occupies only approximately 59% of the sampling interval, and the remaining part of 41% is occupied by the zero vector. Interrupting the vector V8 with the vector V1 (null vector) prevents the inductor current from increasing, and thus the ripple can be minimized.
As shown in [27], the conventional FCS-MPC provides a lower computational burden, whereas the FCS-MPC with an optimal time interval is the highest calculation time consumer. Here, the numbers of switching transitions during a certain period are shown in Figures 14 and 15. It is also seen that the proposed method increases the number of switching transitions (22 transitions during 0.0003 s) in comparison with the conventional method (15 transitions during 0.0003 s) because, in this case, the duty of shoot-through is less than one. Therefore, the sampling interval of the shoot-through includes two vectors to minimize the inductor current. As a result, the switching frequency of the inverter increases with the proposed technique. However, with the unmodulated MPC, increasing the switching frequency requires decreasing the sampling time. This is considered a limitation to the conventional algorithm, as operating at a low sampling interval requires a high-cost powerful digital platform (i.e., FPGA). Moreover, with the unmodulated MPC, the computational burden will increase intensively, as all calculations will be doubled in case of decreasing the sampling interval to double the switching frequency. However, with the proposed algorithm, the computational burden will be almost the same.
With the unmodulated MPC, shown in Figure 14, the sampling time is 20 µs and the switching frequency is 50 kHz, while with the modulated MPC, shown in Figure 15, the sampling time is 20 µs and the switching frequency is 73.33 kHz. To compare the steady-state performance of the studied MPC schemes under the same average switching frequency, the applied voltage vector is recorded at 13.6 µs with the unmodulated MPC, as shown in Figure 16. Comparing this value to the results in Figure 15a, it can be noted that same shoot-through states occur in the same time period; then, the THD for the PMSM currents is the same for the studied system. Moreover, the inductor current ripple and the capacitor voltage will be identical in both algorithms.   Table 4 summarizes the results acquired for the steady-state simulations when the PMSM is operating at the maximum and rated speeds of 5000 and 3000 rpm, respectively. The current error is defined as the absolute band between the peak limit and the lower boundary of the wave for the measured wave related to its reference. It could be noted that the proposed modulated MPC reduces the ripples of the control variables compared to the unmodulated MPC along with the whole speed range. It is common for the predictive control to result in a variable switching frequency. The average switching frequency with the modulated and unmodulated FCS-MPC is compared in Figure 17 for different sampling intervals. The simulation results are obtained at the boosting mode where the calculations of the optimal duty-cycle are required with the proposed algorithm, while during the buck mode, both algorithms will have the same execution time. Based on the results, the switching frequency of the proposed algorithm is higher, as the sampling interval mostly includes two vectors instead of one (as in the conventional algorithm). Therefore, the proposed algorithm has a slightly higher execution time to find the optimal duty-cycle during the boost mode. However, this small time difference is not considered a big issue, as the modern digital controller can operate at a higher execution speed. required with the proposed algorithm, while during the buck mode, both algorithms will have the same execution time. Based on the results, the switching frequency of the proposed algorithm is higher, as the sampling interval mostly includes two vectors instead of one (as in the conventional algorithm). Therefore, the proposed algorithm has a slightly higher execution time to find the optimal duty-cycle during the boost mode. However, this small time difference is not considered a big issue, as the modern digital controller can operate at a higher execution speed.

Total Harmonic Distortion (THD)
To visually compare and analyze the performance of the current under the control strategy, it is necessary to investigate the total harmonic distortion (THD) of the phase current. The THD analysis of the phase current of the PMSM at rated and maximum speeds and rated torque operating conditions is shown in Figure 18a-d for the M-MPC and the unmodulated MPC, respectively. The FFT analyzer has been performed to one cycle of the phase current starting from 0.08 s at 3000 rpm in Figure 11a and at 0.18 s at 5000 rpm in Figure 11b. The figures illustrate that the M-MPC results in a significantly lower THD than the conventional MPC in both conditions of rated speed and maximum Average switching frequency (kHz) Figure 17. Comparison between the average switching frequency (in kHz) with modulated and unmodulated FCS-MPC for PMSM driven by qZSI.

Total Harmonic Distortion (THD)
To visually compare and analyze the performance of the current under the control strategy, it is necessary to investigate the total harmonic distortion (THD) of the phase current. The THD analysis of the phase current of the PMSM at rated and maximum speeds and rated torque operating conditions is shown in Figure 18a-d for the M-MPC and the unmodulated MPC, respectively. The FFT analyzer has been performed to one cycle of the phase current starting from 0.08 s at 3000 rpm in Figure 11a and at 0.18 s at 5000 rpm in Figure 11b. The figures illustrate that the M-MPC results in a significantly lower THD than the conventional MPC in both conditions of rated speed and maximum speed. From the presented analysis, it can be concluded that the proposed modulated-MPC has a superior tracking capability for all control variables.

Conclusions
This paper has proposed a modulated FCS-MPC method to reduce the current and voltage ripples of the qZSI as well as to control the current of the PMSM in its whole speed range without excessive load operation. The following points could be concluded from this work:

•
The proposed M-MPC divides the sampling interval into two times, i.e., the optimal voltage vector and the null voltage vector.

•
The PMSM can run with a speed beyond the base speed without the need to apply the FWC to avoid a high drawn phase current.

•
The ripples of the phase current either in buck mode or in boost mode have been reduced with the proposed M-MPC by 42.8 and 40.5%, respectively, in the d-axis direction; and by 50 and 23%, respectively, for the q-axis component.

•
The peak-to-peak ripples of the inductor current have been decreased in the buck and boost modes by 4.3 and 51.5%, respectively. • The peak-to-peak ripples of the capacitor voltage have been decreased in the buck and boost modes by 11.3 and 50%, respectively • The THD factor for phase current is decreased by 16 and 15.8% with the modulated MPC at rated and maximum speeds, respectively.
Hence, with the proposed M-MPC, the performances of qZSI and the PMSM have been improved over a large speed profile. The proposed strategy could therefore be applied in industrial applications with MPC for minimizing the ripples and matching the reference variables. However, the suggested algorithm could suffer from some limitations. The higher switching frequency is the drawback of the suggested algorithm, especially at the low sampling time. Hence, it limits the operation of both the processor and the power switches. However, the advances in those tools guarantee the solution to this problem. As is known, the MPC is a control algorithm that is sensitive to parameter variations, i.e., parameters of PMSM and of qZSI. The modulation interval of the proposed algorithm is expected to be modified to yield a good performance. This point will be researched in detail in the future.