A Finite-Set Integral Sliding Modes Predictive Control for a Permanent Magnet Synchronous Motor Drive System

: Finite-set model predictive control (FS-MPC) is an easy and intuitive control technique. However, parametric uncertainties reduce the accuracy of the prediction. Classical MPC requires many calculations; therefore, the calculation time generates a considerable time delay in the actuation. This delay deteriorates the performance of the system and generates a significant current ripple. This paper proposes a finite-set integral sliding modes predictive control (FS-ISMPC) for a permanent magnet synchronous motor (PMSM). The conventional decision function is replaced by an integral sliding cost function, which has several advantages, such as robustness to parameter uncertainties, and convergence in finite time. The proposed decision function does not require the inductance and resistance parameters of the motor. In addition, the proposal includes compensation for the calculation delay of the control vector. The proposed control strategy was compared with traditional predictive control with delay compensation using a real-time hardware-in-the-loop (HIL) simulation. The results obtained from the comparison indicated that the proposed controller has a lower THD and computational burden.


Introduction
The permanent magnet synchronous motor (PMSM) offers high efficiency, power density, and the ability to maintain constant power over a wide range of speeds.PMSM is widely used in industrial applications and electric vehicle traction systems.PMSM can be controlled using both trapezoidal and sinusoidal PWM techniques for speed and position.In [1], a genetic algorithm-based controller for speed and position is presented.The study compares the performance of trapezoidal and sinusoidal PWM commutation techniques, providing insights for optimizing motor control systems.The classic control methods used in PMSM drives are current vector control [2] and direct torque control [3].However, traditional controllers have poor dynamic performance.Some of the problems include overshoot and torque fluctuations at low speeds.Finite-set model predictive control (FS-MPC) has gained high relevance in the last decade due to its implementation in digital systems.FSMPC does not require modulation, and nonlinear constraints can be easily incorporated [4].
Controllers based on FS-MPC for PMSM suffer from several drawbacks.The online control vector calculation time affects the performance of the controller [5].Computation time includes filtering, sampling, and other factors, which generate a delay in the control signal.The state of the switches changes once the calculation is completed.Consequently, the measured currents present a ripple of significant amplitude [6,7].Therefore, it is necessary to add compensation for the delay and improve the performance of the control system.The most widely used method for delay compensation is to increase the prediction and control horizon [8][9][10].To increase the performance of the compensation, the control vector of the next sampling is calculated.This process is repeated due to the receding horizon principle.However, this compensation method depends on the accuracy of the model.On the other hand, parameter uncertainty is a challenge for FS-MPC, since parameters change due to PMSM conditions.The saturation effect of the magnetic field changes the inductance of the motor under load conditions.Temperature changes due to mechanical stress decrease the value of the constant flux linkage.In addition, the rising temperature increases the resistance of the winding [11].Several solutions are presented in the literature to improve the robustness of the prediction.In practical applications, there is not only parametric uncertainty but also disturbances and nonlinearities.Therefore, disturbance estimation and compensation techniques are required [12][13][14].In [15], a predictive current control based on a composite observer is proposed.The estimation method eliminates the influence of motor parameter variation and permanent magnet demagnetization on the current vector.The proposed observer is designed using sliding modes (SM) and Luenberger approaches.In [16], a moving horizon estimator is utilized; the effect of constant flux linkage is eliminated, and voltage errors caused by resistance and inductance are compensated.
The recent trend to solve the parameter mismatch has led to the study of model-free control (MFC) methods.In [17], a nonparametric predictive current control (NPCC) has been proposed that can predict future current behavior using the measured data instead of motor parameters.However, the performance of NPCC is deficient if two consecutive switching states are identical, causing a stagnation problem [18,19].MFC can be performed using the ultra-local model (ULM) approach.The ULM technique can be implemented by utilizing the input and output measurement data of the system without prior knowledge of the system parameters.The mathematical model is replaced by a differential equation of order selected by the practitioner [20].ULM has been successfully applied to MPCs for PMSM drives [21,22].In [23], a model of extended affine ULM is built containing a two-order term based on affine arithmetic.The accuracy of the model is improved using extended affine ULM, even in the presence of nonlinear terms.ULM provides a detailed representation of the system behavior in a small region of operation, allowing for more accurate predictions and control strategies tailored to that specific region [24].
Several robust control techniques exist in the field of AC drive systems.SM control is a special nonlinear control strategy, which considers robustness as a part of the design process.This control strategy can also be adapted to power electronics due to the switching nature of the control law.A stability analysis, using Lyapunov theory, is the main advantage [25].However, sliding chattering is related to the robustness of the overall control system.In [26], an adaptive integral sliding mode predictive control is proposed to solve the chattering problem and improve the dynamics of the system.Recent research has presented a study of MPC using the SM cost function [27].In [28], a different cost function using SM theory is proposed for a current controller of a grid-connected three-phase bidirectional power inverter.The sliding cost function presents a fast dynamic response and reduces computational burden.In [29], a finite-set sliding modes predictive current control (FS-SMPC) is applied to a PMSM.
Apart from the control technique, its testing and validation have critical importance.HIL is a real-time simulation technique.HIL verifies control algorithms and plant models, saving cost and time with high fidelity.PMSM and power converters have been successfully simulated in real time.Moreover, parameters can be changed during the simulation [30].In [31], HIL implementation using digital signal processors (DSPs) and field programmable gate arrays (FPGA) for electric machine drives has been investigated.In addition, the drawbacks of both methods, such as complexity in development and verification, are presented.In [32], a high-fidelity real-time simulation using HIL is presented; the simulation is implemented on an FPGA platform; and HIL testing is validated against finite element analysis and experimental results.
In this paper, a robust model predictive control based on sliding mode theory is proposed for the current control of the PMSM drive system, instead of the traditional FS-MPC, which considers an error square cost function.The chattering effect is reduced by an integral sliding surface and an extended control set.To eliminate the delay due to calculation time, a one-step-ahead control horizon is implemented.The contributions of the paper are: (1) A robust current controller for PMSM is designed using an integral sliding cost function.(2) The computational burden of the proposed controller is low compared to traditional FS-MPC.(3) The designed controller is simple, and real-time simulation demonstrates the parameter robustness.This paper is organized as follows: In Section 2, the mathematical model of PMSM and traditional FS-MPC is introduced.In Section 3, the proposed FS-ISMPC strategy is described.Real-time simulation is demonstrated to verify the effectiveness of the proposed method in Section 4, which is followed by a discussion in Section 5. Finally, the paper is concluded in Section 6.

The Mathematical Model of PMSM
In this study, the mathematical model of a PMSM in a dq synchronous reference frame is described as follows [33]: (1) In this model, u d and u q , represent the d and q axis voltages, respectively; i d and i q , represent the d and q axis currents, respectively; L d and L q are the stator inductance; R is the winding resistance; ψ f is the flux linkage of permanent magnets; ω e is the electrical angular velocity; f d and f q are defined to represent the disturbance caused by the parameter variation.The parameters of the motor are mainly influenced by the temperature and magnetic saturation.Therefore, the deviation of the internal parameters is ranged in a finite scale.The mechanical motion equation and the electromagnetic torque of PMSM are written as follows: where T e and T L , represent the electromagnetic torque and load torque, respectively; B represents the viscous friction; ω m is the mechanical angular velocity; J is the rotor inertia; n p is the number of pole pairs.Moreover, for surface-mounted PMSM inductance L d is equal to L q , therefore electromagnetic torque can be simplified as follows: where K t is the torque constant, assumed to be equal to (3 /2)n p ψ f .

Traditional FS-MPC Strategy
In power electronics, MPC can be implemented considering a finite number of control actions or switching states.FS-MPC is intuitive, the first step is obtaining the dynamic model of the system.According to the Euler equation and neglecting the perturbation terms, (1) can be written in discrete form as follows: where k and k + 1 represent the value of the current moment and the next moment, respectively, T s is the sampling period, and written as follows: The PMSM is driven by a two-level three-phase voltage source inverter.The switching states can be summarized in a single complex switching function given by: where S a , S b , and S c are the switching functions of the inverter, V dc is the DC source voltage and a is a unitary vector equal to e j2π/3 .Considering all possible combinations, there are eight different voltage vectors, as depicted in Figure 1.To ensure that the output current follows a specified trajectory, a cost function is defined as follows [3]: where i re f d is the d axis reference current; i re f q is the q axis reference current.When fieldoriented control is adopted i re f d = 0, and i re f q is obtained from the speed controller.
In power electronics, MPC can be implemented considering a finite nu trol actions or switching states.FS-MPC is intuitive, the first step is obtaining model of the system.According to the Euler equation and neglecting the terms, (1) can be written in discrete form as follows: ( + 1) = () () +  () + (), where  and  + 1 represent the value of the current moment and the nex spectively,  is the sampling period, and written as follows: .
The PMSM is driven by a two-level three-phase voltage source inverte ing states can be summarized in a single complex switching function given where  ,  , and  are the switching functions of the inverter,  is t voltage and  is a unitary vector equal to  ⁄ .Considering all possible c there are eight different voltage vectors, as depicted in Figure 1.To ensure th current follows a specified trajectory, a cost function is defined as follows [3 where  is the d axis reference current;  is the q axis reference curren oriented control is adopted  = 0, and  is obtained from the speed co Considering the digital delay in the control action, a one-step-ahead co is used.The cost function ( 6) evaluates the error two sampling periods ahe tional cost function with delay compensation is defined as follows [34]: Considering the digital delay in the control action, a one-step-ahead control horizon is used.The cost function (6) evaluates the error two sampling periods ahead.The traditional cost function with delay compensation is defined as follows [34]: (7)

FS-SMPC Strategy
MPC is applied in a way that an optimal control sequence is given every sampling period.Moreover, the prediction is performed in an open loop.Therefore, stability is not guaranteed [35].In sliding mode control theory, the stability of the closed-loop system is proved using a Lyapunov function [25].
The space vector representation of (1) in the αβ stationary reference frame is given by: where u s is the stator voltage, f s is the disturbance, i s is the stator current, θ e is the electrical rotor position, L s = L d = L q , and A sliding surface is designed as the difference between the measured current and the current reference.The sliding surface can be written as follows: The high-frequency switching ripple is directly related to the stator current vector i s and the reference current i re f is a pure sinusoidal waveform.Taking the first-time derivative of the sliding surface, and considering (8), this yields the following: .
This leads to the following cost function and optimization problem: The above expression can be simplified since L s is always positive and Ri s ≪ u s .The cost function (11) can be written in discrete form as follows [26,27]:

Integral Sliding Mode Predictive Control
The integral sliding mode control algorithm is an attractive alternative.The order of the motion equation in integral sliding mode is equal to the order of the original system [26].Therefore, the system robustness can be ensured by an overall response of the system starting from the initial time instance.Let e s = i s − i re f s be the tracking error vector, and η be the control gain.Then, the integral sliding mode surface (ISMS) is adopted as follows [26]: Replacing (8) into the first-time derivative of ( 13), and neglecting the perturbation term, yields the following: ISMS is similar to a proportional-integral controller.In this work, the discrete integral term e i is expressed as [36]: The discrete-time version of ( 13) is given by the following equation: The cost function can be acquired by applying (11), and the following discrete expression is obtained using the following equation: From ( 17), it can be seen that the control input is optimally calculated based on the SM existence condition.Moreover, the same online optimization mechanism of typical FS-MPC is employed.The more negative the value of ( 17) is, the faster it reaches the sliding surface.This aspect is used in the cost function definition of the proposed predictive controller.

Stability Analysis
The stability is compared by introducing a continuous approximation of the control input.The cost function (17) selects the amplitude and the sign of the optimal vector.In SM, the control input has two parts, an equivalent control input part, and a discontinuous control input part [37].According to [25], the optimal voltage vector of FS-MPC can be expressed by its continuous set optimal voltage vector and the quantization error.In order to explain the robustness of the proposed controller, the required optimal voltage must be as follows: u opt = u eq − L s εsign(σ), (18) where: u opt is the optimal voltage vector of FS-ISMPC, u eq is the equivalent control input, and ε is the quantization error.In the case of FS-MPC, the continuous-set voltage vector is obtained based on the deadbeat solution of (7).However, the equivalent control is added to cancel known terms.The control input in (17) presents the same property of cancelation.From ( 14), the equivalent control can be obtained by applying the invariance condition: Consider the following Lyapunov function candidate: The system is stable if the variation of V is decreasing: Then, using ( 8) and ( 21), the following expression is obtained: According to the above analysis, the sufficient condition for (21) to decrease is ∥ε∥ > 0. This is met due to the negative value of the cost function, which is mentioned in (17).Under the condition ∥ε∥ > ∥f s ∥, the Equation ( 22) is negative and the surface (13) converges to zero in a finite time.

Delay Compensation
The discrete current predictive model of ( 8) can be written as follows: Considering the digital delay in the control input calculation, one step ahead should be shifted.Assuming that ξ(k + 1) ≈ ξ(k), (17) is modified as follows: Similarly, ( 16) is modified as the following: The above expression requires of one-step ahead error vector.The reference current is pure sinusoidal.Assuming that i re f s (k + 1) ≈ i re f s (k), one-step-ahead error can be calculated as follows: According to [26], ( 24) can be simplified since the product Ri s is negligible.Moreover, L s is always positive.The cost function ( 24) is modified as follows:

Extended Control Set
FS-MPC utilizes two null vectors and six active vectors to control the system.The output of the controller is a switching pattern.Therefore, a modulation technique is not required.The transient performance of the controller is faster than a classical controller.However, the tracking current presents a large ripple.To improve the steady-state performance of the two-level power inverter, an additional six intermediate vectors are added to the existing set of voltage vectors, as shown in Figure 2.
World Electr.Veh.J. 2024, 15, x FOR PEER REVIEW 7 of 18 Considering the digital delay in the control input calculation, one step ahead should be shifted.Assuming that ( + 1) ≈ (), (17) is modified as follows: Similarly, ( 16) is modified as the following: The above expression requires of one-step ahead error vector.The reference current is pure sinusoidal.Assuming that  ( + 1) ≈  (), one-step-ahead error can be calculated as follows: According to [26], ( 24) can be simplified since the product  is negligible.Moreover,  is always positive.The cost function ( 24) is modified as follows:

Extended Control Set
FS-MPC utilizes two null vectors and six active vectors to control the system.The output of the controller is a switching pattern.Therefore, a modulation technique is not required.The transient performance of the controller is faster than a classical controller.However, the tracking current presents a large ripple.To improve the steady-state performance of the two-level power inverter, an additional six intermediate vectors are added to the existing set of voltage vectors, as shown in Figure 2. The cost function (27) indicates the direction of the current change.Therefore, the decision function selects a voltage vector with magnitude 2V dc /3.This can be solved by adding a soft constraint on the rate of voltage change.This type of functionality cannot be included in a traditional SM theory.An additional term can be included in the cost function.The resulting cost function is expressed as follows: where J T k+1 is the cost function with constraints, and λ is the weighting factor.The voltage vectors in the αβ frame and the corresponding duty cycles are shown in Table 1.These voltage vectors are stored in a look-up table avoiding the necessity for an online modulation algorithm.The duty cycle is compared with a triangular carrier signal and the intersections define the switching instants.The combination of switching states is applied for a corresponding period.Figure 3 shows the switching pattern of each phase over a sampling period.The carrier signal limits the maximum switching frequency and alternates the zero vectors included in → V 0 .However, the variable switching frequency is the main disadvantage of this control method.The overall flowchart of the proposed FS-ISMPC is depicted in Figure 4.The control diagram is shown in Figure 5.

→
V 0 0 0.5 0.5 0.5 where  is the cost function with constraints, and  is the weighting factor.The voltage vectors in the αβ frame and the corresponding duty cycles are shown in Table 1.These voltage vectors are stored in a look-up table avoiding the necessity for an online modulation algorithm.The duty cycle is compared with a triangular carrier signal and the intersections define the switching instants.The combination of switching states is applied for a corresponding period.Figure 3 shows the switching pattern of each phase over a sampling period.The carrier signal limits the maximum switching frequency and alternates the zero vectors included in  ⃗ .However, the variable switching frequency is the main disadvantage of this control method.The overall flowchart of the proposed FS-ISMPC is depicted in Figure 4.The control diagram is shown in Figure 5.

Simulation Test
The proposed FS-ISMPC was compared to FS-PMC and FS-SMPC via simulations

Simulation Test
The proposed FS-ISMPC was compared to FS-PMC and FS-SMPC via simulations using MATLAB/Simulink models.The simulation parameters of the PMSM are listed in Table 2.The sampling period T s was set as 20 µs, the coefficient η = 0.12, and λ = 0.5.The PI speed controller parameters were set to K p = 2 and K i = 0.015.Figure 6 shows the tracking current comparisons to evaluate the integral term in the cost function.It can be observed that FS-ISMPC presents the smallest steady-state tracking error.In this simulation, the parameter values of the PMSM were not deviated.The rotor speed was 1000 rpm and the load torque was 16 N•m.In terms of the current ripple in the αβ frame, the extended control set was reflected in the current quality.Therefore, the proposed method has an apparent improvement in steady-state performance.
World Electr.Veh.J. 2024, 15, x FOR PEER REVIEW 10 of 18 Figure 6 shows the tracking current comparisons to evaluate the integral term in the cost function.It can be observed that FS-ISMPC presents the smallest steady-state tracking error.In this simulation, the parameter values of the PMSM were not deviated.The rotor speed was 1000 rpm and the load torque was 16 N•m.In terms of the current ripple in the αβ frame, the extended control set was reflected in the current quality.Therefore, the proposed method has an apparent improvement in steady-state performance.To verify the robustness of the proposed current controller, a surface plot comparison between FS-MPC, FS-SMPC, and FS-ISMPC is presented in Figure 7. Two different cases are included in this plot: the static current tracking root mean square error (RMSE) by changing  and  in the PMSM model.The simulated results show that the sensitivity to parameter variations is similar for both FS-MPC and FS-SMPC, whereas the RMSE of the proposed method is not significant.Compared with the above parameters, the resistance value presents a negligible impact on the performance of all three methods.On the other hand, it is well known that variations in the system parameter values can affect the performance of classical FS-MPC in terms of RMSE.Table 3 compares and summarizes the proposed and existing strategies based on SM.It can be seen that the similarity between all three methods is that no modulator is required.Meanwhile, the variable switching frequency is the main disadvantage of the three strategies.However, the actuation constraint of the proposed strategy forces the switching frequency to remain in the vicinity of its maximum frequency.The proposed FS-ISMPC To verify the robustness of the proposed current controller, a surface plot comparison between FS-MPC, FS-SMPC, and FS-ISMPC is presented in Figure 7. Two different cases are included in this plot: the static current tracking root mean square error (RMSE) by changing L s and ψ f in the PMSM model.The simulated results show that the sensitivity to parameter variations is similar for both FS-MPC and FS-SMPC, whereas the RMSE of the proposed method is not significant.Compared with the above parameters, the resistance value presents a negligible impact on the performance of all three methods.On the other hand, it is well known that variations in the system parameter values can affect the performance of classical FS-MPC in terms of RMSE.
World Electr.Veh.J. 2024, 15, x FOR PEER REVIEW 10 of 18 Figure 6 shows the tracking current comparisons to evaluate the integral term in the cost function.It can be observed that FS-ISMPC presents the smallest steady-state tracking error.In this simulation, the parameter values of the PMSM were not deviated.The rotor speed was 1000 rpm and the load torque was 16 N•m.In terms of the current ripple in the αβ frame, the extended control set was reflected in the current quality.Therefore, the proposed method has an apparent improvement in steady-state performance.To verify the robustness of the proposed current controller, a surface plot comparison between FS-MPC, FS-SMPC, and FS-ISMPC is presented in Figure 7. Two different cases are included in this plot: the static current tracking root mean square error (RMSE) by changing  and  in the PMSM model.The simulated results show that the sensitivity to parameter variations is similar for both FS-MPC and FS-SMPC, whereas the RMSE of the proposed method is not significant.Compared with the above parameters, the resistance value presents a negligible impact on the performance of all three methods.On the other hand, it is well known that variations in the system parameter values can affect the performance of classical FS-MPC in terms of RMSE.Table 3 compares and summarizes the proposed and existing strategies based on SM.It can be seen that the similarity between all three methods is that no modulator is required.Meanwhile, the variable switching frequency is the main disadvantage of the three strategies.However, the actuation constraint of the proposed strategy forces the switching frequency to remain in the vicinity of its maximum frequency.The proposed FS-ISMPC Table 3 compares and summarizes the proposed and existing strategies based on SM.It can be seen that the similarity between all three methods is that no modulator is required.Meanwhile, the variable switching frequency is the main disadvantage of the three strategies.However, the actuation constraint of the proposed strategy forces the switching frequency to remain in the vicinity of its maximum frequency.The proposed FS-ISMPC can be considered as an optimized discrete SMC control strategy with a multiobjective optimization and constraint-handling capability.Moreover, the proposed strategy requires weighting factors (WF) and tunable coefficients, which can be tuned by using heuristic methods.A large value of η in the predictive surface generates a larger transient time in the current response, as depicted in Figure 8.A large value of λ in the cost function decreases the robustness.can be considered as an optimized discrete SMC control strategy with a multi-objective optimization and constraint-handling capability.Moreover, the proposed strategy requires weighting factors (WF) and tunable coefficients, which can be tuned by using heuristic methods.A large value of  in the predictive surface generates a larger transient time in the current response, as depicted in Figure 8.A large value of  in the cost function decreases the robustness.

HIL Simulation
Discrete-time equations of PMSM were required for the real-time simulation.The difference equations were programmed using fixed-point in LabVIEW predefined DSP blocks.The PMSM model and proposed FS-ISMPC were implemented on an NI cRIO-9067 using a 40 MHz clock.In the case of the proposed FS-ISMPC, six PWM gate drive signals were generated by a digital I/O module NI 9401.An analog input module NI 9291 was used for stator current acquisition.In addition, an isolated frequency input module NI 9326 was used for encoder signal acquisition.On the other hand, the PMSM model required a DAC module NI 9262 to generate the stator current.The encoder signal was generated by a digital I/O module NI 9401.The schematic diagram of overall system interconnections is shown in Figure 9.
Table 4 compares the FPGA resource usage for the control strategies.The most demanding strategy in terms of resources is the classical FS-MPC due to the use of the mathematical model of PMSM in the optimization stage.The proposal presents a significant usage of available DSP48 blocks in comparison with FS-SMPC.The integral term requires  Table 4 compares the FPGA resource usage for the control strategies.The most demanding strategy in terms of resources is the classical FS-MPC due to the use of the mathematical model of PMSM in the optimization stage.The proposal presents a significant usage of available DSP48 blocks in comparison with FS-SMPC.The integral term requires arithmetic calculations based on adders/multipliers and accumulators.The calculation time of each strategy is listed in Table 5.The computational burden of the proposed FS-ISMPC is slightly lower than the classical FS-MPC.
World Electr.Veh.J. 2024, 15, x FOR PEER REVIEW 12 of 18 arithmetic calculations based on adders/multipliers and accumulators.The calculation time of each strategy is listed in Table 5.The computational burden of the proposed FS-ISMPC is slightly lower than the classical FS-MPC.

Real-Time Simulation Results
To validate the effectiveness of the proposed strategy, the classical FS-MPC, FS-SMPC, and the proposed FS-ISMPC were compared.The PMSM model implemented in HIL was (8), whereas the controllers equations implemented were (7) for FS-MPC, (12) for FS-SMPC, and (28) for proposed FS-ISMPC.A speed reference step change was applied, and the rotor speed was changed from 500 to 1000 rpm, as can be observed in Figure 10, the dynamic response is very similar for all three strategies.The settling time is about 30 ms, which is a fast response for PMSM.The performance of all three control strategies is shown in Figure 11, with a step change in load torque  from 8 Nm to 16 Nm, while maintaining a constant reference speed of 1000 rpm.In this case, the response of the three strategies was similar, and the setting time was 50 ms.Additionally, according to the load step test, the rotor speed undershoot was about 4 rpm.The torque ripple was compared using the RMS value.According to the torque fluctuation analysis, the value of torque

Real-Time Simulation Results
To validate the effectiveness of the proposed strategy, the classical FS-MPC, FS-SMPC, and the proposed FS-ISMPC were compared.The PMSM model implemented in HIL was (8), whereas the controllers equations implemented were (7) for FS-MPC, (12) for FS-SMPC, and (28) for proposed FS-ISMPC.A speed reference step change was applied, and the rotor speed was changed from 500 to 1000 rpm, as can be observed in Figure 10, the dynamic response is very similar for all three strategies.The settling time is about 30 ms, which is a fast response for PMSM.The performance of all three control strategies is shown in Figure 11, with a step change in load torque T L from 8 Nm to 16 Nm, while maintaining a constant reference speed of 1000 rpm.In this case, the response of the three strategies was similar, and the setting time was 50 ms.Additionally, according to the load step test, the rotor speed undershoot was about 4 rpm.The torque ripple was compared using the RMS value.According to the torque fluctuation analysis, the value of torque fluctuation of the FSMPC was 0.380 Nm, the value of FS-SMPC was 0.618 Nm, and the value of torque fluctuation of the proposed FS-ISMPC was 0.342 Nm. Figure 12 illustrates the total harmonic distortion (THD) of  under different load torque values.The THD was tested using nominal parameter values at 1000 rpm.The FS-MPC and the proposed FS-ISMPC present similar values when the load torque is greater than 50%.The THD of the three strategies increased when the load torque was low.The full-load THD of FS-MPC was 2.8%.In the case of FS-SMPC, it was 3.48%.Finally, the THD of the proposed FS-ISMPC was 2.1%. Figure 13 shows the current tracking RMSE to evaluate the FS-ISMPC robustness under parameter mismatches using HIL simulation.The RMSE is tested at 1000 rpm and 8 N.m.As shown, the proposed FS-ISMPC exhibits less sensitivity to parameter variations compared to the FS-SMPC.Figure 14 shows the current harmonic spectrum using the classical FS-MPC, FS-SMPC, and the proposed FS-ISMPC.The experimental data are acquired by the oscilloscope and are processed in the FFT module of MATLAB.The THD was calculated in MATLAB following the Figure 12 illustrates the total harmonic distortion (THD) of i α under different load torque values.The THD was tested using nominal parameter values at 1000 rpm.The FS-MPC and the proposed FS-ISMPC present similar values when the load torque is greater than 50%.The THD of the three strategies increased when the load torque was low.The full-load THD of FS-MPC was 2.8%.In the case of FS-SMPC, it was 3.48%.Finally, the THD of the proposed FS-ISMPC was 2.1%. Figure 13 shows the current tracking RMSE to evaluate the FS-ISMPC robustness under parameter mismatches using HIL simulation.The RMSE is tested at 1000 rpm and 8 N.m.As shown, the proposed FS-ISMPC exhibits less sensitivity to parameter variations compared to the FS-SMPC.Figure 14 shows the current harmonic spectrum using the classical FS-MPC, FS-SMPC, and the proposed FS-ISMPC.The experimental data are acquired by the oscilloscope and are processed in the FFT module of MATLAB.The THD was calculated in MATLAB following the methodology proposed in [38].In the case of the proposal, a visible harmonic at 50 kHz exists due to the use of carrier signal and the extended control set.
World Electr.Veh.J. 2024, 15, x FOR PEER REVIEW 14 of 18 methodology proposed in [38].In the case of the proposal, a visible harmonic at 50 kHz exists due to the use of carrier signal and the extended control set.

Discussion
The HIL simulation results indicate that the amplitude of the torque ripple depends on the sampling time.Notably, these findings corroborate with previous research, as evidenced by agreement with [10].In the case of the proposed controller, a larger sampling time can decrease the effects of calculation delay; however, it also increases the amplitude of torque ripple.Increasing the sampling time could decrease the computational burden and potentially eliminate the necessity for compensation Equations ( 23) and (25).
The effects of parameter variation are negligible due to the uncertainty considered in this work.The robustness of the controller depends on the sliding surface, which aligns with [27,28].However, in practice, there may be conditions that deviate the parameters outside the bounds, decreasing prediction accuracy.On the other hand, the tracking current error is diminished due to integral action on the sliding surface.The RMSE results indicate that the proposed controller exhibits improved performance similar to that reported by [26].
A system stability test similar to [27] was not directly performed.However, the analogy proposed in (18) suggests that the robustness of the controller depends on the quantization error; the larger the error, the greater the robustness.

Conclusions and Future Works
In this paper, an FS-ISMPC is presented for controlling a PMSM.The cost function is replaced by an SM existence condition.The stability and robustness of the proposed FSISMPC are theoretically proven, but also via MATLAB and real-time HIL simulations.The inductance and resistance values are not required in the cost function since the integral term reduces the RMSE.The proposed controller offers remarkable accuracy, robustness, low computational burden, and easy tuning for implementation.The THD of the proposal is lower than classical FS-MPC, even at low load torque.According to the torque fluctuation analysis, the value of the torque fluctuation of the FS-MPC is 0.380 Nm, while the value of torque fluctuation of the FS-ISMPC is 0.342 Nm; consequently, the torque fluctuation is reduced by 11%.
In future works, it might be possible to study alternative methods to enhance rejection for more complex loads, such as time-varying torque.As an alternative, a fixed-switching method can be included to increase global efficiency.Additionally, another type of nonlinear sliding surface should be explored as a case study.Also, the implementation of the online system identification approach may enhance the robustness of the proposed current controller.

Figure 1 .
Figure 1.Voltage vectors of the inverter.

Figure 1 .
Figure 1.Voltage vectors of the inverter.

Figure 2 .Figure 2 .
Figure 2. Extended control set.The cost function(27) indicates the direction of the current change.Therefore, the decision function selects a voltage vector with magnitude 2 3 ⁄ .This can be solved by adding a soft constraint on the rate of voltage change.This type of functionality cannot be included in a traditional SM theory.An additional term can be included in the cost function.The resulting cost function is expressed as follows:

4. 2 .
HIL Simulation Discrete-time equations of PMSM were required for the real-time simulation.The difference equations were programmed using fixed-point in LabVIEW predefined DSP blocks.The PMSM model and proposed FS-ISMPC were implemented on an NI cRIO-9067 using a 40 MHz clock.In the case of the proposed FS-ISMPC, six PWM gate drive signals were generated by a digital I/O module NI 9401.An analog input module NI 9291 was used for stator current acquisition.In addition, an isolated frequency input module NI 9326 was used for encoder signal acquisition.On the other hand, the PMSM model required a DAC module NI 9262 to generate the stator current.The encoder signal was generated by a digital I/O module NI 9401.The schematic diagram of overall system interconnections is shown in Figure 9.

Figure 12 .
Figure 12.THD of stator current under different load conditions.

Figure 12 .
Figure 12.THD of stator current under different load conditions.

Table 1 .
Voltage vector extended control set.

Table 1 .
Voltage vector extended control set.

Table 2 .
Parameters of the PMSM.

Table 3 .
Comparison between existing strategies.

Table 3 .
Comparison between existing strategies.

Table 4 .
Hardware resources employed in control strategies.

Table 4 .
Hardware resources employed control strategies.