Next Article in Journal
Memetic Algorithm with Isomorphic Transcoding for UAV Deployment Optimization in Energy-Efficient AIoT Data Collection
Previous Article in Journal
Dual-Population Adaptive Differential Evolution Algorithm L-NTADE
Previous Article in Special Issue
Bearing Fault Diagnosis for an Induction Motor Controlled by an Artificial Neural Network—Direct Torque Control Using the Hilbert Transform
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Improvement of Linear and Nonlinear Control for PMSM Using Computational Intelligence and Reinforcement Learning

by
Marcel Nicola
* and
Claudiu-Ionel Nicola
*
Research and Development Department, National Institute for Research, Development and Testing in Electrical Engineering—ICMET Craiova, 200746 Craiova, Romania
*
Authors to whom correspondence should be addressed.
Submission received: 22 November 2022 / Revised: 6 December 2022 / Accepted: 7 December 2022 / Published: 9 December 2022
(This article belongs to the Special Issue Modeling and Simulation of Control System)

Abstract

:
Starting from the nonlinear operating equations of the permanent magnet synchronous motor (PMSM) and from the global strategy of the field-oriented control (FOC), this article compares the linear and nonlinear control of a PMSM. It presents the linear quadratic regulator (LQR) algorithm as a linear control algorithm, in addition to that obtained through feedback linearization (FL). Naturally, the nonlinear approach through the Lyapunov and Hamiltonian functions leads to results that are superior to those of the linear algorithms. With the particle swarm optimization (PSO), simulated annealing (SA), genetic algorithm (GA), and gray wolf Optimization (GWO) computational intelligence (CI) algorithms, the performance of the PMSM–control system (CS) was optimized by obtaining parameter vectors from the control algorithms by optimizing specific performance indices. Superior performance of the PMSM–CS was also obtained by using reinforcement learning (RL) algorithms, which provided correction command signals (CCSs) after the training stages. Starting from the PMSM–CS performance that was obtained for a benchmark, there were four types of linear and nonlinear control algorithms for the control of a PMSM, together with the means of improving the PMSM–CS performance by using CI algorithms and RL–twin delayed deep deterministic policy gradient (TD3) agent algorithms. The article also presents experimental results that confirm the superiority of PMSM–CS–CI over classical PI-type controllers.
Keywords:
PMSM; FL; PCH; CI; RL
MSC:
93C05; 93C10; 93D05; 93D15

1. Introduction

The study of PMSM represents the increasing concern from the researchers from both the constructive point of view and the point of view of the performance of their control systems. Due to their constructive advantages, as well as the performance of their control systems, PMSMs are pieces of equipment that are increasingly used in robotics, electric drives, numerical controls, computer peripherals, the aerospace industry, etc. [1,2,3,4].
The primary control strategy of a PMSM is direct torque control (DTC) [5], which is based on the direct control of torque and flux with the help of simple ON/OFF-type controllers. For superior PMSM control performance, the FOC-type control strategy is used. In their global FOC structure PMSM control systems can have ON/OFF, PI, or more sophisticated controllers that use adaptive, predictive, robust, sliding-mode control (SMC), or synergetic algorithms for their synthesis [6,7,8,9,10,11]. Another approach to these controllers is the use of fuzzy logic elements, artificial neural networks, and neuro-fuzzy combinations thereof in their synthesis [12].
From the point of view of the equations describing the operation of a PMSM, they are obviously nonlinear, but the approaches regarding the synthesis of the controllers can consist in both linearization and the use of techniques specific to nonlinear control systems. Thus, from the first category, this article presents LQR algorithms and a control algorithm obtained through FL [13,14,15,16,17,18,19].
Regarding the nonlinear approach, this article presents control algorithms that were obtained by using Lyapunov functions, as well as Hamiltonian control algorithms that were obtained by rewriting the operating equations of a PMSM in a specific form [20,21,22,23,24,25,26,27,28,29].
An important role in optimizing the parameter vectors in control algorithms is played by the use of CI-type algorithms. Of these, four algorithms were chosen, and these can be considered representative of the category of CI-type algorithms: PSO, SA, GA, and GWO [30,31,32,33,34].
In addition, a special role in improving the performance of PMSM–CS is played by the use of the RL-TD3 agent algorithm. RL is a framework for learning the relationships between states that are characteristic of the description of a system and the actions on it. An agent performs the maximization of a reward based on the actions on the system while also taking observations of the system into account. Thus, a similarity between the interaction of this RL-TD3 agent with a controlled process and that of a controller can be noted [35,36,37,38].
One of the advantages of the RL-TD3 agent is that it does not use a mathematical model of a controlled process, but provides CCS after the training stages in order to improve the performance of PMSM–CS. Therefore, starting from the PMSM–CS performance obtained for a benchmark, this article presents four types of linear and nonlinear control algorithms for the control of a PMSM, together with a means of improving the PMSM–CS performance by using CI algorithms and the RL-TD3 agent algorithm.
Thus, the main contributions of this article can be summarized as follows:
  • The synthesis of linear controllers for the control of a PMSM based on LQR-type and FL-type control algorithms;
  • The synthesis of nonlinear controllers for the control of a PMSM based on nonlinear-type and PCH-type control algorithms;
  • The synthesis of improved control structures of a PMSM based on linear/nonlinear controllers by using CI-type algorithms for the optimization of the control algorithms’ parameters and an RL-TD3-type agent for the CCSs of the controllers;
  • Validation of the proposed control structures with numerical simulations realized in Matlab/Simulink and comparison of their performance by using the same benchmark from a series of articles: LQR-type control [14,15, FL-type control [16,19], nonlinear-type control [20,26], and PCH-type control [27,29];
  • Real-time implementation in embedded systems by completing the software-in-the-loop (SIL), processor-in-the-loop (PIL), and hardware-in-the-loop (HIL) stages, which were presented in [39,40,41,42], for the LQR-CI algorithm (for example), thus proving the superiority of its performance compared to the use of classical PI-type controllers.
The numerical simulations of the PMSM control system based on LQR, FL, nonlinear, and PCH controllers were implemented in Matlab/Simulink version 2021b and the Simscape Electrical toolbox. The numerical libraries that were applied in order to solve the ordinary differential equations that were shown during process modeling and controller synthesis were included in Matlab/Simulink, and the type of solver used was the ode8 Dormand–Prince solver.
Moreover, RL-TD3 is an actor–critic RL agent, but it is an improved variant of the deep deterministic policy gradient (DDPG) and can be considered the most suitable RL agent for the control of an industrial process—in this case, for the control of a PMSM. The RL toolbox from Matlab was used for the implementation of the RL-TD3 agent, and the Optimization toolbox from Matlab was used for the development of the CI-type algorithms.
For the real-time implementation, TMDSHVMTRPFCKIT, a high-voltage motor control development kit from Texas Instruments, was used, and the software applications were developed in the Matlab/Simulink programming environment based on the Motor-Control Blockset (MCB) and the Embedded Coder Support Package (ECSP) for TI C2000 MCU toolboxes.
The rest of this paper is organized as follows: Section 2 and Section 3 present the linear controllers, namely, the LQR controller and FL controller, respectively. The nonlinear controllers are presented in Section 4, and the PCH-type controller is presented in Section 5. Section 6 presents the CI algorithms and RL-TD3 agent algorithms. The numerical simulations are presented in Section 7, and the experimental results are presented in Section 8. Some conclusions are presented in the last section.

2. LQR Control for a PMSM

The operating equations of a PMSM in a d-q rotating reference frame are presented in the following [1,2,3,4].
d i d d t = R s L d i d + L q L d n p ω i q + 1 L d u d d i q d t = R s L q i q L d L q n p ω i d λ 0 L q n p + 1 L q u q d ω d t = 3 2 n p J λ 0 i q + L d L q i d i q 1 J T L B 0 J ω d θ e d t = n p ω
These notations are the usual ones, and they can be briefly described as follows: ud denotes the voltage on the d-axis, uq denotes the voltage on the q-axis, Rd denotes the resistance on the d-axis, Rq denotes the resistance on the q-axis, Ld denotes the inductance on the d-axis, Lq denotes the inductance on the q-axis, id denotes the current on the d-axis, iq denotes the current on the q-axis, ω denotes the PMSM’s rotor speed, B denotes the viscous friction coefficient, J denotes the moment of inertia of the PMSM rotor, np denotes the number of pole pairs, TL denotes the load torque, λ0 denotes the flux linkage, and θe denotes the electrical angle of the PMSM rotor.
Moreover, by accepting the simplified version in which Ld = Lq = L, for a surface-mounted permanent magnet, the linearized version of the system (1) can be written as in (2) [13,14,15,16].
x ˙ = A x + B u + E w y = C x
where x = i q i d ω T denotes the state vector, u = u q u d T denotes the control input, and w denotes the disturbance, which, in this case, is the load torque TL.
The forms of the matrices A, B, and E are expressed as in relation (3).
A = R L 0 λ 0 n p L 0 R L 0 3 n p λ 0 2 J 0 B J , B = 1 L 0 0 1 L 0 0 , E = 0 0 1 J , C = 0 0 1
Furthermore, Figure 1 shows the proposed control block diagram of the PMSM–CS–CI based on the LQR-type controller. Thus, it can be noted that the parameters of the LQR-type controller will be optimized by using one of the CI methods proposed in Section 1 and described in Section 6.
In addition, an optimization of the performance of PMSM–CS–CI will be performed by using an RL-TD3 agent for the CCSs. It can be specified that, in the case of the LQR-type controller, the command can be written as a linear weighted sum of the state variables; due to the structure of the neural network used (as will be presented in Section 6 and Section 7), an RL-TD3 agent will be used to optimize the LQR-type controller’s parameters.
Regarding the implementation of the LQR-type controller, it follows the basic FOC structure of the PMSM, in which id = 0 can be chosen [1,15]. Noting that in the system (1), after choosing id = 0, the first equation can be considered disjoined from the other three equations, by choosing the new state vector x = i q ω θ T , the expression of control ud is inferred, the command vector u becomes uq, and the matrices in relation (3) become:
A = R L λ 0 n p L 0 3 n p λ 0 2 J B J 0 0 1 0 , B = 1 L 0 0 , E = 0 1 J 0 , C = 0 1 0
Thus, the control law ud is expressed in the following form:
u d = L n p ω i q
By associating a performance control index in the form of Equation (6), the optimal control of the PMSM that minimizes the criterion in (6) is expressed in the form of Equation (7) [13,14,15,16].
J 0 = 1 2 0 x T Q x + u T R u d t
u = K x
In the above equations, matrices Q and R set the weights of the state vector x and the control u, and K = R 1 B T P , where the vector K = k 1 k 2 k 3 . In addition, the matrix P in the relationship above is a solution to the following Riccati matrix equation:
A T P + P A P B R 1 B T P + Q = 0
Figure 2 shows the synthesis of the implementation of controls ud and uq based on the input variables, states, and parameters of vector K, which will be optimized with CI methods.

3. FL Control for a PMSM

Though the linearization of the model in Section 2 was performed in the classical manner, in this section, the linearization of the nonlinear model (1) of the PMSM will be performed by using the feedback linearization control method. Thus, Figure 3 shows the proposed PMSM–CS–CI control block diagram based on an FL-type controller. The parameters of control laws ud and uq will be optimized with CI methods. Furthermore, an optimization of the performance of PMSM–CS–CI will be presented by using an RL-TD3 agent for CCSs.
The system (1) can be rewritten in the form of Equation (9) in order to easily follow the feedback linearization method.
f 1 = a 11 x 1 + a 12 x 2 x 3 f 2 = a 21 x 2 + a 22 x 1 x 3 + a 23 x 3 f 3 = a 31 T L + a 32 x 2 + a 33 x 3
The notations used in Equation (9) are specified below: a 11 = R L , a 12 = n p , a 21 = R L , a 22 = n p , a 23 = λ 0 n p L , a 31 = 1 J , a 32 = 3 n p λ 0 2 J , and a 33 = B J . Based on these notations, the system (9) becomes:
x ˙ = f ( x ) + i = 1 m g i ( x ) u i ; i = 1 , 2
In Equation (10), the state vector, the command vector, and the vector functions gi are defined as follows: x = [ x 1 x 2 x 3 ] T = [ i d i q ω ] T , u = [ u 1 u 2 ] T = [ u d u q ] T , g 1 = 1 L 0 0 T , and g 2 = 0 1 L 0 T .
In the general case, starting from Equation (10), this can be written in the following compact form [17,18,19]:
x ˙ = f ( x ) + g ( x ) u y = h ( x )
where x = [ x 1 , , x n ] T denotes the state vector, f(x) and g(x) denote the two n-dimensional smooth vector fields, u denotes the scalar control, y denotes the variable output, and h(x) denotes the scalar function.
Defining the relative order for the output h as a positive integer r results in the following equation:
L g L f k h ( x ) 0 , x U , 0 k r 2 L g L f k h ( x ) 0 , k = r 1
where L f k h ( x ) denotes the k-order Lie derivative of h(x) relative to f(x) and L g L f k h ( x ) denotes the Lie derivative of L f k h ( x ) relative to g(x) [17,18,19].
For linearization, the system output of the following form can be chosen:
y = c x
In this sense, the output function is derived until the control u explicitly appears in its expression:
y ( k ) = L f k h ( x ) + L g L f k 1 h ( x ) u , k = 0 , 1 , , r
By replacing the relation (12) with (14), the system of equations of the output derivatives can be obtained:
y ( k ) = L f k h ( x ) , k = 0 , 1 , , r 1 y ( r ) = L f r h ( x ) + L g L f r 1 h ( x ) u , k = r
The following transformation can be defined:
z = z 1 z 2 z 3 z r z r + 1 z n = y y ˙ y r 1 η 1 η n r = h ( x ) L f h ( x ) L r 1 h ( x ) η 1 ( x ) η n r ( x ) = Φ ( x )
In the transformation expressed in relation (16), it can be noted that the new state vector is z, and η is a function that depends on the old state vector x.
Based on these, the nonlinear system (11) to which the transformation (16) is applied can be written in the following form:
z ˙ 1 z ˙ 2 z ˙ r 1 z ˙ r = 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 z 1 z 2 z r 1 z r + 0 0 0 1 v z ˙ r + 1 z ˙ n = η ˙ 1 ( z ) η ˙ n r ( z )
In the system (17), the state vector z L = [ z 1 , , z r ] T characterizes the linear subsystem, and the state vector z N = [ z r + 1 , , z n ] T characterizes the nonlinear subsystem. The control law of the nonlinear system is expressed by the following relation: v = L f k h [ Φ 1 ( z ) ] + L g L f r 1 h [ Φ 1 ( z ) ] u . The linearized form of this control law can be chosen as follows:
v = k z L = k 1 z 1 k 2 z 2 k r z r
where k 1 , , k r denotes the coefficients of the linearized control law.
By combining Equations (15)–(18), the control law of the nonlinear system (11) can be obtained.
u = L f r h [ Φ 1 ( z ) ] k z L L g L f r 1 h [ Φ 1 ( z ) ]
In particular, in the case of the PMSM–CS described by Equation (10), the following relations can be obtained:
y = h ( x ) = h 1 h 2 = x 1 x 3 = i d ω
where y denotes the output of the system.
As in relation (14), the system output y from relation (20) can be derived, and the following relation can be written:
y ˙ 1 ( x ) = L f h 1 ( x ) + L g 1 h 1 ( x ) u d
in which the following terms can be identified: L f h 1 ( x ) = f 1 ( x ) and L g h 1 ( x ) = 1 L 0 .
Let us note that the relative degree of the output y1 is r1 = 1. Similarly, the output y2 is derived, and the following relations can be written:
y ˙ 2 ( x ) = L f h 2 ( x ) = f 3 ( x ) y ¨ 2 ( x ) = L f 2 h 2 ( x ) + L g 2 L f h 2 ( x ) u q
In Equation (22), the sizes L f 2 h 2 ( x ) = a 32 f 2 ( x ) + a 33 f 3 ( x ) and L g 2 L f h 2 ( x ) = 0 a 32 / L are identified. Let us note that the relative degree of output y1 is r1 = 1.
By writing the relations (22) in a compact manner, the following relation can be obtained:
y ˙ 1 ( x ) y ¨ 2 ( x ) = d i d d t d 2 ω d 2 t = A ( x ) + D ( x ) u d u q
where A ( x ) = f 1 ( x ) a 32 f 2 ( x ) + a 33 f 3 ( x ) , and D ( x ) = 1 L 0 0 a 32 L denotes the decoupling matrix.
Thus, the control laws ud and uq are obtained in the following form [19]:
u d u q = D 1 ( x ) v 1 v 2 A ( x )
where det ( D ) = 1 L 2 a 32 and D 1 = L 2 a 32 a 32 L 0 0 1 L .
In Equation (24), ν1 and ν2 are components that are included in the new input vector of the system. They are expressed by the following relation:
ν 1 ν 2 = y ˙ 1 y ¨ 2 = k 11 ( i d r e f i d ) k 21 ( ω r e f ω ) + k 22 ( ω ˙ r e f ω ˙ )
By including Equation (25) in (24), the following relation can be obtained:
u d u q = L 2 a 32 a 32 L 0 0 1 L k 11 ( i d r e f i d ) f 1 ( x ) k 21 ( ω r e f ω ) + k 22 ( ω ˙ r e f ω ˙ ) a 32 f 2 ( x ) a 33 f 3 ( x )
The control laws ud and uq can be inferred with components from Equation (26), as in the relations below, and Figure 4 presents the synthesis of the implementation of controls ud and uq based on the input variables, states, and parameters of the vector K = k 11 k 12 k 22 , which will be optimized with CI methods.
u d = L k 11 i d f 1 ( x ) u q = L a 32 k 21 ( ω r e f ω ) + k 22 ( ω ˙ r e f ω ˙ ) a 32 f 2 ( x ) a 33 f 3 ( x )

4. Nonlinear Control for a PMSM

In Section 2 and Section 3, the control laws of the controllers were inferred by simplifying and linearizing the system (1) and describing the PMSM’s operating equations, which were nonlinear. Thus, in this section, the notions and elements of nonlinear systems theory will be used to obtain the control laws ud and uq, and the central element, which, from the start, will be a Lyapunov function.
Thus, Figure 5 shows the proposed PMSM–CS–CI control block diagram based on a nonlinear-type controller in which the FOC-type control structure is kept. The parameters of the control laws ud and uq will be optimized with CI methods. Moreover, an optimization of the PMSM–CS–CI performance will be presented by using an RL-TD3 agent for the CCS.
Starting from Equation (1) and noting that λ d = 1 L d and λ q = 1 L q , the following form can be obtained [20,26]:
d i d d t = λ d u d + f 1 d i q d t = λ q u q + f 2
In Equation (28), the expressions of the terms f1 and f2 are given as follows:
f 1 = R s i d L d + L q n p ω i q L d f 2 = R s i q L q L d n p ω i d L q λ 0 n p ω L q
By choosing a Lyapunov function of the form
V = 0.5 i d i d r e f 2 + 0.5 i q i q r e f 2
and by deriving it, the following form can be obtained:
V ˙ = i d i d r e f i ˙ d i ˙ d r e f + i q i q r e f i ˙ q i ˙ q r e f
By using the relations (29), the following equation can be written:
V ˙ = i d i d r e f λ d u d + f 1 i ˙ d r e f + i q i q r e f λ q u q + f 2 i ˙ q r e f
In order to stabilize the system, the control laws ud and uq can be chosen from Equation (32) in the following form [20,26]:
u d = 1 λ d f 1 + i ˙ d r e f k 1 i d i d r e f u q = 1 λ q f 2 + i ˙ q r e f k 2 i q i q r e f
Moreover, by choosing the strictly positive parameters k1 and k2, the following equation can be written:
V ˙ = k 1 i d i d r e f 2 k 2 i q i q r e f 2 < 0
From Equation (34), the asymptotic stability of the closed-loop system can be obtained:
lim t i d ( t ) = i d r e f ( t ) lim t i q ( t ) = i q r e f ( t )
If it is assumed that the parametric variations in the expressions of relations f1 and f2 given in (29) can be embedded into the form of Equation (36), the robustness of the nonlinear control laws given in Equation (33) can be verified.
f i = f i n + Δ f i ; i = 1 , 2
In Equation (36), the nominal values are denoted as fin, Δfi represents the variations around the nominal functions, and fi represents the total actual functions. In addition, it is assumed that parametric uncertainties have the following upper bound:
Δ f i β i ; i = 1 , 2
By introducing Equation (36) into (28), the following can be written:
d i d d t = λ d u d + f ^ 1 + Δ f 1 d i q d t = λ q u q + f ^ 2 + Δ f 2
In the case of the above disturbed system, the Lyapunov function of the following form can be chosen:
V 1 = 0.5 i d i d r e f 2 + 0.5 i q i q r e f 2
Following the technique of Lyapunov functions, as in the previous case, the control laws can be obtained in the following form:
u d = 1 λ d f ^ 1 + i ˙ d r e f k 1 i d i d r e f k 11 s i g n i d i d r e f u q = 1 λ q f ^ 2 + i ˙ q r e f k 2 i q i q r e f k 22 s i g n i q i q r e f
By choosing k i i > β i , k i > 0 with i = 1,2, the following equation can be obtained:
V ˙ 1 = i d i d r e f Δ f 1 k 11 s i g n i d i d r e f   +   i q i q r e f Δ f 2 k 22 s i g n i q i q r e f + V ˙ < 0
By choosing coefficients kii with i = 1,2 in the form
k 11 > β 1 > Δ f 1 k 22 > β 2 > Δ f 2
the following inequality can be obtained:
V ˙ 1 < V ˙ < 0
From Equation (43), the asymptotic stability of the closed-loop system is inferred, even in the case of parametric disturbance. Figure 6 shows the synthesis of the implementation of controls ud and uq based on the input variables, states, and parameters of the vector K = k 1 k 2 , which will be optimized with CI methods.

5. PCH Control for a PMSM

Further to the approach in the previous section regarding the descriptive equations for a nonlinear PMSM, this section focuses on the PCH theory. Thus, it can be started by writing the initial system of Equation (1) in Hamiltonian form and highlighting the energy storage elements, as well as all of the interconnections with the inputs and outputs of the system. The passivity property of the system can be considered, and, by minimizing the total energy function, the control laws ud and uq, which drive the closed-circuit system to the proposed steady state, can be obtained [27,28,29].
Thus, Figure 7 shows the control block diagram of the proposed PMSM–CS–CI based on the PCH controller, in which the FOC-type control structure is kept. The parameters of the control laws ud and uq will be optimized with CI methods. Moreover, an optimization of the PMSM–CS–CI performance will be presented by using an RL-TD3 agent for the CCS.
By describing the system (1) in the form of a PCH system, as in Equation (44), the algorithm for obtaining the control laws ud and uq can be started [27,28,29]:
x ˙ = J ( x ) R ( x ) H ( x ) x + g ( x ) u y = g T ( x ) H ( x ) x
The notations in Equation (44) are common in descriptions of PCH systems, i.e., x R n denotes the energy variables, u , y R m denotes the input/output port power variables, R ( x ) = R T ( x ) 0 denotes the dissipation matrix, g(x) denotes the matrix for the interconnection, J ( x ) = J T ( x ) denotes the skew-symmetric matrix, and H(x) denotes the total stored energy function of the system.
After some calculations and rearrangements of terms, the initial system (1) can be written in the following form:
L d d i d d t = R s i d + L q n p ω i q + u d L q d i q d t = R s i q L d n p ω i d λ 0 n p ω + u q J d ω d t = 3 n p 2 λ 0 i q + L d L q i d i q T L B 0 ω + f ω
In the system (45), in addition to the usual notations presented in the description of the operating equations of the PMSM, a global term of parametric disturbance and external disturbance can be denoted as fω, and it can be expressed as follows:
f ω = Δ J ω Δ B ω + T L n p Δ L d Δ L q i d i q n p Δ λ 0 i q
where Δ L d = L d r e f L d denotes the inductance variations on the d-axis, Δ L q = L q r e f L q denotes the inductance variations on the q-axis, Δ λ 0 = λ 0 r e f λ 0 denotes the flux linkage variations, Δ B = B r e f B denotes the variations in the viscous friction coefficient, and Δ J = J r e f J denotes the variations in the moment of inertia of the PMSM’s rotor and load.
In Equation (47), the state, input, and output vectors are defined as is typical in a PCH system.
x = [ x 1 x 2 x 3 ] T = [ L d i d L q i q J ω ] T u = [ u d u q f ω ] T y = [ i d i q ω ] T
With these elements, the Hamiltonian function can be defined as in the following expression:
H ( x ) = L d i d 2 2 + L q i q 2 2 + J ω 2 2 = x 1 2 2 L d + x 2 2 2 L q + x 3 2 2 J
By derivation, the following relation can be expressed:
H ( x ) x = [ i d i q ω ] T
The characteristic elements of the PCH system are presented by identifying them in the relations given in the form:
J ( x ) = 0 0 n p x 2 0 0 n p ( x 1 + λ 0 ) n p x 2 n p ( x 1 + λ 0 ) 0 ; R ( x ) = R s 0 0 0 R s 0 0 0 B ; g ( x ) = 1 0 0 0 1 0 0 0 1
The reference vector can be chosen accordingly:
x = [ x 1 r e f x 2 r e f x 3 r e f ] T = [ L d i d r e f L q i q r e f J ω r e f ] = [ 0 L q B ω f ω / n p λ 0 J ω r e f ]
The form of the closed-circuit system is shown in the following equation:
x ˙ = J d ( x ) R d ( x ) H ( x ) x
where Jd(x) denotes the desired interconnection and Rd(x) denotes the desired damping matrix.
Based on these, the relations given in the following equations can be defined:
J d ( x ) = J ( x ) + J a ( x ) = J d T ( x ) R d ( x ) = R ( x ) + R a ( x ) = R d T ( x ) > 0
For the closed-circuit system, the Hamiltonian becomes:
H d ( x ) = x 1 x 1 r e f 2 2 L d + x 2 x 2 r e f 2 2 L q + x 3 x 3 r e f 2 2 J
Its derivative can be written in the following form:
H d ( x ) / x = [ i d i d r e f i q i q r e f ω ω r e f ]
The matrices Ja and Ra can be chosen in the following form:
J a ( x ) = 0 J 12 J 13 J 12 0 J 23 J 13 J 23 0 ; R a ( x ) = k 1 0 0 0 k 2 0 0 0 0
where J12, J13, J23 denote the interconnection parameters and k1, k2 denote the damping parameters.
Considering the fact that in the FOC strategy, iREF is set to zero, the expressions of the control laws ud and uq in the first form can be obtained as follows:
u d = k 1 i d J 12 i q i g r e f + J 13 ω ω r e f n p L q i q ω r e f u q = J 12 i d + R s i g r e f k 2 i q i g r e f J 23 ω ω r e f + n p L d i d + λ 0 ω r e f
Moreover, the global term fω becomes:
f ω = J 13 i d + J 23 i q i g r e f 3 2 n p L d i d + λ 0 i q r e f + B ω r e f
Taking the relations (51) into account by reaching the minimum function Hd (x), the desired steady states are reached under the action of the control laws ud and uq, by fulfilling the following relations:
f ω = n p λ 0 i q r e f J 13 = n p L d i q r e f J 23 = 0
By imposing the interconnection parameter J12 = 0, from expressions (57) to (59), the control laws ud and uq of the PCH-type controller can be obtained in the form of relations (60):
u d = k 1 i d n p L d i g r e f ω ω r e f n p L q i q ω r e f u q = R s i q r e f k 2 i q i q r e f + n p L d i d + λ 0 ω r e f
Figure 8 shows the synthesis of the implementation of the controls ud and uq based on the input variables, states, and parameters of the vector K = k 1 k 2 , which will be optimized with CI methods.

6. Computational Intelligence and Reinforcement Learning Algorithms for PMSM Control Optimization

In this section, the synthesis of a series of CI-type algorithms that will be used to optimize the parameters of vector K for each of the four types of controllers described in the previous sections will be presented. In addition, by using the RL-TD3 agent algorithm, improved performance of the PMSM–CS can be obtained by providing CCSs, which will overlap with the command signals provided by the four types of controllers.
In addition, in the case of the LQR-type controller, an RL-TD3 agent algorithm will be used to optimize the LQR-type controller’s parameters due to the structure of the neural network used and the fact that the control can be written as a linear weighted sum of the state variables.

6.1. PSO Algorithm

The proposed error criterion to be minimized for this type of optimization algorithm is presented in the following equation:
f ( t ) = 0 t e 2 ( t ) d t
In this equation, the error e(t) denotes the difference between the PMSM’s reference rotor speed and the PMSM’s instantaneous rotor speed:
e ( t ) = ω r e f ( t ) ω ( t )
An analogy can be made between the way that the PSO algorithm works with the representation of the trajectory of a group of particles in the state space, which, after minimizing an error criterion, gives the possibility of realizing its optimal trajectory [30,31,32,33,34]. The position and speed of each particle in the group can be denoted as xi and vi. For each of these particles, the personal optimum can be expressed as follows:
y i ( t + 1 ) = x i ( t + 1 ) i f f ( x i ( t + 1 ) ) < f ( y i ( t ) ) y i ( t ) e l s e
Let us note the neighborhood’s best position with y ^ i ; the expression for the social optimum for the neighborhood for each particle can be obtained with the following relation:
y ^ ( t ) = arg min f ( y 1 ( t ) ) , f ( y 2 ( t ) ) , , f ( y n ( t ) )
By recurrence, the following relation between the position and the speed of each particle can be obtained:
v i , j ( t ) = w v i , j ( t ) + c 1 r 1 , j ( t ) y i , j ( t ) x i , j ( t ) + c 2 r 2 , j ( t ) y ^ i , j ( t ) x ^ i , j ( t ) x i ( t + 1 ) = x i ( t ) + v i ( t + 1 )
In Equation (65), w r denotes the weight of inertia (for example, w = 0.9), i = 1 , , N , where N denotes the number of particles, j = 1 , , D , where D denotes the dimension of the problem, r1 and r2 are random numbers, and c1 and c2 are positive constants. Usually, depending on the complexity of the problem and the capacity of the computing system, the number of particles selected is N = 50, c1 = 0.12, and c2 = 1.2.
The execution of this algorithm is stopped either by using a predefined number of iterations or by achieving convergence and providing the solution, which, in our case, represents the parameters of the vector K in the structure of each control law of PMSM–CS–CI.

6.2. SA Algorithm

This optimization algorithm was inspired in its description by the analogy of the states that a solid undergoes during the cooling process. In addition, the system’s energy function can be assimilated into the objective function that is intended to be minimized. By analogy with the process of solid quenching, the minimum function to be optimized is reached when the mobility of molecules is low, namely, at low temperatures. The transition of the states is given with a probability provided by the Boltzmann–Gibbs distribution, which is presented in the following form [30,31,32,33,34]:
ϕ x i ( t ) = 1 1 + e f x i ( t ) T ( t )
where T(t) denotes the temperature parameter.
The probability of a transition between two points in which xi and xj are given takes the following form [30,31,32,33,34]:
P i j = 1 ; i f f x j < f x i e f x j f x i c b T ; o t h e r w i s e
where cb denotes the Boltzman constant.
At each iteration, the solution can be written in the following form:
x ( t + 1 ) = x ( t ) + D ( t ) r ( t )
where D denotes a matrix whose elements contain the maximum change in variables allowed and r ( t ) U ( 1 , 1 ) n x .
In addition to Equation (68), the law of evolution of the next state can be written as in Equation (69).
D ( t + 1 ) = ( 1 α ) D ( t ) + α ω R ( t )
where R(t) denotes a diagonal matrix whose elements are the values of successful changes, and α and ω are constants.
To simulate the decrease in the temperature, the following relation can be used:
T ( t + 1 ) = α T ( t ) ; α ( 0 , 1 )
The algorithm stops when convergence is reached or after a predefined number of iterations.

6.3. GA Algorithm

As indicated by its name, this optimization algorithm is inspired by genetics, i.e., by the way in which a population of chromosomes evolves through various specific mechanisms, such as selection, crossover, mutation, etc. Starting from the objective function that is characteristic of each individual, but also of those in the neighborhood, each chromosome receives a probability of selection for reproduction. This relation can be described by the following expression [30,31,32,33,34]:
A d e q u a t e ( P i n d ) = 2 P S + 2 P S 1 P i n d 1 / N i n d
where: PINDposition of the individual; NINDsize of the population; PS—selection pressure where 1 P S 2 . It can be noted that the highest value for the fitness function is obtained for PIND = NIND, and an unfitness function is obtained for PIND = 1. Another important step in the genetic algorithm is the selection of parents that will make up the new population from the current population of chromosomes. This can be done in many ways, but the basic idea is to select the best parents in hopes that they will produce the best offspring. In the case of tournament-type selection, each individual in the current population is represented by a space proportional to the value of its assessment function.
In the case of the optimization of the control parameters of PMSM–CS, the algorithm calculates the speed error eω and its derivative, as defined in Equations (72) and (73). The output is represented by the variation in the reference current Δiqref [30,31,32,33,34]:
e ω ( k ) = ω r e f ω ( k )
s e ω ( k ) = e ω ( k ) e ω ( k 1 )
where ωref denotes the PMSM’s reference rotor speed.
The speed error can be calculated and updated at each step. The numerical representation of each parameter from the K vector of PMSM–CS–CI can be chosen. The crossover probability, defined as pc, and the mutation probability, defined as pm, can be chosen. The initial population of parameters K is generated (yielding a random selection result). Δiqref is generated for each member of the population Ci with i = 1 , , n . Moreover, the value of the fitness function is assigned to each element of the population Ci, and it is expressed as follows:
p 1 = e ω ( k )
p 2 = s e ω ( k )
F = 1 α 1 p 1 2 + α 2 p 2 2
The maximum fit of the population Ci becomes C*, and the change in the control action is defined as iqref*(k) for PMSM–CS–CI:
i q r e f ( k + 1 ) = i q r e f ( k ) + Δ i q r e f ( k )
The algorithm stops when convergence is reached or after a predefined number of iterations. The criterion according to which the algorithm is carried out is based on the integral of the timed-weighted absolute error (ITAE) and has the following form:
f ( t ) = 0 t t e ( t ) d t

6.4. GWO Algorithm

This algorithm is inspired by how the grey wolf hunts in packs to catch prey. Thus, from a hierarchical point of view, the leader and the second most important are denoted as α and β, and the third most important is denoted as δ, while the least important is denoted as ω. By analogy, there are four stages, which are called searching, encircling, attacking, and hunting of the prey. After generating the number of wolves and their initial positions, the first three solutions for the best fitness function can be selected, and they are denoted as α, β, and δ, while another solution is denoted as ω. In addition, at each iteration, the position of the prey Xp(k) and the position of a wolf at the current iteration X(k) can be calculated.
Based on this, the stage called “encircling of the prey” is described by the following equations [30,31,32,33,34]:
D = C X p ( k ) X ( k )
X ( k + 1 ) = X p ( k ) A D
where k denotes the number of iterations, D denotes the calculation of the vector in order to express the new position of the grey wolf, A = 2 a r 1 a , r 1 [ 0 , 1 ] and C = 2 a r 2 , r 2 [ 0 , 1 ] denote coefficient vectors for program initialization, and a has a linear decrease between 2 and 0.
Noting the position of the wolf at each iteration as (x, y) and the position of the prey as x ' , y ' , the following equations iteratively define the GWO-type algorithm’s solution [30,31,32,33,34]:
D α = C 1 X α ( k ) X ( k ) D β = C 2 X β ( k ) X ( k ) D δ = C 3 X δ ( k ) X ( k )
X 1 = X α A 1 D α X 2 = X β A 2 D β X 3 = X δ A 3 D δ
X ( k + 1 ) = X 1 + X 2 + X 3 3
The algorithm stops after obtaining the minimum of the objective function with an imposed precision or after a predefined number of iterations.

6.5. RL-TD3 Agent Algorithm

The commonly used machine learning techniques are the following: linear regression, decision tree, support vector machine, neural networks and deep learning, and ensemble of trees. From the point of view of the strategies used in machine learning, the following can be mentioned: unsupervised learning, supervised learning, and RL. Unsupervised learning is typically utilized in the fields of data clustering and dimensionality reduction, while supervised learning mainly deals with classification and regression problems. RL is a framework for learning the relationship between states that are characteristic of the description of a system and the actions on it. The agent achieves the maximization of a reward based on the actions on the system, while also taking observations of the system into account. If it can be considered that the reward can be regarded as an optimization criterion, a very strong analogy with the control of an industrial process can be obtained [35,36,37].
Figure 9 presents the block diagram of the RL-TD3 agent for process control. Finding the optimal policy of the RL-TD3 agent, in this case, can be translated into finding the command signals of the PMSM in order to optimize a performance criterion. Figure 10 shows the implementation of the RL-TD3 controller agent in Matlab/Simulink for the improvement of the performance of PMSM–CS–CI. The analogy with controlling an industrial process can be noted, in the sense that the observations given by currents and speed are the inputs, the outputs represent actions in the form of command signals, and the optimization criterion is in the form of a reward.
The value of the reward is expressed in the following relation:
R C = 5 i q _ e r r o r 2 + 5 i d _ e r r o r 2 + 5 ω e r r o r 2 + 0.1 j u t 1 j 2
where iq_error, id_error, and ωerror denote the errors relative to the imposed references of the d-q axis currents id and iq and the rotor speed, respectively. In addition, u t 1 j denotes the weighted actions from the previous step.
The main steps of the RL-TD3 agent can be summarized as follows:
  • Formulating the problem;
  • Creating the process and reward;
  • Training and validating the RL-TD3 agent;
  • Deploying the policy.
  • The main steps of the training stage are as follows [11,36,37]:
  • Selecting the action A = μ ( S ) + N for a stochastic noise N and for a current observation S;
  • Calculating the action A, reward R, and the next observation S';
  • Storing the experience as a 4-tuple S , A , R , S ;
  • M, the experiences S i , A i , R i , S i , are randomly generated;
  • For each S i , which represents a terminal state, the value function target yi is set to Ri.
Otherwise, the steps below can be followed [11,36,37]:
y i = R i + γ min Q k S k , c l i p μ S k θ μ + ε θ Q k
The parameters of each critic are expressed in the relation:
L k = 1 M i = 1 M y i Q k S i , A i θ Q k 2
The parameters of the actor are updated in the following manner:
θ μ J = 1 M i = 1 M G a i G μ i
where G a i = A min Q k S i , A θ Q , A = μ S i θ μ , and G μ i = θ μ μ S i θ μ .
For the following parametric updates, a smoothing factor τ can be chosen, and the following relations can be written:
θ Q k = τ θ Q k + 1 τ θ Q k
θ μ = τ θ μ + 1 τ θ μ
The characteristic RL-TD3 algorithm stops after obtaining the minimum of the objective function with an imposed precision or after a predefined number of iterations. At this moment, an agent that can be used both for parametric optimization by exploiting the structure of the neural network and for providing CCSs can be created and trained.

7. Numerical Simulations for PMSM–CS–CI

This section presents the results of numerical simulations performed in Matlab/Simulink for the control of a PMSM with the following parameters: stator resistance: Rs = 2.875 Ω, inductances on the d-q axis: Ld = Lq = 0.0085 H, combined inertia of the PMSM rotor and load: J = 8·10−3 kg·m2, combined viscous friction of the PMSM rotor and load: B = 0.01 N·m·s/rad, flux induced by the permanent magnets of the PMSM rotor in the stator phases: λ = 0.175 Wb, and the pole pair number: np = 4.
It can be specified that this motor can be considered a benchmark in Matlab/Simulink simulations because it was presented in a series of articles on control [10,11,15,19,26,29]. The results obtained for PMSM–CS–CI for each of the controllers presented in the previous sections—LQR, FL, nonlinear-type, and PCH controllers—will be comparatively presented, and for each of them, both the initial version of the controller and the versions obtained through the control algorithms’ optimization of parameter K or through the implementation that used the RL-TD3 agent controller with CCSs are presented.

7.1. Numerical Simulations for PMSM–CS–CI Based on the LQR Controller

In order to determine the vector of the command parameters K = k 1 k 2 k 3 for the command law (7), the Matlab instruction K = lqr(A,B,Q,R) was used, where Q = diag(40 3000 1) and R = 1 denote the state and control weighting matrices [27].
The transfer function of the PMSM is given in the following equation:
H P M S M ( s ) = 117.6 s 2 + 147.1 s s 3 + 339.5 s 2 + 4.366 10 4 s
The controllability of the system can be verified with a pole at the origin and a complex–conjugate pole pair (−169 ± 121 i), and the parameters of the LQR command law are: k1 = 14.04, k2 = 53.31, and k3 = 1.
By using improved versions of the LQR control law based on the CI algorithms described in Section 6, the following values of the command parameter vector can be obtained: for the PSO-type algorithm, k1 = 20.78, k2 = 139.23, and k3 = 0.17. For the SA-type algorithm, k1 = 18.42, k2 = 159.52, and k3 = 0.2. For the GA-type algorithm, k1 = 17.35, k2 = 278.65, and k3 = 0.29. For the GWO-type , k1 = 16.16, k2 = 300, and k3 = 0.43. Figure 11 presents the evolution of the performance of the PSO-type algorithm for PMSM–CS.
In the case of using the RL-TD3 agent algorithm to optimize the vector of the command parameter K, the reward is used in the form
R O = 40 i q 2 + 3000 ω e r r o r 2 + θ 2 + 0.1 j u t 1 j 2
The state vector in this case is x = i q ω θ T , and the command law can be expressed by the following relation:
u = i q ω e r r o r θ k 1 k 2 k 3 T
The RL-TD3 agent used to implement the command law (92) was implemented by using a neural network with one fully connected layer. The vector of parameters K was obtained at the end of the learning period and represented the learnable parameters of the actor.
These could be obtained by using the following functions: actor = getActor (agent) and parameters = getLearnableParameters (actor). The vector obtained were: k1 = 10, k2 = 307, and k3 = 0.3.
In order to improve the performance of PMSM–CS based on the LQR-type controller, an RL-TD3 agent algorithm could be used, which, after the learning phase, was able to provide CCSs that overlapped with the command signals of the LQR-type controller. The implementation of the RL-TD3 agent in Matlab/Simulink is presented in Figure 10, and the reward is given by Equation (84).
Figure 12 comparatively presents the results of the simulation of the PMSM control in which the control system was made with the LQR-type controller optimized with CI algorithms or based on the RL-TD3 agent controller with CCSs. The evolution of the rotor speed, stator currents, and d-q frame currents for a 1000 rpm step signal and a 0.5 Nm torque load is presented.
Figure 13 comparatively shows the performance of PMSM–CS–CI in terms of speed control for the controllers mentioned above. It improvements in the performance of the basic LQR controller (especially in terms of response time) that used CI algorithms can be noted, and the best results were obtained by using RL-TD3 agent controller with CCSs.

7.2. Numerical Simulations for PMSM–CS–CI Based on the FL Controller

By using improved versions of the FL-type control law based on the CI algorithms described in Section 6, the following values of the command parameter vector could be obtained: PSO-type algorithm: k11 = 97, k21 = 145,294, and k22 = 702; SA-type algorithm: k11 = 101, k21 = 153,785, and k22 = 735; GA-type algorithm: k11 = 104, k21 = 167,119, and k22 = 759; GWO-type algorithm: k11 = 107, k21 = 178,534, and k22 = 767.
Figure 14 presents the evolution of the performance of the SA-type algorithm for PMSM–CS.
In order to improve the performance of PMSM–CS based on the FL-type controller, an RL-TD3 agent algorithm could be used, which, after the learning phase, was able to provide CCSs that overlapped with the command signals of the FL-type controller. The implementation of the RL-TD3 agent in Matlab/Simulink is presented in Figure 10, and the reward is given by Equation (84).
Figure 15 comparatively presents the results of the simulation of the PMSM control in which the control system was made with an FL-type controller that was optimized with CI algorithms or based on the RL-TD3 agent controller with CCSs. The evolution of the rotor speed, load and electromagnetic torques, stator currents, and d-q frame currents for a 1000 rpm step signal and a 0.5 Nm torque load is presented.
Figure 16 comparatively shows the performance of PMSM–CS–CI in terms of speed control for the controllers mentioned above. Improvements in the performance of the basic FL controller (especially in terms of response time) that used the CI algorithms can be noted, and the best results were obtained by using the RL-TD3 agent controller with CCSs.

7.3. Numerical Simulations for PMSM–CS–CI Based on the Nonlinear-Type Controller

By using improved versions of the nonlinear control law based on the CI algorithms described in Section 6, the following values of the command parameter vector could be obtained: PSO-type algorithm: k1 = 65 and k2 = 105,200; SA-type algorithm: k1 = 214 and k2 = 135,300; GA-type algorithm: k1 = 529 and k2 = 172,850; GWO-type algorithm: k1 = 700 and k2 = 190,000.
Figure 17 presents the evolution of the performance of the GA-type algorithm for PMSM–CS.
In order to improve the performance of PMSM–CS based on a nonlinear-type controller, an RL-TD3 agent algorithm could be used, which, after the learning phase, was able to provide CCSs that overlapped the command signals of the nonlinear-type controller. The implementation of the RL-TD3 agent in Matlab/Simulink is presented in Figure 10, and the reward is given by Equation (84).
Figure 18 comparatively presents the results of the simulation of the PMSM control in which the control system was made with the nonlinear-type controller optimized with CI algorithms or based on the RL-TD3 agent controller with CCSs. The evolution of the rotor speed, load and electromagnetic torques, stator currents, and d-q frame currents for a 1000 rpm step signal and a 0.5 Nm torque load is presented.
Figure 19 comparatively shows the performance of PMSM–CS–CI in terms of speed control for the controllers mentioned above. Improvements in the performance of the basic nonlinear controller (especially in terms of response time) when using the CI algorithms can be noted, and the best results were obtained by using the RL-TD3 agent controller with CCSs.

7.4. Numerical Simulations for PMSM–CS–CI Based on the PCH Controller

By using improved versions of the PCH-type control law based on the CI algorithms described in Section 6, the following values of the command parameter vector could be obtained: PSO-type algorithm: k1 = 989 and k2 = 6.24; SA-type algorithm: k1 = 921 and k2 = 5.92; GA-type algorithm: k1 = 872 and k2 = 4.98; GWO-type algorithm: k1 = 825 and k2 = 4.12.
Figure 20 presents the evolution of the performance of the GA-type algorithm for PMSM–CS.
In order to improve the performance of PMSM–CS based on the PCH-type controller, an RL-TD3 agent algorithm could be used, which, after the learning phase, was able to provide CCSs that overlapped with the command signals of the PCH-type controller. The implementation of the RL-TD3 agent in Matlab/Simulink is presented in Figure 10, and the reward is given by Equation (84). Thus, the evolution of the RL-TD3 agent algorithm’s performance is presented in Figure 21. We specify that the training time of the RL-TD3 agent was of the order of hours.
Figure 22 comparatively presents the results of the simulation of the PMSM control in which the control system was made with the PCH-type controller optimized with CI algorithms or based on the RL-TD3 agent controller with CCSs. The evolution of the rotor speed, load and electromagnetic torques, stator currents, and d-q frame currents for a 1000 rpm step signal and a 0.5 Nm torque load is presented.
Figure 23 comparatively shows the performance of PMSM–CS–CI in terms of speed control for the controllers mentioned above.
Improvements in the performance of the basic PCH-type controller (especially in terms of response time) that used CI algorithms can be noted, and the best results were obtained by using the RL-TD3 agent controller with CCSs.
The parameters used to compare the performance of the PMSM control systems based on the types of controller and the optimization versions described in the previous sections were the response time, overshooting, steady-state error, and speed ripple, which are described in the following relation:
ω r i p = 1 N i = 1 N ω ( i ) ω r e f ( i ) 2
where N denotes the number of samples, ω denotes the rotor speed, and ωref denotes the reference rotor speed.
Based on these comparative indicators, the PMSM–CS–CI performance is presented in Table 1.
It can be noted that for each type of controller, the best performance was obtained by using the RL-TD3 agent controller with CCSs in addition to the basic controller.
Thus, for the PMSM–CS presented for the motor that was used as a benchmark in [10,11,15,19,26,29], it can be noted that the best performance was obtained with the PCH-type controller together with an RL-TD3 agent controller with CCSs.

8. Experimental Results

The PMSM used in the numerical simulations as a benchmark and whose characteristics were presented in Section 7 finds its real equivalent in the form of the TelcoMotion DT4260 PMSM. Experiments on this motor controlled by means of the LAUNCHXL-F28379D electronic platform kit with a DRV8305 gate driver were presented by authors of other articles [10,11], so in this article, a PMSM with higher power, the Anaheim Automation EMJ-04APA22, was used, and it was controlled by means of the TMDSHVMTRPFCKIT electronic platform kit.
The main characteristics of the PMSM used were as follows: stator resistance: Rs = 4.7 Ω, inductances on the d-q axis: Ld = Lq = 0.0017 H, combined inertia of the PMSM’s rotor and load: J = 4·10−3 kg·m2, combined viscous friction of the PMSM’s rotor and load: B = 0.01 N·m·s/rad, flux induced by the permanent magnets of the PMSM’s rotor in the stator phases: λ = 0.175 Wb, and pole pair number: np = 4.
TMDSHVMTRPFCKIT is a high-voltage motor control development kit from Texas Instruments that is dedicated to the control of PMSMs. The main MCU of this kit’s board is the TMS320F28069M Real-Time Microcontroller [39,40,41].
The software application that was used to implement the algorithms presented in the previous sections in the hardware described above was developed in the Matlab/Simulink programming environment based on MCB and ECSP for the TI C2000 MCU toolboxes. The usual stages of SIL, PIL, and HIL were completed [40,41]. By using the Matlab/Simulink development environment, the software used in the numerical simulations presented in the previous section could also be used for the real-time implementation. It can be noted that the integral blocks of the type “1/s” were replaced with k T s / ( z 1 ) integral discrete blocks, where Ts denotes the sampling time, k denotes the current step, and s and z are complex continuous and discrete variables, respectively.
The evolution of the PMSM–CS–CI is presented in Figure 24 for a series of reference speed step signals, a load torque of 1 Nm, and an FOC-type control algorithm with a classical PI-type controller. An overshooting of approximately 5% and a steady-state error of less than 1% were noted for both the positive and negative steps of the speed reference of the PMSM rotor.
Figure 25 shows the performance of PMSM–CS–CI for the same series of reference step signals of the PMSM rotor speed and a load torque of 1 Nm, but for the LQR–CI-type PMSM control algorithm. It can be noted that there was a halving of the response time when the overshooting and the steady-state error decreased below 0.4%.
In addition, the real-time evolutions of stator currents ia and ib are presented in Figure 26, that of the d-q frame current iq is presented in Figure 27, and those of the electromagnetic torque Te and load torque TL are presented in Figure 28.
It can be specified that the torque load of 1 Nm was provided by the TP 1410 drive system connected to the PMSM shaft. The TP 1410 servo-brake and drive system were programmable and could be used as a load for the PMSM in order to simulate the load torque. The main characteristics of the TP 1410 servo-brake and drive system in terms of the load of the PMSM were a speed ranging between −4000 and 4000 rpm and a maximum braking power of 400 W.
Figure 29 shows the experimental setup which contained the following: TP 1410 servo-brake and drive system, Anaheim Automation EMJ-04APA22 PMSM, PC-host, scope, power source, and TMDSHVMTRPFCKIT development board kit.

9. Conclusions

This article comparatively presents the linear and nonlinear control of a PMSM. The starting elements were the nonlinear operating equations of the PMSM and the global FOC strategy. The LQR algorithm and the algorithm obtained by FL were presented as linear control algorithms. Naturally, the nonlinear approach that used Lyapunov and Hamiltonian functions led to results superior to those of the linear algorithms. By using CI-type algorithms—PSO, SA, GA, and GWO—the performance of PMSM–CS was optimized by obtaining the vectors of the parameters from the control algorithms by optimizing specific performance indices. In addition, superior performance of PMSM–CS was obtained by using RL-type algorithms, which provided CCSs after the training stages. Numerical simulations of a benchmark PMSM were presented for comparison, and the best performance of PMSM–CS was obtained by using a PCH–RL–TD3 agent controller. In addition, an experimental that confirmed the superiority of PMSM–CS–CI was presented. The real-time implementation in embedded systems was achieved by completing the SIL, PIL, and HIL stages of the LQR–CI algorithm (as an example), and the superiority of its performance compared to the use of classical PI-type controllers was proved. In future work, we will deepen the improvements in the performance of linear and nonlinear PMSM controllers by using other CI-type algorithms, as well as other RL-type agent structures.

Author Contributions

Conceptualization, M.N. and C.-I.N.; Methodology, M.N. and C.-I.N.; Software, M.N. and C.-I.N.; Validation, M.N. and C.-I.N.; Formal analysis, M.N. and C.-I.N.; Investigation, M.N.; Resources, M.N.; Data curation, M.N. and C.-I.N.; Writing—original draft, M.N. and C.-I.N.; Writing—review and editing, M.N. and C.-I.N.; Visualization, M.N. and C.-I.N.; Supervision, M.N.; Project administration, M.N.; Funding acquisition, M.N. All authors have read and agreed to the published version of the manuscript.

Funding

This work was developed with funds from the Ministry of Research, Innovation, and Digitization of Romania as part of the NUCLEU Program: PN 19 38 01 03.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

PMSMPermanent Magnet Synchronous Motor
FOCField-Oriented Control
DTC Direct Torque Control
PMSM–CS PMSM–Control System
LQR Linear Quadratic Regulator
FL Feedback Linearization
PCH Port-Controlled Hamiltonian
CI Computational Intelligence
PSO Particle Swarm Optimization
SA Simulated Annealing
GA Genetic Algorithm
GWO Grey Wolf Optimization
CCS Correction Command Signals
RL Reinforcement Learning
TD-3 Twin Delayed Deep Deterministic Policy Gradient
SIL Software-in-the-Loop
PIL Processor-in-the-Loop
HIL Hardware-in-the-Loop
MCB Motor-Control Blockset
ECSP Embedded Coder Support Package

References

  1. Liu, D.; Guo, X.; Lei, Y.; Wang, R.; Chen, R.; Chen, F.; Li, Z. An Improved Control Strategy of PMSM Drive System with Integrated Bidirectional DC/DC. Energies 2022, 15, 2214. [Google Scholar] [CrossRef]
  2. Zhou, K.; Ai, M.; Sun, Y.; Wu, X.; Li, R. PMSM Vector Control Strategy Based on Active Disturbance Rejection Controller. Energies 2019, 12, 3827. [Google Scholar] [CrossRef] [Green Version]
  3. Lakhe, R.K.; Chaoui, H.; Alzayed, M.; Liu, S. Universal Control of Permanent Magnet Synchronous Motors with Uncertain Dynamics. Actuators 2021, 10, 49. [Google Scholar] [CrossRef]
  4. Vidlak, M.; Makys, P.; Gorel, L. A Novel Constant Power Factor Loop for Stable V/f Control of PMSM in Comparison against Sensorless FOC with Luenberger-Type Back-EMF Observer Verified by Experiments. Appl. Sci. 2022, 12, 9179. [Google Scholar] [CrossRef]
  5. Hakami, S.S.; Lee, K.-B. Four-Level Hysteresis-Based DTC for Torque Capability Improvement of IPMSM Fed by Three-Level NPC Inverter. Electronics 2020, 9, 1558. [Google Scholar] [CrossRef]
  6. Huang, Y.; Zhang, J.; Chen, D.; Qi, J. Model Reference Adaptive Control of Marine Permanent Magnet Propulsion Motor Based on Parameter Identification. Electronics 2022, 11, 1012. [Google Scholar] [CrossRef]
  7. Liu, F.; Li, H.; Liu, L.; Zou, R.; Liu, K. A Control Method for IPMSM Based on Active Disturbance Rejection Control and Model Predictive Control. Mathematics 2021, 9, 760. [Google Scholar] [CrossRef]
  8. Zhu, S.; Huang, W.; Zhao, Y.; Lin, X.; Dong, D.; Jiang, W.; Zhao, Y.; Wu, X. Robust Speed Control of Electrical Drives With Reduced Ripple Using Adaptive Switching High-Order Extended State Observer. IEEE Trans. Ind. Electron. 2022, 37, 2009–2020. [Google Scholar] [CrossRef]
  9. Merabet, A. Cascade Second Order Sliding Mode Control for Permanent Magnet Synchronous Motor Drive. Electronics 2019, 8, 1508. [Google Scholar] [CrossRef] [Green Version]
  10. Nicola, M.; Nicola, C.-I. Sensorless Fractional Order Control of PMSM Based on Synergetic and Sliding Mode Controllers. Electronics 2020, 9, 1494. [Google Scholar] [CrossRef]
  11. Nicola, M.; Nicola, C.-I.; Selișteanu, D. Improvement of PMSM Sensorless Control Based on Synergetic and Sliding Mode Controllers Using a Reinforcement Learning Deep Deterministic Policy Gradient Agent. Energies 2022, 15, 2208. [Google Scholar] [CrossRef]
  12. Xia, C.; Guo, C.; Shi, T. A Neural-Network-Identifier and Fuzzy-Controller-Based Algorithm for Dynamic Decoupling Control of Permanent-Magnet Spherical Motor. In IEEE Transactions on Industrial Electronics; IEEE: Piscataway, NJ, USA, 2010; pp. 2868–2878. [Google Scholar] [CrossRef]
  13. Valencia-Rivera, G.H.; Merchan-Villalba, L.R.; Tapia-Tinoco, G.; Lozano-Garcia, J.M.; Ibarra-Manzano, M.A.; Avina-Cervantes, J.G. Hybrid LQR-PI Control for Microgrids under Unbalanced Linear and Nonlinear Loads. Mathematics 2020, 8, 1096. [Google Scholar] [CrossRef]
  14. Xu, W.-J. Permanent Magnet Synchronous Motor with Linear Quadratic Speed Controller. Energy Procedia 2012, 14, 364–369. [Google Scholar] [CrossRef] [Green Version]
  15. Nicola, M.; Nicola, C.-I. Improved Performance for PMSM Control System Based on LQR Controller and Computational Intelligence. In Proceedings of the International Conference on Electrical, Computer and Energy Technologies (ICECET), Cape Town, South Africa, 9–10 December 2021; pp. 1–6. [Google Scholar] [CrossRef]
  16. Chen, Y.-T.; Yu, C.-S.; Chen, P.-N. Feedback Linearization Based Robust Control for Linear Permanent Magnet Synchronous Motors. Energies 2020, 13, 5242. [Google Scholar] [CrossRef]
  17. Li, X.; Chen, X. A Multi-Index Feedback Linearization Control for a Buck-Boost Converter. Energies 2021, 14, 1496. [Google Scholar] [CrossRef]
  18. Abootorabi Zarchi, H.; Soltani, J.; Arab Markadeh, G. Adaptive Input–Output Feedback-Linearization-Based Torque Control of Synchronous Reluctance Motor without Mechanical Sensor. IEEE Trans. Ind. Electron. 2010, 57, 375–384. [Google Scholar] [CrossRef]
  19. Nicola, M.; Nicola, C.-I. Improved Performance for PMSM Control System Based on Feedback Linearization and Computational Intelligence. In Proceedings of the International Conference on Electrical, Computer and Energy Technologies (ICECET), Cape Town, South Africa, 9–10 December 2021; pp. 1–6. [Google Scholar] [CrossRef]
  20. Fezzani, A.; Drid, S.; Makouf, A.; Chrifi-alaoui, L.; Ouriagli, M.; Delahoche, L. Robust control of permanent magnet synchronous motor. In Proceedings of the 15th International Conference on Sciences and Techniques of Automatic Control and Computer Engineering (STA), Hammamet, Tunisia, 21–23 December 2014; pp. 711–718. [Google Scholar] [CrossRef]
  21. Fezzani, A.; Drid, S.; Makouf, A.; Chrifi-Alaoui, L.; Ouriagli, M. Speed Sensoless Robust Control of Permanent Magnet Synchronous Motor Based on Second-Order Sliding-Mode Observer. Serb. J. Electr. Eng. 2014, 11, 419–433. [Google Scholar] [CrossRef] [Green Version]
  22. Jeong, Y.W.; Choo Chung, C. Nonlinear Current Control with Modified Torque Modulation for Permanent Magnet Synchronous Motors. In Proceedings of the 59th IEEE Conference on Decision and Control (CDC), Jeju, Republic of Korea, 14–18 December 2020; pp. 928–933. [Google Scholar] [CrossRef]
  23. Dini, P.; Saponara, S. Cogging Torque Reduction in Brushless Motors by a Nonlinear Control Technique. Energies 2019, 12, 2224. [Google Scholar] [CrossRef] [Green Version]
  24. Lee, I.; Kim, Y.; Shin, D.; Lee, Y.; Chung, C.C. Nonlinear adaptive speed control for permanent magnet synchronous motors under unbalanced resistances. In Proceedings of the IECON 2015—41st Annual Conference of the IEEE Industrial Electronics Society, Yokohama, Japan, 9–12 November 2015; pp. 1692–1697. [Google Scholar] [CrossRef]
  25. Abdul-Adheem, W.R.; Ibraheem, I.K. Improved Sliding Mode Nonlinear Extended State Observer based Active Disturbance Rejection Control for Uncertain Systems with Unknown Total Disturbance. Int. J. Adv. Comput. Sci. Appl. 2016, 7, 80–93. [Google Scholar] [CrossRef] [Green Version]
  26. Nicola, M.; Nicola, C.-I. Improved Performance of PMSM Control Based on Nonlinear Control Law and Computational Intelligence. In Proceedings of the International Conference on Electrical, Computer and Energy Technologies (ICECET), Prague, Czech Republic, 20–22 July 2022; pp. 1–8. [Google Scholar] [CrossRef]
  27. Liu, X.; Yu, H.; Yu, J.; Zhao, Y. A Novel Speed Control Method Based on Port-Controlled Hamiltonian and Disturbance Observer for PMSM Drives. IEEE Access 2019, 7, 111115–111123. [Google Scholar] [CrossRef]
  28. Zhao, Y.; Yu, H.; Wang, S. Development of Optimized Cooperative Control Based on Feedback Linearization and Error Port-Controlled Hamiltonian for Permanent Magnet Synchronous Motor. IEEE Access 2021, 9, 141036–141047. [Google Scholar] [CrossRef]
  29. Nicola, M.; Nicola, C.-I. Improved Performance for the PMSM Control Based on PCH Controller and Computational Intelligence. In Proceedings of the 19th IEEE International Multi-Conference on Systems, Signals & Devices (SSD), Setif, Algeria, 6–10 May 2022; pp. 1650–1657. [Google Scholar] [CrossRef]
  30. Demir, G.; Vural, R.A. Speed Control Method Using Genetic Algorithm for Permanent Magnet Synchronous Motors. In Proceedings of the 6th International Conference on Control Engineering & Information Technology (CEIT), Istanbul, Turkey, 25–27 October 2018; pp. 1–6. [Google Scholar] [CrossRef]
  31. Wang, C.-S.; Guo, C.-W.C.; Tsay, D.-M.; Perng, J.-W. PMSM Speed Control Based on Particle Swarm Optimization and Deep Deterministic Policy Gradient under Load Disturbance. Machines 2021, 9, 343. [Google Scholar] [CrossRef]
  32. Mohan, P.V.; Dixit, S.; Gyaneshwar, A.; Chadha, U.; Srinivasan, K.; Seo, J.T. Leveraging Computational Intelligence Techniques for Defensive Deception: A Review, Recent Advances, Open Problems and Future Directions. Sensors 2022, 22, 2194. [Google Scholar] [CrossRef] [PubMed]
  33. Rao, H.; Jia, H.; Wu, D.; Wen, C.; Li, S.; Liu, Q.; Abualigah, L. A Modified Group Teaching Optimization Algorithm for Solving Constrained Engineering Optimization Problems. Mathematics 2022, 10, 3765. [Google Scholar] [CrossRef]
  34. Rahman, M.A.; Sokkalingam, R.; Othman, M.; Biswas, K.; Abdullah, L.; Abdul Kadir, E. Nature-Inspired Metaheuristic Techniques for Combinatorial Optimization Problems: Overview and Recent Advances. Mathematics 2021, 9, 2633. [Google Scholar] [CrossRef]
  35. Song, Z.; Yang, J.; Mei, X.; Tao, T.; Xu, M. Deep reinforcement learning for permanent magnet synchronous motor speed control systems. Neural Comput. Appl. 2021, 33, 5409–5418. [Google Scholar] [CrossRef]
  36. Faria, R.d.R.; Capron, B.D.O.; Secchi, A.R.; de Souza, M.B., Jr. Where Reinforcement Learning Meets Process Control: Review and Guidelines. Processes 2022, 10, 2311. [Google Scholar] [CrossRef]
  37. MathWorks—Reinforcement Learning Toolbox™ User’s Guide. Available online: https://www.mathworks.com/help/reinforcement-learning/getting-started-with-reinforcement-learning-toolbox.html?s_tid=CRUX_lftnav (accessed on 2 December 2021).
  38. MathWorks—Twin-Delayed Deep Deterministic Policy Gradient Reinforcement Learning Agent. Available online: https://www.mathworks.com/help/reinforcement-learning/ug/td3-agents.html (accessed on 15 December 2021).
  39. MathWorks—Motor Control Blockset Documentation. Available online: https://www.mathworks.com/help/mcb/index.html (accessed on 7 February 2022).
  40. MathWorks—Embedded Coder Support Package for Texas Instruments C2000 Processors. Available online: https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/index.html (accessed on 14 February 2022).
  41. MathWorks—Run Real-Time Simulation of Permanent Magnet Synchronous Motor. Available online: https://www.mathworks.com/help/slrealtime/ug/apply-slrt-to-simulate-pms-motor-example.html (accessed on 21 February 2022).
  42. Koulamas, C.; Lazarescu, M.T. Real-Time Embedded Systems: Present and Future. Electronics 2018, 7, 205. [Google Scholar] [CrossRef]
Figure 1. The proposed control block diagram of the PMSM–CS–CI based on an LQR-type controller.
Figure 1. The proposed control block diagram of the PMSM–CS–CI based on an LQR-type controller.
Mathematics 10 04667 g001
Figure 2. Schematic representation of the LQR controller: ud and uq commands.
Figure 2. Schematic representation of the LQR controller: ud and uq commands.
Mathematics 10 04667 g002
Figure 3. The proposed control block diagram of PMSM–CS–CI based on an FL-type controller.
Figure 3. The proposed control block diagram of PMSM–CS–CI based on an FL-type controller.
Mathematics 10 04667 g003
Figure 4. Schematic representation FL controller: ud and uq commands.
Figure 4. Schematic representation FL controller: ud and uq commands.
Mathematics 10 04667 g004
Figure 5. The proposed PMSM–CS–CI control block diagram based on a nonlinear-type controller.
Figure 5. The proposed PMSM–CS–CI control block diagram based on a nonlinear-type controller.
Mathematics 10 04667 g005
Figure 6. Schematic representation of a nonlinear-type controller: ud and uq commands.
Figure 6. Schematic representation of a nonlinear-type controller: ud and uq commands.
Mathematics 10 04667 g006
Figure 7. Schematic representation of a nonlinear-type controller: ud and uq commands.
Figure 7. Schematic representation of a nonlinear-type controller: ud and uq commands.
Mathematics 10 04667 g007
Figure 8. Schematic representation of a PCH controller: ud and uq commands.
Figure 8. Schematic representation of a PCH controller: ud and uq commands.
Mathematics 10 04667 g008
Figure 9. Block diagram of the RL for process control.
Figure 9. Block diagram of the RL for process control.
Mathematics 10 04667 g009
Figure 10. Matlab/Simulink implementation of the RL-TD3 agent for the proposed controllers.
Figure 10. Matlab/Simulink implementation of the RL-TD3 agent for the proposed controllers.
Mathematics 10 04667 g010
Figure 11. Evolution of the performance of the PSO-type algorithm.
Figure 11. Evolution of the performance of the PSO-type algorithm.
Mathematics 10 04667 g011
Figure 12. Time evolution parameters of the PMSM–CS–CI based on the LQR-type controller: (a) rotor speed—LQR; (b) speed—LQR–PSO; (c) speed—LQR–SA; (d) speed—LQR–GA; (e) speed—LQR–GWO; (f) speed—LQR–RL–TD3; (g) speed—LQR–RL–TD3 with CCSs; (h) stator currents ia, ib, and ic; (i) currents id and iq.
Figure 12. Time evolution parameters of the PMSM–CS–CI based on the LQR-type controller: (a) rotor speed—LQR; (b) speed—LQR–PSO; (c) speed—LQR–SA; (d) speed—LQR–GA; (e) speed—LQR–GWO; (f) speed—LQR–RL–TD3; (g) speed—LQR–RL–TD3 with CCSs; (h) stator currents ia, ib, and ic; (i) currents id and iq.
Mathematics 10 04667 g012
Figure 13. Comparison of the time evolution of speed for PMSM–CS–CI based on the LQR-type controller.
Figure 13. Comparison of the time evolution of speed for PMSM–CS–CI based on the LQR-type controller.
Mathematics 10 04667 g013
Figure 14. Evolution of the performance of the SA-type algorithm.
Figure 14. Evolution of the performance of the SA-type algorithm.
Mathematics 10 04667 g014
Figure 15. Time evolution of the parameters of the PMSM–CS–CI based on the FL-type controller: (a) rotor speed—FL; (b) speed—FL–PSO; (c) speed—FL–SA; (d) speed—FL–GA; (e) speed—FL–GWO; (f) speed—FL–RL–TD3 with CCSs; (g) electromagnetic and load torques; (h) stator currents ia, ib, and ic; (i) currents id and iq.
Figure 15. Time evolution of the parameters of the PMSM–CS–CI based on the FL-type controller: (a) rotor speed—FL; (b) speed—FL–PSO; (c) speed—FL–SA; (d) speed—FL–GA; (e) speed—FL–GWO; (f) speed—FL–RL–TD3 with CCSs; (g) electromagnetic and load torques; (h) stator currents ia, ib, and ic; (i) currents id and iq.
Mathematics 10 04667 g015
Figure 16. Comparison of the time evolution of speed for PMSM–CS–CI based on the FL-type controller.
Figure 16. Comparison of the time evolution of speed for PMSM–CS–CI based on the FL-type controller.
Mathematics 10 04667 g016
Figure 17. Evolution of the performance of the GA-type algorithm.
Figure 17. Evolution of the performance of the GA-type algorithm.
Mathematics 10 04667 g017
Figure 18. Time evolution parameters of the PMSM–CS–CI based on the nonlinear-type controller: (a) rotor speed—nonlinear; (b) speed—nonlinear–PSO; (c) speed—nonlinear–SA; (d) speed—nonlinear–GA; (e) speed—nonlinear–GWO; (f) speed—nonlinear–RL–TD3 with CCSs; (g) electromagnetic and load torques; (h) stator currents ia, ib, and ic; (i) currents id and iq.
Figure 18. Time evolution parameters of the PMSM–CS–CI based on the nonlinear-type controller: (a) rotor speed—nonlinear; (b) speed—nonlinear–PSO; (c) speed—nonlinear–SA; (d) speed—nonlinear–GA; (e) speed—nonlinear–GWO; (f) speed—nonlinear–RL–TD3 with CCSs; (g) electromagnetic and load torques; (h) stator currents ia, ib, and ic; (i) currents id and iq.
Mathematics 10 04667 g018
Figure 19. Comparison of the time evolution of speed for PMSM–CS–CI based on the nonlinear-type controller.
Figure 19. Comparison of the time evolution of speed for PMSM–CS–CI based on the nonlinear-type controller.
Mathematics 10 04667 g019
Figure 20. Evolution of the performance of the GWO-type algorithm.
Figure 20. Evolution of the performance of the GWO-type algorithm.
Mathematics 10 04667 g020
Figure 21. Evolution of the reward for the RL-TD3 agent algorithm’s performance.
Figure 21. Evolution of the reward for the RL-TD3 agent algorithm’s performance.
Mathematics 10 04667 g021
Figure 22. Time evolution parameters of the PMSM–CS–CI based on the PCH-type controller: (a) rotor speed—PCH; (b) speed—PCH–PSO; (c) speed—PCH–SA; (d) speed—PCH–GA; (e) speed—PCH–GWO; (f) speed—PCH–RL–TD3 with CCSs; (g) electromagnetic and load torques; (h) stator currents ia, ib, and ic; (i) currents id and iq.
Figure 22. Time evolution parameters of the PMSM–CS–CI based on the PCH-type controller: (a) rotor speed—PCH; (b) speed—PCH–PSO; (c) speed—PCH–SA; (d) speed—PCH–GA; (e) speed—PCH–GWO; (f) speed—PCH–RL–TD3 with CCSs; (g) electromagnetic and load torques; (h) stator currents ia, ib, and ic; (i) currents id and iq.
Mathematics 10 04667 g022
Figure 23. Comparison of the time evolution of speed for PMSM–CS–CI based on the PCH-type controller.
Figure 23. Comparison of the time evolution of speed for PMSM–CS–CI based on the PCH-type controller.
Mathematics 10 04667 g023
Figure 24. Real-time speed evolution of PMSM–CS–CI based on the PI-type controller.
Figure 24. Real-time speed evolution of PMSM–CS–CI based on the PI-type controller.
Mathematics 10 04667 g024
Figure 25. Real-time speed evolution of PMSM–CS–CI based on the LQR-type controller.
Figure 25. Real-time speed evolution of PMSM–CS–CI based on the LQR-type controller.
Mathematics 10 04667 g025
Figure 26. Real-time evolution of currents ia and ib for PMSM–CS–CI based on the LQR-type controller.
Figure 26. Real-time evolution of currents ia and ib for PMSM–CS–CI based on the LQR-type controller.
Mathematics 10 04667 g026
Figure 27. Real-time evolution of current iq for PMSM–CS–CI based on the LQR-type controller.
Figure 27. Real-time evolution of current iq for PMSM–CS–CI based on the LQR-type controller.
Mathematics 10 04667 g027
Figure 28. Real-time evolution of torques Te and TL for PMSM–CS–CI based on the LQR-type controller.
Figure 28. Real-time evolution of torques Te and TL for PMSM–CS–CI based on the LQR-type controller.
Mathematics 10 04667 g028
Figure 29. Experimental setup for testing the PMSM–CS–CI.
Figure 29. Experimental setup for testing the PMSM–CS–CI.
Mathematics 10 04667 g029
Table 1. Performance of the proposed control structures of the PMSM–CS–CI.
Table 1. Performance of the proposed control structures of the PMSM–CS–CI.
ControllerResponse Time
[ms]
Overshoot
[%]
Steady-State Error
[%]
Speed Ripple
[rpm]
LQRclassic20.050.40.255.84
PSO19.60.40.255.76
SA190.40.255.42
GA18.20.40.255.13
GWO17.50.40.254.90
RL-TD316.80.40.254.59
RL-TDC with CCS160.40.254.27
FLclassic19.60.30.1558.11
PSO18.20.30.1555.99
SA17.90.30.1555.67
GA17.60.30.1554.28
GWO16.30.30.1553.79
RL-TD3 with CCS14.90.30.1552.31
Nonlinearclassic 20.50.20.143.15
PSO20.10.20.143.73
SA19.50.20.142.54
GA19.20.20.141.96
GWO18.70.20.141.40
RL-TD3 with CCS17.90.20.138.46
PCHclassic 18.10.10.0542.17
PSO17.80.10.0541.20
SA17.20.10.0538.17
GA16.30.10.0537.93
GWO15.20.10.0537.21
RL-TD3 with CCS14.10.10.05 36.19
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Nicola, M.; Nicola, C.-I. Improvement of Linear and Nonlinear Control for PMSM Using Computational Intelligence and Reinforcement Learning. Mathematics 2022, 10, 4667. https://0-doi-org.brum.beds.ac.uk/10.3390/math10244667

AMA Style

Nicola M, Nicola C-I. Improvement of Linear and Nonlinear Control for PMSM Using Computational Intelligence and Reinforcement Learning. Mathematics. 2022; 10(24):4667. https://0-doi-org.brum.beds.ac.uk/10.3390/math10244667

Chicago/Turabian Style

Nicola, Marcel, and Claudiu-Ionel Nicola. 2022. "Improvement of Linear and Nonlinear Control for PMSM Using Computational Intelligence and Reinforcement Learning" Mathematics 10, no. 24: 4667. https://0-doi-org.brum.beds.ac.uk/10.3390/math10244667

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop