Abstract

The dynamics of the permanent magnet synchronous motor (PMSM) are described by nonlinear equations, which present challenges. Variations in external factors such as unidentified disturbances (loads) and evolving motor properties add complexity to control efforts. To tackle these intricacies and limitations, a nonlinear control approach is essential. Recent attention has turned to employing predictive control techniques for nonlinear multivariable systems, offering an intriguing avenue for research. In this context, this study introduces a novel hybrid control approach that addresses nonlinearity, parametric fluctuations, and external disturbances. The method combines two essential components: first, the outer loop utilizes high-order sliding mode control (HSMC) to optimize torque and trajectory speed, mitigating chattering phenomena while preserving the PMSM’s convergence and robustness traits. The inner loop, known as the current control, employs the newly developed nonlinear robust generalized predictive control (RNGPC) technique. Importantly, this strategy circumvents the need for direct measurement and observation of external disturbances and parameter uncertainties. The proposed strategy follows a two-phase process. Initially, the reference quadratic current is designed using the electromagnetic torque computed via HSMC, subsequently determining the necessary current to achieve the desired torque. The second phase involves computing the controller law through the robust generalized nonlinear predictive control technique. The approach’s strength lies in its ability to maintain stability and convergence in the face of external disturbances and parameter fluctuations, without necessitating precise measurements or knowledge of the disturbances. To validate the proposed control approach, simulation and experimental tests have been conducted across various operational scenarios. The obtained results demonstrate the method’s robustness against external disturbances and parameter changes while ensuring rapid convergence and reliable performance.

1. Introduction

In the modern industrial world, permanent magnet synchronous motors (PMSMs) play a significant position in the regulation of processes, automation systems, and the development of renewable energy sources [1]. All of this is attributable to their superior performance in terms of efficiency, torque, and power density as well as their dependability and reduced bulk. In addition, their construction is simpler because they lack mechanical switches, which extends their lifespan and reduces the need for ongoing maintenance [1, 2]. Additionally, these engines have the benefit of releasing zero greenhouse emissions, which is particularly advantageous for environmental conservation [3]. The PMSM, on the other hand, operates like a nonlinear system with quick dynamics, variable operating parameters, and unidentified disturbances [4, 5]. The machine’s control is made more difficult by these features. Numerous studies on the control of PMSM have been published in the literature and the business sector as solutions to the aforementioned issues. The current research indicates that the controls based on linear and nonlinear techniques are controls that are both highly common and useful.

The widely utilized proportional-integral (PI) control is a linear control technique. It generates a continuous reference output, which subsequently undergoes conversion into a digital format via pulse width modulation (PWM)—a fundamental control strategy. Yet, when striving for heightened performance and precision in speed regulation, PI controllers fall short. Alternative methods gaining popularity include state feedback control [6] and impulse control [7]. Remarkably, these approaches share a common requirement: the integration of PWM. Conventional linear control system design typically assumes operation within a linear region. However, the complexities and constraints within power electronics and drive systems, often unreported, introduce numerous limitations and nonlinearities [8]. Such traditional control paradigms might prove insufficient for systems featuring nonlinearity or variable parameters. Their susceptibility to fragility becomes pronounced, especially when stringent demands for accuracy and dynamic system attributes are at play. Consequently, the need arises for control strategies capable of resilience against parameter variations, disturbances, and nonlinearities.

Many methods have been tried to account for the permanent magnet synchronous machine’s nonlinearities. In [9], direct control of the speed associated with a state-dependent Riccati equation is described; two explicit limitations are the field-weakening curve and the current amplitude. The cost function at the controller arrival is known, and the problem is, therefore, formulated as a quadratic program with a quadratic constraint. A new extended state observer using sliding mode is proposed in [10] to enhance the disturbance compensation and rejection as well as the dynamical efficiency of PMSM control systems. For a more precise comparison, an extended observer that is based on the fast terminal sliding mode control strategy is described. It has the benefit of greater robustness against load disturbances, finite time integration, and a considerable reduction of the “chattering” phenomenon. An improved nonlinear flux observer is put forth in [11]. Studying the method of rotor position estimate from flux monitoring comes first. The limitations of classic rotor flux variation estimation methods are then investigated, including classical integrator saturation, low-pass filter amplitude decreasing, and phase change. A fuzzy adaptive controller is provided in [12]. The Takagi–Sugeno fuzzy membership criterion allows you to convert the nonlinear PMSM model into equivalent linear submodels. Then, in collaboration with a fractional sliding surface that has an integral criterion, an adaptive controller is developed in order to regulate the PMSM. The authors of [13] expose a sliding mode control (SMC) based on an adaptive speed controller. Using a nonlinear disturbance observer (DO), the hybrid controller SMC is constructed in [14]. The most effective strategy for enhancing the drive systems’ ability to reject disturbances is DO-based control. Its performance in dynamic control and load torque disturbance rejection capabilities is weak in the middle. As a result, although the sliding mode occasionally results in high-frequency shifts (chattering), these switches instead produce unwanted behaviors that have the potential to destabilize, harm, or even destroy the system under consideration. Another control strategy that is applied to PMSM control called the “passivity-based control (PBC)” strategy emerges as a distinctive approach that takes into account the intricate interplay between the motor’s electrical and mechanical components, subject to specific conditions [1]. PBC manifests in several variants, such as passivity-based current control [15], voltage control [16], and interconnection and damping assignment PBC [17], each catering to precise control objectives within the PMSM system. Moreover, recent strides in PMSM control have introduced pioneering methodologies to elevate performance and resilience. For instance, a robust backstepping compensator, coupled with a nonlinear disturbance observer, fortifies the system against disturbances [18]. This compensator offers improved disturbance rejection capabilities, bolstering the motor’s stability and robustness in the presence of external perturbations. Additionally, sensorless control strategies built upon a nonlinear flux observer [19] have gained prominence. These sensorless techniques enable accurate estimation of crucial rotor parameters, such as position and speed, without the need for additional sensors. While these advancements hold promise for simplifying system design and reducing hardware costs, they are not without their challenges. Implementing robust compensators may require careful tuning, and sensorless techniques are often sensitive to parameter variations and may have limitations in rapidly changing operating conditions. Nonetheless, these pioneering methodologies represent valuable contributions to the field of PMSM control, addressing the need for improved performance and resilience in various applications.

Model predictive control (MPC), presently considered one of the most trustworthy control strategies by many researchers, is garnering a lot of interest due to its straightforward implementation, its capacity for direct management of constraints and nonlinearities of the systems, which guarantees satisfactory system performances [20]. MPC is a feedback control algorithm that makes use of a model to forecast outputs over a given period of time. These forecasts are then used to choose the best control by solving a particular optimization problem while adhering to a predefined constraint (cost function) [21]. The three steps of the MPC approach are the feedback structure, the regressive optimization, and the predictive model.

Many composite algorithms based on MPC have been put out in recent years to improve PMSM control performance due to the rapid development of microcontrollers and advances in MPC research [22, 23]. In [24], a cascaded MPC structure with speed control as the outer loop and current control as the inner loop is presented for the PMSM. The external-loop MPC design incorporates a disturbance model with signal generators for zero-frequency and first-frequency modes to lessen the impact of periodic perturbation brought on by current sensor offset inaccuracies in the velocity regulator of a PMSM. The established torque-ripple models, however, are frequently erroneous and complex [23]. To get a good estimate of the torque, a hybrid approach employing FCS-MPC with a lookup table is suggested [22]. Duty cycle control [25, 26] and quantitative search [27] are two more enhancements that have been suggested. Many of the aforementioned modifications can lessen current ripple and torque. Additionally, some researchers [28] have put a control strategy that combines MPC and observer forth [29]. The authors of [30] study the use of continuous model-time predictive control (CTMPC) to train a PMSM. The MPC problem with a nonlinear perturbation observer and an unknown load torque is solved by the CTMPC using an expansion of the Taylor series. These tests demonstrate the method’s effectiveness. However, it is impossible to see ripples brought on by a mechanical component (such as cogging torque and load oscillations) [31]. The construction of a disturbance observer is not straightforward in the case of a PMSM, which makes the analysis of the closed-loop system extremely difficult [32].

This research introduces an innovative hybrid control approach that capitalizes on high-order sliding mode control (HSMC) to attain optimal torque and trajectory speed for the outer loop. This design choice not only enables effective suppression or elimination of the chattering phenomenon but also preserves the system’s convergence and robustness attributes. Complementing this, the inner loop employs the robust generalized nonlinear predictive control technique to manage the current control aspect. The proposed control strategy is designed with a holistic understanding of the complete dynamics of the permanent magnet synchronous motor (PMSM). The development of the nonlinear generalized predictive control law is achieved by fine-tuning a newly formulated cost function. To enhance disturbance mitigation, the controller incorporates an integral action. A noteworthy aspect of this novel method is its inherent capacity to enhance system robustness without necessitating detailed knowledge of external disturbances or uncertainties in system parameters.

In this paper, a new design process of continuous model-time predictive control is studied, and a robust nonlinear generalized predictive control law is formulated by optimizing a new cost function, where integral action is added to the controller to enhance disturbance rejection. This novel control strategy offers an analytical solution for the control of multivariable nonlinear systems, eliminating the need for computationally intensive online calculations. An essential characteristic of this proposed control method is its robustness, as it does not depend on prior knowledge of external disturbances or uncertainties in system parameters to achieve superior performance.

The following succinctly expresses this work’s contribution and originality:(i)New nonlinear generalized model predictive-based high-order sliding mode control for permanent magnet synchronous machine with a new optimized cost function is proposed(ii)The proposed controller guarantees setpoint tracking performance and robustness against sudden load torque variations (external disturbance) as well as parametric variations and eliminates the effects of disturbances without the need for a disturbance observer making it easy to implement(iii)Numerous numerical simulations are carried out to demonstrate the suggested technique’s resistance to parameter changes and outside disruptions where the simulation results demonstrate the efficiency of this control, which enables the system to maintain its stability in a closed loop

The structure of this document is as follows: Section 2 describes the permanent magnet motor system. The calculation of the classical and proposed control strategy for the PMSM is discussed in Section 3. In Section 4, the simulation tests of the suggested approach are presented. Section 5 depicts the experimental results using OPAL-RT. Section 6 concludes with the key findings.

2. Permanent Magnet Synchronous Motor Dynamic Description

Dynamic modeling of PMSM is an indispensable step for control design engineering. It involves the rigorous formulation of mathematical equations that encapsulate the intricate electromagnetic and mechanical dynamics inherent in PMSM. These models serve as a foundational framework for predictive analysis, affording us the capacity to prognosticate the system’s response across a spectrum of operational parameters, such as load variations and diverse control algorithms. The paramount utility of dynamic modeling manifests in its role as an enabling instrument for optimizing motor efficiency, architecting high-fidelity control algorithms, and implementing robust fault detection mechanisms. Nevertheless, confronting the nonlinearities intrinsic to PMSM and iteratively refining parameter estimations remain formidable tasks. In spite of these complexities, dynamic modeling persists as a cornerstone of contemporary electric machines and drives research, propelling the frontier of energy-efficient and fault-tolerant motor systems [33, 34]. Assuming the rotor’s position has no effect on the inductance and that the rotor’s flux axis is parallel to the machine’s d-axis. The mathematical model of the PMSM is constructed by transforming the three-phase variables in the stator reference frame into two-phase variables in the rotor d-q reference frame [6]. In this case, the nonlinear mathematical model of the PMSM is given bywhere , , and are the stator per phase (Ohm) and direct and quadrature axis stator self-inductances in the rotor reference frame (H), respectively. P is a number of poles-pairs, is links between armatures flux created by rotor magnets (Wb), and J is the inertia moment (kg.m2). Tem is the electromagnetic torque (N-m), J is the inertia moment (.m2), is mechanical rotor speed (rad/sec), and f represents the coefficient of viscous friction (N.m.s/rad).

The synchronous machine model can be expressed as follows:where is the stator currents vector in the dq-frame, is the stator inductions matrix in dq-frame, is the flux linkages’ vector in the dq-frame, is the voltage stator’s vector in the dq-frame, is the stator resistance matrix in the dq-frame, , and can be written as follows:

The dynamics of the current-controlled PMSM can be reduced to the following model:

3. Design of the Proposed Control Approach

Figure 1 illustrates the computational process of the explored strategy, which has two distinct components: the first phase is to design the reference quadratic current using the electromagnetic torque calculated by the HSMC technique, and the required current is then calculated using the required torque. In the second part, the controller law is calculated using the robust generalized nonlinear predictive control technique.

If the direct current id is zero, PMSM runs at its maximum torque. Then, in light of the relationship (4), the d-q axis desired flux is selected as follows [8]:

The desired torque is determined by the following relationship from equations (4) and (5):

This results in

The desired flux along the quadratic axis q, according to equations (9) and (11), is defined by

3.1. Calculation of the Desired Torque

According to equation (12), the reference torque is formulated as follows:where represents the speed error between the reference and the PMSM velocity. The appropriate dynamic is to reduce this velocity tracking error as much as possible. According to equation (12), the desired torque has two drawbacks: the dependence of its convergence on the mechanical parameters of the PMSM (J, f) and it is open loop. To address these issues, in [35], the (f) term was removed and was calculated by a PID controller. However, the authors mentioned that this strategy still has a drawback with the change of J due to the fixed gains of the PID. To address this drawback, SMC is proposed given its high stability, fast dynamic response, and robustness ability to replace PI loop [36]. However, in reality, the sliding approach results in “chattering,” which is a sort of high-switching frequency that leads to unintended dynamics, which can destabilize, deteriorate, or even destruct the system under investigation. To overcome the chattering challenge, a high-order SMC is established, which operates on the assumption of avoiding singularities in the scheme’s higher derivatives, in order to overcome the chattering challenge and compensate for the disturbance of the resistive torque in the speed response, and we propose to control the machine using the HSMC strategy to replace the PID and calculate the required torque as shown in the following equation:where  > 0,  > 0, and ε =  represent the speed error. Referring to a classic cascade control, the input quantity of the system is the reference speed which is compared to the real speed, to generate the setpoint of the transverse component of the current, using the HSMC control law described by the equation (14) and using equation (11), and the setpoint of the transverse component of the current is given by

3.2. Model Predictive Control Theory

Model predictive control (MPC) is an advanced control strategy employed in various engineering applications, including the control of permanent magnet synchronous motors (PMSMs). MPC offers a predictive approach to managing the operation of PMSMs by utilizing a dynamic model of the motor system. Here is a detailed explanation of model predictive control in the context of PMSMs: model predictive control starts with a detailed mathematical model of the PMSM, which incorporates the electrical, mechanical, and magnetic dynamics of the motor. This model is used to predict how the motor will behave over a defined prediction horizon into the future. The control objective is to optimize control inputs, typically voltage or current, over this prediction horizon while considering constraints on variables such as current limits, voltage limits, and motor speed. MPC continuously reevaluates and adjusts the control inputs at each control step, ensuring that the system closely follows desired trajectories and minimizes a predefined cost function [35, 36].

One of the key advantages of MPC for PMSM control is its ability to handle complex and nonlinear dynamics, making it suitable for high-performance applications. MPC also accounts for constraints, ensuring that the motor operates safely within its specified limits, which can be crucial in real-world applications. However, MPC does come with some challenges. It requires an accurate dynamic model of the motor, which may be difficult to obtain in practice due to uncertainties or parameter variations. Additionally, the computational demands of MPC can be significant, especially for high-speed control loops, although advances in hardware and algorithms have helped mitigate this issue. In summary, model predictive control is a powerful strategy for achieving precise and dynamic control of permanent magnet synchronous motors, but its effectiveness depends on the quality of the dynamic model and the computational resources available [37]. For more details about the theory of MPC and its applications, the reader is referred to [38, 39].

The cost function in MPC for PMSMs serves as a cornerstone in achieving optimal motor control. It acts as the guiding criterion for the MPC controller, defining the performance goals and constraints for the system. By formulating a well-designed cost function, engineers can precisely specify the desired trade-offs among various aspects of motor performance, including speed regulation, torque accuracy, energy efficiency, and system stability. Additionally, the cost function plays a crucial role in handling operational constraints, ensuring that control inputs remain within safe limits while striving for optimal performance. MPC’s ability to incorporate multiobjective optimization within the cost function enables engineers to balance conflicting goals effectively. Furthermore, the adaptability of the cost function allows MPC to respond to changing operating conditions and disturbances, making it a valuable tool for achieving precise and robust control of PMSMs in diverse applications [40].

3.3. Classical Nonlinear Generalized Predictive Control Design (NGPC)

The control approach proposed in this study is based on MPC, and it is currently regarded by many scientists as one of the most reliable control strategies and attracts a lot of attention due to its simple implementation and its ability to directly handle system constraints and nonlinearities, thus ensuring satisfactory system performance [15]. MPC is a feedback control algorithm that uses a model to predict future outputs over a specified period of time, and these predictions are then used to select the optimal control by solving a specific optimization problem while satisfying a predefined constraint (cost function) [16, 24]. The MPC method consists of three steps: the predictive model, the regressive optimization, and the feedback structure. In this paper, the robustness of the classical nonlinear generalized predictive control (NGPC), based on Taylor series expansion, is improved by revising its cost function.

In order to accommodate for the modularization errors and external disturbances comprehensively, the subsequent conditions have been delineated:

The electrical subsystem model for the synchronous machine, considering the influence of (16), may be articulated in the following manner:

The components and correspond to fluctuations in parameters and are expounded as follows:

In the absence of a precise understanding of the dynamics underlying various uncertainties, it is postulated that their progression occurs at a comparatively gradual pace in relation to the system’s time constants. Consequently, we may express it as follows:

The bilinear system that represents the electrical subsystem could be written in the following form:with: x(t) =  is the vector of states; is the output vector; the controlling vector is ;  = [] = =; the vector field f is given by  = ; the vector of disturbances caused by the parameter variations is . The objective of the controller is the regulation of the current components, which means that the output vector is .

To surmount the challenge of real-time computation and attain a closed-form optimal nonlinear generalized predictive control (NGPC), a novel approach has been posited. This method involves the constraint of control order to zero, thereby ensuring the constancy of control effort within the prediction interval. An analytical solution can be derived by setting the prediction horizon to zero. Predictive control’s fundamental objective lies in the computation of control u(t) such that the forthcoming motor outputs, denoted as for , converge towards , all while taking into account the presence of perturbations. This objective is realized through the minimization of the cost function over a prediction horizon of time [37].with: , , and signifies the prediction time horizon, wherein signifies the envisioned future reference trajectory, while signifies the anticipated value of the system’s output τ steps ahead. Consequently, the quadratic performance index embodied in the cost function undergoes a modification as follows:

The prediction of the output is computed through the utilization of a Taylor series expansion:

Let us denote the relative degree of each output : , which determines the number of times the output must be differentiated before the input appears. The Lie derivative of the functions along a vector field is denoted using the following notation: [32].

We allow to represent the relative degree associated with each output : , a parameter that signifies the number of differentiations the output y_i(t) must undergo prior to the input becoming apparent:

Employing equation (20):

The relative degree of the outputs and is denoted as . This signifies that the Lie derivatives of the functions are nonzero and may be articulated as follows:

In order to ascertain the optimal order, it is imperative to satisfy the following prerequisite conditions:

By integrating equations (26) and (27) into equation (22) and subsequently minimizing the cost function (22), the resultant optimal nonlinear control can be elucidated as follows:

With:

The matrixes , , and are presented as follows:

3.4. Stability Analysis

To analyze the stability of the closed-loop system, it is necessary to determine the tracking errors at the origin. This can be achieved by obtaining the characteristic equation of the closed-loop system, which is derived by substituting equation (29) into equation (25):

The poles of the characteristic equation are as follows: ; . The closed-loop system attains asymptotic stability owing to the presence of negative real parts in all of its poles. When knowledge of the disturbance is available, the dynamics of the tracking error are solely dictated by the prediction time, with a quicker response corresponding to a shorter prediction time. Nevertheless, even when the resistive torque is known, the identification of uncertainties and model variations remains a challenging task, necessitating the intervention of an observer. The incorporation of disturbance compensation in the controller is intricate due to the relative degree of the disturbance being lower than that of the input [32]. Furthermore, if the disturbance is neglected within the controller, it leads to a steady-state error in the closed-loop system, as delineated in the ensuing equation:

3.5. Robust Nonlinear Generalized Predictive Control Design (RNGPC)

The principal limitation of the aforementioned classical predictive control resides in its reliance upon acquiring knowledge about disturbances, a task that proves challenging to procure and must be estimated through the expertise of an observer. This challenge escalates in situations where the perturbation rate lags behind that of the primary source, as exemplified in the context of PMSM. In such instances, crafting a precise disturbance observation becomes an undertaking, leading to a heightened level of complexity in the design of the closed-loop system.

To improve disturbance mitigation, we have introduced an integral action within the controller. The noteworthy attribute of this proposed control scheme is its capability to enhance robustness without the need for explicit knowledge of external disturbances and parameter uncertainties. The research methodology employed comprises five principal steps, as depicted in Figure 2.

The quadrature criterion translating the objective of the internal loop that is proposed is written in the following form:where are the prediction time for output 1 and 2, respectively. The integral of the sortie error is i = d, q. The sortie error with the desired trajectory and the system output is i = d, q, with are the prediction at τ steps ahead of the system output and that of the desired trajectory in the future, respectively.

The predicted value of in this case is obtained by a Taylor series expansion with .

If we disregard the disturbance, the expression (25) leads to the following equation:

The predicted term is calculated by the following equation:with:

Using the equation (37) in the cost function (34), we will have the following equation:with:

In order to find the optimal order, we must satisfy the following necessary conditions:

By directly applying the control law defined by (39), we obtain the following optimal control law in the sense of the criterion (41):with:

The control design methodology encompasses several key steps as shown in Figure 2. First, a state model is established for the PMSM in accordance with equation (1). Next, leveraging high-order sliding mode control, the optimal torque is calculated as outlined in equation (14). To address the influence of unknown disturbances, a crucial step involves the selection of a suitable cost function that incorporates integral action within the optimal control expression, as described by equation (34). Employing Taylor series development, the integral of error outputs and their corresponding references are predicted, as detailed in equations (39)–(42). The culmination of these efforts involves the computation of optimal predictive control, achieved by optimizing the performance criterion articulated in equation (14).

The proposed new controller incorporates integral action; therefore, if the closed-loop system is stable, the steady-state error is eliminated despite the unknown disturbances. Therefore, it is simple to construct the controller provided by (42) since no disturbances are included.

3.6. The Closed-Loop System’s Stability

To assess the stability of the closed-loop system, it is necessary to look at the stability of the output tracking errors at the origin. The following characteristic equation of the closed-loop system of the outer loop is produced by substituting (42) into (36):

The poles of the characteristic equation are as follows:

Because every poll has a negative real portion, the closed-loop system is asymptotically stable. In the case where the disturbance is known, the dynamics of the tracking error depend only on prediction time. The smaller the prediction time, the faster the response.

4. Simulation results

Simulations were run using the Matlab/Simulink program to assess the effectiveness and performance of the suggested control. The predictive times and are taken 0.7 ms. The sampling time of the controller and the sampling time in the mathematical model of the PMSM are chosen equal to 10−5s. The pole placement approach is used to determine the HSMC gains and . The values used are = 13 and = 2000. The reference trajectory tracking performances are studied under unknown load torque and parameter uncertainties. The reference velocity passes through a filter so that the dynamics of the reference trajectory are adequate, and this avoids a strong phase current. The motor is driven by a voltage inverter under PWM control, and the parameters of the investigated PMSM are specified in Table 1.

4.1. Performance Evaluation for Constants Parameter Values

Within the dedicated section, we engage in a comprehensive assessment of the proposed controller’s performance while the PMSM operates with fixed parameters under varying load torque conditions. This rigorous evaluation is a critical component of our research, aiming to provide a deep understanding of how the controller responds to different load scenarios.

Throughout this section, we meticulously investigate the system’s behavior across specific time intervals, each representing a distinct phase of our analysis. These time intervals are denoted as tϵ [0 1] s, [1 3] s, [3 6] s, [7 9] s, and [9 12] s, and they play a pivotal role in our evaluation framework. Within each interval, we precisely define the magnitude of the resistive torque applied to the PMSM. The resistive torque profiles are as follows:(i)In the initial time interval [0 1] s, the system operates under a constant resistive torque of 0 Nm(ii)Moving to the interval [1 3] s, the resistive torque is elevated to 0.5 Nm(iii)During the subsequent phase of [3 6] s, the resistive torque returns to 0 Nm(iv)As we progress to [7 9] s, the system experiences another episode of resistive torque, set at 0.5 Nm(v)Finally, in the concluding interval of [9 12] s, the resistive torque is once again reduced to 0 Nm

This meticulous approach to performance evaluation enables us to gain in-depth insights into how the proposed controller reacts to varying load torque conditions. It empowers us to draw meaningful conclusions regarding the controller’s effectiveness, stability, and adaptability across a spectrum of real-world operational scenarios. These findings contribute significantly to the broader understanding of our research outcomes and the controller’s potential applications.

Figure 3 showcases the simulation outcomes for the velocity trajectory tracking of RNGPC and the proposed control while accounting for varying load torque. Notably, the proposed controller effectively neutralizes the influence exerted by the resistive torque. Remarkably, the speed signal demonstrates an impressively prompt response time, seamlessly maintaining its reference point with an exceptionally brief latency.

Figure 4 shows the simulation outcomes for the speed trajectory tracking error, measured in (pu), of both RNGPC and the proposed control, while accounting for varying load torque. As depicted in the graphs, in both control strategies, the error swiftly converges to 0 within a remarkably short timeframe and attains a steady state of zero for every change in load torque. However, it is worth noting that the proposed control exhibits superior error convergence to 0 compared to RNGPC across all variations in load torque. Figure 5 shows the simulation outcomes for the electromagnetic torque and load torque, comparing the performance of RNGPC and the proposed control under varying resistive torque conditions. From the depicted plots, it is evident that the electromagnetic torque progressively rises until it reaches a magnitude equivalent to the combined load torque and friction, thereby precisely tracking their values.

Figure 6 illustrates the simulation outcomes for the stator current components, and , under the influence of varying load torque, specifically with the implementation of the proposed control. The figure highlights that, with the proposed control, the component remains consistently aligned with its reference value of zero across all load torque variations. Additionally, the component aligns itself with its reference value, denoted as iqref, and impeccably tracks it for every change in load torque. It is worth noting that the oscillations observed in the signals are attributed to the motor supply inverter, while the peaks are a consequence of the form of the setpoint speed. Notably, the proposed method delivers commendable performance, ensuring stability across all signals.

Figure 7 exhibits the simulation outcomes depicting the evolution of the current for both RNGPC and the proposed control, considering variations in load torque. Notably, the proposed control demonstrates commendable performance, ensuring stability across all signals. Consequently, the observed peaks can be attributed to the specific shape or form of the input.

4.2. Robustness Tests

To comprehensively examine the mathematical model of the PMSM, a series of simulations were conducted, encompassing various parameter variations. In each simulation, a single parameter was modified within the time interval tϵ [5 7] s. Specifically, the robustness tests involved altering the stator resistance Rs by +100%, decreasing the magnet flux by −20%, and increasing the coefficient of viscous friction f by +5%. Furthermore, the load torque was set to 1 Nm within the time range of tϵ [2 7] s, while a setpoint step of 120 rads/s was applied for each test.

Figure 8 presents the simulation results for the velocity trajectory tracking of both RNGPC and the proposed control, considering fluctuations in both load torque and machine parameters. The visual representations within Figure 8 lead to the conclusion that the motor speed adeptly tracks its desired trajectory, demonstrating a rapid response and effective rejection of disturbances for both control algorithms. Nonetheless, it is evident that the proposed algorithm exhibits enhanced stability attributes, characterized by a robust response and proficient disturbance rejection capabilities.

Figure 9 depicts the simulation results for the speed trajectory tracking error, measured in (pu), comparing the performance of RNGPC and the proposed control across variations in resistive torque and machine parameters. The results clearly indicate that the proposed control exhibits significantly lower speed tracking errors compared to RNGPC. Furthermore, the error converges rapidly to zero and eventually achieves a steady state. Figure 10 presents the simulation results for the electromagnetic torque and load torque of the machine under the influence of variations in resistive torque and machine parameters. Both the proposed control and RNGPC are displayed in the graphs. As observed, the electromagnetic torque gradually increases until it reaches a magnitude equivalent to the combined load torque and friction, precisely aligning with these values.

Figure 11 shows the armature current components, and axis, for different variations in resistive torque and machine parameters, as observed in both RNGPC and the proposed control. Upon careful examination, it is evident that the axis component remains consistently at zero for all variations in load torque and machine parameters. However, it is noteworthy that the axis component fails to accurately track its reference value under these conditions. To assess the quality of the controlled responses, two commonly used metrics, namely, the integral time-weighted absolute error (ITAE) and integral squared error (ISE), were employed in conjunction with different control strategies. The corresponding results are presented in Figures 12 and 13. These findings clearly demonstrate that the responses obtained through the proposed strategy generally outperform those obtained by other techniques, including NGPC with observer and RNGPC.

The findings presented in this study support the objectives outlined in the introduction section, confirming the efficacy of the proposed technique. Specifically, the suggested approach successfully achieves the goals of maintaining the motor speed at its designated reference value and ensuring the efficient, secure, and reliable operation of the PMSM, even in the presence of potential electrical power disruptions.

5. Experimental Results

The OPAL-RT system employs hardware-in-the-loop (HIL) simulation, bridging software-based simulations and real-world hardware. It integrates the OP 4510 board and related components into a real-time simulation environment. This board incorporates powerful field-programmable gate array (FPGA) blocks for emulating and interacting with simulated systems. The RT-Lab interface links MATLAB/Simulink to real-time hardware, enabling interactive feedback between virtual models and physical components. HIL simulation with OPAL-RT is valuable for testing control algorithms, validating designs, analyzing complex systems, and reducing the need for costly real-world testing [41, 42].

The configuration of the real-time simulator setup is depicted in Figure 14. It involves several integral components, namely, (1) the MATLAB/Simulink software and RT-Lab platform for execution, (2) a host PC, (3) the OPAL-RT 4510 equipment, and (4) a digital oscilloscope. The process unfolded with the decomposition and adaptation of the PMSM simulation system for integration into the RT-Lab platform, eventually culminating in the execution of real-time simulations.

The experimental framework was further manifested through Figures 1517, which show the results obtained from the proposed technique when subjected to perturbations in load torque. Remarkably, the outcomes derived from the discrete real-time simulator, RT-LAB, exhibit a remarkable proximity to the results anticipated from the simulation. This underscores the fidelity and accuracy of the real-time simulation process facilitated by the OPAL-RT system.

Figure 15 shows the simulation results pertaining to rotor speed trajectory tracking. The plot clearly demonstrates the remarkable fidelity between the actual rotor speed and the reference trajectory. Even in the presence of load torque, the control system effectively eliminates steady-state errors, ensuring precise tracking. Moving to Figure 16, we delve into the evolution of electromagnetic torque. Here, the measured torque exhibits an impressive performance by closely tracking its reference with minimal ripple, even when dealing with abrupt trajectory changes. This observation underscores the robustness and accuracy of the control approach in maintaining torque control objectives. The simulation results for the d-axis component of the armature current are presented in Figure 17. Notably, the d-axis current component remains consistently aligned with its prescribed reference, demonstrating the controller’s ability to maintain desired current values accurately.

Thus, these experimental findings serve as compelling evidence of the validity and effectiveness of the proposed control approach. The close agreement between simulation and experimental results attests to the robustness and real-time applicability of the control strategy, reaffirming its potential for practical implementation in various motor control applications.

6. Conclusion

This paper introduces an innovative control approach that combines HSMC with generalized nonlinear robust predictive control (RNGPC) for the PMSM. The primary control objective is to achieve accurate speed tracking and ensure robustness against external disturbances and parameter uncertainties. To accomplish this, the HSMC controller is first employed to determine the current reference (iqref), followed by the utilization of the RNGPC controller to determine the reference voltage. A key contribution of this work is the introduction of a novel finite horizon cost function for RNGPC, which incorporates integral action in the control loop, thereby enhancing robustness against parametric uncertainties and external disturbances.

One notable feature of this method is its independence from a disturbance observer, yet it significantly enhances disturbance rejection and robustness against parameter variations. This unique aspect of the proposed approach sets it apart in the realm of motor control strategies. To thoroughly assess the effectiveness of the proposed controller, comprehensive testing is conducted under diverse operating conditions, including scenarios with mismatched parameters and external disturbances. To provide a clearer analysis and discussion of the presented results, we introduce performance indices and metrics that highlight the controller’s capabilities:(i)Tracking Performance: The tracking error, represented as the deviation between the actual speed and the reference trajectory, is a critical metric. The results demonstrate that the proposed control approach exhibits minimal tracking errors, signifying its ability to accurately track desired speed profiles.(ii)Robustness Evaluation: Robustness is evaluated by introducing external disturbances and parameter uncertainties. Metrics such as disturbance rejection ratios and parameter sensitivity analysis provide insights into how well the controller maintains performance in the presence of these challenges.(iii)Convergence Rate: The speed at which the controller converges to the desired setpoints is a vital aspect of control performance. Convergence indices are used to evaluate the controller’s speed of response.(iv)Simplicity of Implementation: The ease of implementing the proposed control approach is considered. This aspect is discussed in terms of computational complexity and practical feasibility using OPAL-RT.

Evaluating these performance indices allows for a more detailed and comprehensive analysis of the presented results. It provides a clearer understanding of the controller’s strengths in terms of speed tracking, reactive power optimization, disturbance rejection, and robustness against parameter uncertainties, ultimately affirming its suitability for a wide range of practical motor control applications. The simulation results provide clear evidence of the controller’s robustness, demonstrating its ability to handle parameter modifications and changes in load torque. The proposed control approach exhibits quick convergence, high stability, and minimal tracking errors while remaining simple to implement.

Data Availability

No data were available for this research work.

Conflicts of Interest

The authors declare that there are no conflicts of interest.

Authors’ Contributions

Hafidh Djouadi conceptualized the study, proposed the methodology, provided the software, and wrote the original draft of the manuscript. Kamel Ouari and Houcine Lehouche curated the data and wrote the original draft of the manuscript. Youcef Belkhier curated the data, wrote the original draft of the manuscript, and proposed the methodology.