En este trabajo se presenta el desempeño de un controlador adaptativo utilizando una red neuronal Bspline para ajustar la velocidad del rotor del motor síncrono de imanes permanentes. El análisis incluye una comparación de tres estrategias de control convencionales y no lineales: control proporcional integral, modos deslizantes y lógica difusa. Además, se proporciona una forma sistemática de determinar las ganancias óptimas del controlador para mejorar el desempeño del error de seguimiento. Dentro del trabajo se explica el diseño del controlador adaptativo y la metodología para realizar su entrenamiento. La eficiencia del controlador propuesto se demuestra mediante simulaciones en el tiempo donde el motor se somete a diferentes perturbaciones y cambios en el valor de la señal de referencia. El análisis de los resultados muestra que la técnica de control propuesta exhibe mejor rendimiento porque puede adaptarse a todas las condiciones operativas, presentando un bajo esfuerzo computacional para una operación en línea y considerando las no linealidades del sistema.
This paper presents a controller performance that is develop employing an adaptive Bspline neural network algorithm for adjusting the rotor speed of the permanent magnet synchronous motor. It includes a comparative analysis with three control strategies: conventional proportional integral, sliding mode and fuzzy logic. Also, gives a systematic way to determine the optimal control gains and improve the tracking error performance. A methodology for the adaptive controller and its training procedure are explained. The efficacy of the proposed method is analyzed using time simulations where the motor is subjected to disturbances and reference changes. The proposed control technique exhibits the best performance because it can adapt to every condition, demanding low computational effort for an online operation and considering the system nonlinearities.
 lógica difusa;
 redes neuronales artificiales;
 control de máquinas;
 modos deslizantes;
 máquinas de imanes permanentes.
 fuzzy logic;
 artificial neural network;
 motor drives;
 sliding mode;
 permanent magnet machines.
Introduction
The permanent magnet synchronous motors (PMSM) has paid and increased popularity in industrial and aerospace applications due the rapid advance in the development of semiconductor technology, new theories of electrical machines control and new magnetic materials that using rare earth. These machines are used in high performance applications for its excellent efficiency, no reactive power demand from the source, compact structure, low maintenance, low inertia and better dynamic performance compared with the induction motor (Omrane et al., 2015, Liu et al., 2018, Englert and Graichen, 2018). These benefits and performance are applied in electric vehicles, airplanes, nuclear power plants, submarines, robots, computer numerical control machines, elevators and propellers of ships (Englert and Graichen, 2018, JunJien et al., 2015, Qutubuddin and Narri Yadaiah, 2018, Kumar et al., 2014). However, in some situations the PMSM dynamic performance is diminished significantly by some parametric disturbances (variations in temperature, magnetic saturation, etc.), external load torque variations and nonlinearities in the dynamic model. Recently, in the literature there are several studies, they use different control techniques to ensure robust performance despite this problem (Liu et al., 2018, JunJien et al., 2015, Englert and Graichen, 2018, Kumar et al., 2014). Several advanced controllers use nonlinear control techniques (Verrelli et al., 2017), adaptive schemes (Hu et al., 2017, Iqbal et al., 2014), linear control theory (Ortega et al., 2018), neural networks (Jon et al., 2017), sliding modes (Lu et al., 2017). These methods have been used in different applications where the main purpose is for regulating the PMSM rotor speed. In the industry, the proportionalintegralderivative (PID) controllers are widely utilized to manipulate the PMSM performance due to its simplicity and effectiveness. However, the linear controllers are sensitive to parametric variations, noise, and external disturbances, in most cases tuning is very difficult and tedious due that its performance is guarantee for some operation conditions. It is worth mentioning that the performance and efficiency of the entire control system depends not only on the efficient hardware software platform, also the control law robustness (Kumar et al., 2014).
To increase the robustness of the proportionalintegral (PI) controllers it is possible to incorporate one or two innovative control techniques, such as: adaptive control, sliding mode, predictive control, robust control and intelligent control. Some problems in design procedure are the need to incorporate internal or external disturbances in the model, causing that this process become complex and difficult (JunJien et al., 2015). Intelligent control techniques provide a good dynamic performance when parametric variations and external disturbances occur but its implementation requires known prior of several parameters before starting his training (Choi et al., 2015). In the literature, there are different techniques of robust control and autotuning used to improve system response and increase the robustness of the linear controllers (JinWoo et al., 2014). The autotuning techniques can be used in some applications where the dynamic plant model cannot represent in detail the physical system.
On many occasions, it is a common practice use expert systems when the model plant is incompletely modeled, for instance neural networks, fuzzy logic or a combination within the control schemes to regulate nonlinear systems. However, during the design process of a fuzzy system there are significant problems associated with specialist expertise, accuracy and the correct application of the rules to regulate the plant (Chang et al., 2016). In (Choi et al., 2015) a fuzzy logic for updating the gains of a PID controller to regulate the PMSM rotor speed subject to different load torque conditions is used, but the details of how select the membership functions of the fuzzy system are not explained. Besides, artificial neural networks (ANN) are widely used in pattern identification, adaptive filtering, modeling and controlling complex systems due they are able of learning. Recently, (BeltranCarbajal et al., 2018) is presented an adaptive PID controller using ANN to update online the gains of the controller structure, but the training process does not ensure stability in closed loop. The online learning process of the ANN is to update weights and base functions continuously throughout the operation of the control scheme. In most cases this process can take too many multiplications and divisions demanding hard computational effort or must have a microprocessor too fast (Nizami et al., 2017). To avoid these problems in literature there are ANN called Bspline (BSNN), which are a type of ANN that utilizes polynomial basis functions, known as Bspline basis functions. The BSNN has the ability to update only one or more weights of the network structure according to the input and desired output, resulting faster speed of convergence and lower computational complexity compared than backpropagation algorithm (TapiaOlvera et al., 2016).
In this paper the dynamic performance of four different control schemes to regulate the rotor speed of a PMSM subject to different disturbances are compared. The first control scheme consists in tuning two PI controllers using a first order dynamic model of the PMSM. The simplified model is obtained disengaging the dynamic equations of the stator currents using two control variables, one for each of the stator currents in 𝑑𝑞 reference frame. The second controller is an adaptive regulator based in BSNN to update online the PI controller gains is proposed, using the first controller architecture. The controller gains are updated online using the gradient descent method and BSNN. The following proposed control system is based on fuzzy logic that depends on the membership and distribution functions, and user experience. Finally, a nonlinear controller based on the technique of control by sliding modes is used. A nonlinear observer to estimate the corresponding external disturbance is applied, due that the control law require the load torque.
The paper is organized as follows: section 2 gives an introduction to the mathematical model of the PMSM in dq reference frame; the problem formulation, PI controller and estimator design are presented in section 3; in section 4 the conventional PI controller tuning, a proposed neural network controller, fuzzy logic and sliding mode control are analyzed. The comparison results of the four control schemes are discussed in section 5, they were performed in Matlab/Simulink^{®}.
Dynamic model of PMSM
The vector control technique is used in the PMSM control, this scheme allows to decoupling the motor currents. Therefore, it is possible to consider its characteristics similar to a direct current (DC) motor because it works only with two currents, typically called excitation and torque currents.
The controller design needs that the dynamic equations must be transformed from the stator reference frame, abc, to a synchronous rotor reference frame, dq. First, the threephase abc coordinate system is transformed to a twophase reference frame αβ, where αaxis coincides with the aaxis phase and the βaxis leads by 90° relative to the αaxis in the clockwise direction. The permanent magnet mounted on the rotor of PMSM and the vector of flows are in the same position as the magnetic pole. Then, the αβ coordinate system is transformed to dq rotor reference frame using the Park transformation. With this transformation the daxis is aligned in the same direction to the magnetic flux of the rotor and the qaxis leads by 90° to daxis. The angle between daxis and aaxis is the rotor electrical angle, θe. In this paper, the nonlinear dynamic model of the PMSM is used in a dq rotor stationary reference frame (Yazdani & Iravani, 2010, Krishnan, 2010). This model consist of a set of nonlinear differential equations that relate the electrical variables: currents, voltages and flow links with mechanical variables: torque and rotor speed. The electrical equations of the motor in dq rotor reference frame are:
Where v_{d} and v_{q} are the voltages applied to the stator in dq reference frame, respectively; i_{d} and i_{q} are the currents in dq; r_{s} is the stator resistance; L_{d} and L_{q} are the stator inductances in dq axis; ω_{e} is the electrical angular speed of the rotor; T_{e} is the electromagnetic torque; 𝑛 is the number of pole pairs and; 𝜑_{𝑚} is the magnetic flux in the rotor produced by the permanent magnet. The dynamic equations of the rotor position and rotor speed are:
Where ω_{r} is the mechanical speed of the rotor; J is the inertia moment; θ_{r} is the rotor position and; T_{l} is the load torque applied to the motor. This paper considers a nonsalient PMSM with magnets mounted on the rotor surface (Omrane et al., 2015), whereby the daxis and qaxis inductances are equal, consequently the electromagnetic torque now can be calculated by:
Three control loops with negative feedback for speed regulation are used, this allows obtaining the desired rotor speed and improving steady state and transient performance of the motor. The control system includes a loop for the rotor speed, a control loop in daxis current and one in qaxis. Figure 1 shows the block diagram of overall control system for PMSM drive system. The control system consists of an ACDC voltage source converter, a PMSM, a DCAC voltage source inverter, an automatic current control, a position sensor that determines the speed of the rotor and a speed regulator. Multiplying the rotor mechanical angle by the number of poles, the electric angle is calculated.
The speed reference 𝜔^{∗}; the desired direct axis current
Field Oriented Control for PMSM
Design of the control scheme: The PMSM model (1), (3)(5) is a dynamic system with two control inputs, v_{d} and v_{q}. If in some way can make the component of the direct axis current is equal to zero, a similar behavior to a DC motor with excitation constant flux is obtained (Choi et al., 2015). The equations indicate that the PMSM is a nonlinear system due to coupling between the different state variables (currents and rotor speed). We can also observe that the parameters depend on the operating conditions, mainly load torque and operating temperature. The control objective is to design an asymptotically stable speed controller for PMSM to make the rotor speed track the reference trajectory correctly under different parameter perturbations and load torque disturbances. Therefore, the main signal error can be defined as:
Where 𝑒_{𝜔} is the rotor speed error,
Where
Where
Calculation of the desired current
The speed tracking error can be defined as:
Where c>0, and the convergence speed of (10) depends of the constant c. Equaling (9) and (10) and solving for i_{q}, the desired current
We can see that the desired current value is a function of three variables: derivative of the desired reference speed trajectory, the rotor speed and the load torque, so it is necessary to measure or estimate.
Estimated load torque: In practice, the load torque is unknown, therefore, it is necessary to design an estimator to know its value. The nonlinear estimator is described by (Moreno & Osorio, 2008):
Where 𝑒_{𝑠} is the estimation error,
The system (14) is an autonomous linear system, asymptotically stable with the appropriate choice of the l_{1} and l_{2} parameters (AguilarMejía et al., 2016).
The control scheme for PMSM is exposed in previous section, however, a proper operation requires robust strategies or adaptive control that ensure safe and reliable performance also must respond quickly and appropriately to various scenarios that it can endure. In this paper, three schemes for tuning and implementation of fieldoriented control are proposed, by comparing the performance with an adaptive PI controller.
Design of conventional PI controller for PMSM
For regulating the PMSM rotor speed and improve its dynamic performance first a conventional PI control scheme is designed, Figure 2. Considering (1) as in (Heng et al., 2010) the following new control signals are defined:
Substituting (15) and (16) in (1), the following dynamic first order system is obtained:
The PMSM speed control using two conventional PI controllers, two different closed loop control systems are necessary to regulate 𝑖_{𝑑} and 𝑖_{𝑞}, Figure 2. The controller consists of two inner loops, which regulate the stator currents in the 𝑑𝑞 stationary reference frame. Figure 2 shows that the controller for 𝑖_{𝑑} handle the error signal
Similarly, the controller for 𝑖_{𝑞}, process the error signal
Assuming that the transfer functions of the closed loop (17) and (18) are the first degree and similar, the PI controllers are:
Where 𝑉_{𝑑}(𝑠) is the Laplace transform of the control signal, 𝐸_{𝑑}(𝑠)is the Laplace transform of the error signal, 𝑘_{𝑝} = 𝐿_{𝑑} ⁄𝜏 and 𝑘_{𝑖} = 𝑘_{𝑝}(𝑟_{𝑠}⁄𝐿_{𝑑}). The τ coefficient is the time delay of the controller response. The control signals that provide the current controllers are transformed to abc reference frame, for comparison with a triangular signal. The pulses generated by the two signals comparison are sent to the power semiconductor devices in the voltage source inverter for feeding the PMSM.
Adaptive control using Bspline neural networks
Proposition: The controller design is one of the major advantages of the artificial neural networks. In this section an adaptive velocity trajectory tracking control scheme for nonlinear PMSM subjected to variable mechanical load torque disturbances is used. Artificial neural networks is employed in the synthesis of the adaptive motor control scheme based on velocity tracing. Thus, the tracking control approach has the capability to adapt or learn online from diverse operating scenarios. A different perspective for control synthesis based on output signal modeling into arbitrary small intervals of time is adopted. The independence of some detailed mathematical model of the nonlinear electromechanical system is also achieved by the Bspline neural networks (BSNN) control approach. In addition, a priori knowledge or real time estimation of disturbances is unnecessary. Furthermore, BSNN have important desirable features for efficiently controlled physical systems due to them can update their response online, considering a simple structure and a small number of basic mathematical operations. Their adaptive nature allows learning by means of examples, where a representative set of measured data, providing a relationship between inputs and outputs, is enough. This characteristic makes them suitable in application domains where there is little or incomplete understanding of the system to be controlled, but where training data are available.
Neural Network Structure: The (BSNN) are a particular case of neural networks useful for online controlling and modeling, taking into account the system nonlinearities. Some control parameters must be specified, such as the shape of the basic functions, Figure 3, and the learning rate. Despite the fact that the BSNN structure is specified, it can be adapted to achieve a satisfactory performance over a wide range of operating conditions, since its weighting vector is updated online over each sampling time. That is, the BSNN can adaptively be updated for output tracking when the system operating point is modified or an external disturbance arises.
This ANN exhibits better characteristics compared with other intelligent neural network, for example: the ANN backpropagation and ANN radial base function. BSNN in this case consists of three layers, namely: 1) a ldimensional input space standard; 2) a set of basis functions p; and 3) the output function of the network, Figure 3.
Through parameters 𝑘_{𝑝} and 𝑘_{𝑖}, the major task of the adaptive controller is to regulate the rotor speed control, Figure 3. Three error signals are employed to calculate 𝑘_{𝑝} and 𝑘_{𝑖}. 𝑒_{𝑑,𝑞} are the difference between the dqaxis currents references and the measured currents 𝑖_{𝑑} and 𝑖_{𝑞}, 𝑒_{𝜔} is the difference between desire and actual speed, finally, its derivative, Figure 3. A similar structure for each control gain is used. For determining the output value has as inputs: past and actual inputs and outputs, based on those values determine the optimal value of the controller gains, so that the error approaches to zero.
The BSNN output can be described by (Brown & Harris, 1995), Figure 2:
Where ℎ_{𝑖} is the weight connecting the ith hidden neuron to the output neuron, 𝑚_{𝑖} is the output of the ith hidden neuron and p is the number of weights. M(t) can be expressed as:
Where b_{i} is the bias of ith hidden neuron, w_{i} is the weight connecting ith input to the jth hidden neuron and e_{j} is the jth input. The proposed adaptive controller is composed by two BSNN, one to update 𝑘_{𝑝} and another to update 𝑘_{𝑖}, for each PI controller. Thus, the networks are described as follows:
Where i=1,2,3; 𝑁𝑁_{𝑖} denotes the BSNN which is used to calculate 𝑘_{𝑝} and 𝑘_{𝑖} in dq axis, respectively.
Learning Rule: To design the proposed controller it is decided that the learning rule is a gradient descent that is suitable for BSNN, instead of recursive algorithms based on least squares that are more complicated. For updating the weights Δw an instantaneous learning rule is used (Brown & Harris, 1995):
Where γ is the learning ratio; a is the vector containing the outputs of the basis functions; w is the weight vector and, e_{x} is the desired Bspline output and the actual one difference.
Convergence analysis: The instantaneous learning rule requires the minimization of the following cost function, J = E^{2} (Kumar et al., 2014) where E(E=RY) is the error between the reference input (R) and desired output (Y):
The objective of the learning rule is to find H and M so that E^{2} is minimized:
The optimum value of H and M is obtained when (27) y (28) are iqual to zero. From (27), the output weight matrix is calculated as
From (29) and (24), considering both data samples, the output weight is:
Where:
For sequential learning we have to express M_{1} as a function of M_{0}. From (31) K_{1} can be expressed as:
M_{1} can be written using (30) and (32):
From (34), the value of K for (k + 1)th data sample is derives as:
Using Woodbury formula (Golub & Loan, 1996), for each incoming data samples the can be updated using the next equation:
Using
Sequential implementation of least square solution the convergence analysis is applied here. Figure 4 shows the block diagram for the motor control where the control law depends on adaptive controller based on neural networks scheme. The tuning methodology can be developing in two stages offline and online training, Figure 5.
Offline training: Previously, an offline training was made to get the initial conditions to the online learning, Table 1 presents some experiments of the ANN response, for example: three types of basis functions with different orders were analyzed. As a result we proposed to use monovariable functions of third order, because it presents an adequate performance. Since some values are used in actual units in this system it can be concluded that the interval corresponding to the network input values is 5% ≤ i ≤ 5%; therefore, a good consideration for vector control point is [1.5 0.5 0.5 1.5]. Respect to the learning rate, it takes as initial value one point within the interval [0, 2] due to stability purposes. This value is adjusted by trial and error; with a value close to zero the training becomes slow. However, if such value is large, oscillations can occur; in this application it settles down in 0.01, with this value it seeks to have a smooth and robust control as results shown (Brown & Harris, 1995, TapiaOlvera et al., 2016, Wang & Zou et al., 2014). This training procedure is showed in Figure 5.
Load torque 
Rotor speed 

0.95 Nm  30 rpm 
3.3 Nm  150 rpm 
2.25 Nm  20 rpm 
3.03 Nm  85 rpm 
0.32 Nm  33 rpm 
1.75 Nm  74 rpm 
In the proposed scheme, some control parameters have to be specified as the basis functions and the learning rate; but once the BSNN is specified it is adaptive enough to achieve a good performance over a wide range operating conditions. This is because the weights are trained online and therefore the output of the ANN adapts to input changes at each time step. BSNN stores and adapts information locally and those weights mainly participating on the output are easily identified.
Fuzzy logic speed controller for PMSM
A Mamdani scheme with 5 membership functions is employed to design the fuzzy controller (FC). The tracking error e and the error change de are defined by:
The FC in this study uses singleton fuzzifier, triangular and trapezoidal types of membership function, productinference rule and central average defuzzifier method (Feng, 2010). In Figure 6 some groups are presented: {high negative, low negative, zero, low positive, high positive}. The design procedure of FC algorithm is as follows. Firstly, the linguist values for the membership functions are:
Secondly, the computation of the membership degree for e and de are done. The grade of membership for the fuzzy set, is obtained by:
In the defuzzification stage, the control action described in linguistic form, is transformed into a precise value to calculate a new value for the control output S, which is obtained through the centroid of the membership function and it is represented by:
Where 𝜇𝐵_{𝑗}(𝛿_{𝑗}) is the degree of membership. Thirdly, the selection of the initial FC rules refers to the dynamic response characteristics. The value of parameters {a_{i}, b_{i}} changes according to the error, and accordingly generates the linguistic value of each membership function.
Figure 7 show the control surfaces for the i_{q} and i_{d} current, respectively. The block diagram for regulating the PMSM speed using the fuzzy logic control technique is incorporated in Figure 8, changing only the sliding modes controller.
Design of the sliding mode control
Sliding Mode Current Control: Using Eq. (1), (7), (8) and (11) the switching law by nonlinear sliding mode controller for PMSM is designed (Utkin et al., 2009), being as follows:
Where 𝑣_{𝑞0} and 𝑣_{𝑑0} are the maximum values of the control signals, respectively. The sliding mode controller block diagram is shown in Figure 8. The condition of existence of sliding mode is equivalent to the stability condition, thus two positive definite Lyapunov functions are selected:
Existence condition of sliding mode: Differentiating with respect to time on the path of (78) and (5152), respectively, and substituting results:
Where 𝑒_{𝑖} = 𝑒_{𝑖}sign 𝑒_{𝑖} for i=d, q. The derivatives of the Lyapunov functions are negative if:
Therefore, e_{d}, e_{q} and e_{ω} are zero after a finite time interval.
Results and discussion
In this section the simulation results were performed to verify and compare the performance of different control schemes for rotor speed regulation. These results are used to examine the dynamic response of adaptive control (PI NN) compared with three different control schemes: PI controller (PI FIX), sliding mode controller (SM) and fuzzy controller (Fuzzy). Different operation conditions of the motor, Figure 1, are taking into account. The implementation of the four control laws is performed in Matlab/Simulink, Figure 1. The PMSM parameters are assumed known, Table 2.
Parameter  Symbol  Value and units 

Inertia coefficient  3.5e5 N.m  
Nominal voltage  120 volts  
Stator resistance 

2.6 Ohms 
Stator inductance in daxis 

6.73 mH 
Stator inductance in qaxis 

6.73 mH 
Stator leakage inductance 

0.1 
Magnetic flux from the magnet  φ_{m}  0.319 Wb 
Pole pairs  2 
A comparative performance in two different cases, considering its dynamic response is analyzed. In all cases the same algorithm to estimate the load torque is used. The convergence rate of the estimator is determined by the choice of system eigenvalues expressed by (12)(13). The proposed values are λ_{1,2}=440, the estimator gains are: l_{1} =880 and l_{2} =6.776; and the speed coefficient of desired dynamics convergence for the error in (10) is c=500.
Case 1: In this case the simulation of the control scheme is done to know their performance to external disturbances, speed requirements and load torque, Table 3. Figures. 910 show the dynamic response of the rotor speed and stator currents for the PMSM control scheme. These results present the comparison of the adaptive PI control (PI NN), sliding mode controller (SM), Fuzzy controller and conventional control (PI FIX).

Time 


0.0 Nm  if 
50sin(2πt) rpm if t ≤ 1.25 sec 
1.0 Nm  if 

0.5 Nm  if 

2.0 Nm  if 

1.0 Nm  if 
50cos(4πt) rpm if t > 1.25 sec 
3.5 Nm  if 

0.0 Nm  if 

2.0 Nm  if 
In Figure 9 different overshoot caused by external disturbance in load torque are observed, first the motor is subject to a load increase from 0 Nm to 1 Nm, Table 3. We can see that the neural network helps decrease the magnitude of the overshoot appearing in the transient speed response, achievement the steady state condition more smoothly and sometimes faster than the response of the system, that only has a conventional PI controller, sliding mode or fuzzy scheme, Figure 9(a). For example, the overshoot is less than 3 rad/sec.; on the other hand, with fixed parameters, it is about 8 rad/sec.; the settling time is 7 msec with respect to 10 msec with PIFIX, in t=0.8sec.
To appreciate in greater detail the change in motor response by different controllers a zoom section of the variable is added when the disturbance is presented. The line in red exhibits the neural network impact in motor speed control. The error evolution reveals how the gains updated in controller PI by BSNN, Figure 10(b). The performance evaluation of each controller is determined according to: ISE, IAE and ITAE. Table 4 shows the performance parameters of the MSIP for case 1.
4.7701  0.9660  0.9303  
2.5842  0.7127  0.7314  
6.1231  1.2717  1.4392  
8.9817  1.7872  1.9865 
Regarding the dynamic performance of the stator currents (i_{q}, i_{d}),Figure 9(b) shows that the evolution is suitable for all control strategies. Figure 9(b) exhibit that i_{d} = 0 except in the fuzzy controller and sliding modes techniques. The response i_{d} obtained by sliding mode controller varies within a range between 0.25 and 0.2 Amp.
The updates gains 𝑘_{𝑖} and 𝑘_{𝑝} of PI controllers provide by the neural networks have the ability to adapt to the new desired operating condition of the PMSM, Figure 11.
Case 2: In this case the requirements depends of the desired speed (ω^{*}) under changes in load torque, T_{l}, Table 5.
Load torque 
Rotor speed 

0 Nm if 
0 rpm if 
0.8 Nm if 
150 rpm if 
1.5 Nm if 
220 rpm if 
60 rpm if 
Figures 1214 present satisfactory performance for all control schemes. However, in Figure 12 it’s clear that the performance of three controllers is poorer than BSNN. The steady state condition is improved when BSNN is included, Figure 12(a). The picture 12(a) depicts the rotor speed performance when the system is in face with different disturbances, Table 4, which exhibits positive interaction between the BSNN and the conventional PI controller.
In Figure 14 the evolution of the 𝑘_{𝑖} and 𝑘_{𝑝} gains of the two PI controllers updating by the Bspline neural network is presented. For the controller gains of i_{q} current at the first samples their magnitude radically changes respect to the initial condition, reaching a value close to 1.5 and 0.71 Amp., respectively, (Figure 12(b)). Subsequently, the neural network is still learning about the motor operation, the values are updating to reach other steady state. The clearest changes are presented in the transient period, which helps that the dynamic response has better characteristics. The online learning rule operates faster when the parameters of interest are far from the optimal value, Figures 1213.
The results illustrate the impact of various design and nonlinear control techniques in the PMSM performance, the study was considered high operating requirements. The performance of control techniques is in accordance with case 1 and 2. The BSNN exhibits better performance adapting itself easily to the new circumstances. This helps to maintain the operation within safer regions, preventing from an instability scenario. Table 6 shows the performance parameters of the MSIP for case 2.
Controller  ISE  IAE  ITAE 

PIFIX  5.8197  0.1122  0.0171 
PINN  3.1278  0.0985  0.0150 
FUZZY  30.3829  1.5991  1.1748 
SM  41.3698  1.8149  1.2014 
Table 7 presents the initial conditions for k_{p} and k_{i} of each current controller for both cases 1 and 2, these were obtained by offline training. The final values that were reached after the online training have also been shown, the upper and lower limits refine the search space in the tuning process for PI controllers.
Case 1 

3.766  1.078  4.885  3.766  4.651  1.078  1.078  1.082 

5.152  0.386  6.684  5.152  6.350  0.781  0.386  0.695  
Case 2 

1.148  1.576  1.172  0.163  1.131  1.576  1.575  1.576 

0.784  1.615  0.801  0.111  0.772  1.664  0.224  1.594 
The two cases validate the appropriate system evolution under severe and sudden changes in load torque and rotor speed, respectively. The proposed tuning technique based on BSNN has better performance with respect to fixed parameters and other controllers’ performance presented in this section, considering the transient and steadystate conditions.
Conclusion
The results exhibit that all controllers are designed and proved for tracking the rotor speed reference. Three control strategies (PI, sliding mode and fuzzy) are compared vs the adaptive Bspline neural network algorithm, it is concluded that while the proposed neural controller can adapt itself to different operating conditions, the conventional controller’s performance tends to be poorer under such circumstances, especially for changes in system conditions for which their parameters were tuned. We can conclude that the adaptive neural controller with online learning has a good interaction with conventional control techniques achieved superior performance for permanent magnet synchronous motor control. The proposed adaptive control has outperformed the rest of the controllers in analysis.

^{}Accetta A., Cirrincione M. and Pucci M., (2012), TLS EXIN based Neural Sensorless Control of a High Dynamic PMSM, Control Engineering Practice, (20): 725732.

^{}AguilarMejía O., TapiaOlvera R., ValderrabanoGonzález A. & Rivas I., (2016), Adaptive neural network control of chaos in permanent magnet synchronous motor, Intelligent Automation & Soft Computing, (22), 499507.

^{}Alonge F., D’Ippolito F., Giardina G. and Scaffidi T., (2007). “Design and lowcost implementation of an optimally robust reducedorder rotor flux observer for induction motor control,” IEEE Trans. on Industrial Electronics, (54): 32053216.

^{}BeltranCarbajal F., TapiaOlvera R., LopezGarcia I., and Guillen D., (2018), Adaptive dynamical tracking control under uncertainty of shunt DC motors, Electric Power Systems Research, (164), 7078.

^{}Brown M., Harris C., (1995). Neurofuzzy Adaptive Modeling and Control, Prentice Hall.

^{}Chang Y., Chen C., Zhu Z. and Huang Y., (2016), "Speed Control of the SurfaceMounted PermanentMagnet Synchronous Motor Based on TakagiSugeno Fuzzy Models," IEEE Transactions on Power Electronics, (31), 65046510.

^{}ChihHong L. and ChihPeng L., (2013). The hybrid RFNN control for a PMSM drive electric scooter using rotor flux estimator, International Journal of Electrical Power & Energy Systems, (51): 213223.

^{}Choi H. H., JinWoo J., (2011). TakagiSugeno fuzzy speed controller design for a permanent magnet synchronous motor, Mechatronics, (21): 13171328.

^{}Choi H., Yun H. and Kim Y., (2015), "Implementation of Evolutionary Fuzzy PID Speed Controller for PM Synchronous Motor," IEEE Transactions on Industrial Informaics, (11), 540547.

^{}Englert T. and Graichen K., (2018), Nonlinear model predictive torque control of PMSMs for high performance applications, Control Engineering Practice, (81), 4354.

^{}Feng G., (2010). Analysis and Synthesis of Fuzzy Control Systems: A ModelBased Approach, CRC Press.

^{}Golub, G. H., & Loan, C. F. V. (1996). Matrix computations (3rd ed.). Baltimore, MD: The Johns Hopkins Univ. Press.

^{}Hamida M. A., Glumineau A., de Leon J., Loron L., (2014). Robust adaptive high order slidingmode optimum controller for sensorless interior permanent magnet synchronous motors, Mathematics and Computers in Simulation, (105): 79104.

^{}Han Ho C., Hong Min Y., Yong K., (2013). Implementation of Evolutionary Fuzzy PID Speed Controller for PM Synchronous Motor, IEEE Trans. on Industrial Informatics, (11): 540547.

^{}Heng D., Dipti S., Ramesh O., (2010). A Bspline network based neural controller for power electronic applications, Neurocomputing, (73): 593601.

^{}Hu J., Qiu Y., Lu H., (2016), Adaptive robust nonlinear feedback control of chaos in PMSM system with modeling uncertainty, Applied Mathematical Modelling, (40), 82658275.

^{}Iqbal A., AbuRub H., Nounou H., (2014). Adaptive fuzzy logiccontrolled surface mount permanent magnet synchronous motor drive, Systems Science & Control Engineering, (2): 465475.

^{}JinWoo J., Quoc V., Duc T., EunKyung K., Ho H., (2014). Adaptive PID Speed Control Design for Permanent Magnet Synchronous Motor Drives, IEEE Trans. on Power Electronics, (30): 900908.

^{}Jon R., Wang Z., Luo C., Jong M., (2017), Adaptive robust speed control based on recurrent elman neural network for sensorless PMSM servo drives, Neurocomputing, (227), 131141.

^{}JunJien R., YanCheng L., Ning W., SiYuan L., (2015). Sensorless control of ship propulsion interior permanent magnet synchronous motor based on a new sliding mode observer, ISA Transactions, (54): 1526.

^{}Khanchoul M., Hilairet M., NormandCyrot D., (2014). A passivitybased controller under low sampling for speed control of PMSM, Control Engineering Practice, (26): 2027.

^{}Krishnan R., (2010). Permanent Magnet Synchronous and Brushless DC Motor Drives, CRC Press.

^{}Kumar V., Gaur P., Mittal A. P., (2014). ANN based selftuned PID like adaptive controller design for high performance PMSM position control, Expert Systems with Applications”, (41): 79958002.

^{}Liu X., Yu H., Yu J. and Zhao L., (2018) Combined Speed and Current Terminal Sliding Mode Control With Nonlinear Disturbance Observer for PMSM Drive, IEEE Access, (6), 2959429601.

^{}Lu E., Li W., Yang X., Xu S., (2017), Composite Sliding Mode Control of a Permanent Magnet DirectDriven System for a Mining Scraper Conveyor, IEEE Access, (5), 22399  22408.

^{}Marufuzzaman M., Ibne M. B., Farzana L., Gyu T T., (2014). A high speed current dq PI controller for PMSM drive, Tehnički vjesnik  Technical Gazette, (21): 467470.

^{}Moreno J. A., Osorio M., (2008). Lyapunov Approach to SecondOrder Sliding Mode Controllers and Observers, In Proc. 47 th IEEE Conf. on Decision and Control, 28562861.

^{}Nizami T., Chakravarty A. and Mahanta C., (2017), Design and implementation of a neuroadaptive backstepping controller for buck converter fed PMDCmotor, Control Engineering Practice, (58), 7887.

^{}Omrane I., Etien E., Dib W., Bachelier O., (2015). “Modeling and Simulation of Soft Sensor Design for RealTime Speed and Position Estimation of PMSM,” ISA Transactions, (57): 329339.

^{}Ortega R., Monshizadeh N., Monshizadeh P., Bazylev D., and Pyrkin A., (2018), Permanent magnet synchronous motors are globally asymptotically stabilizable with PI current control, Automatica, (98), 296301.

^{}Öztürk N., and Çelik E., (2012). Speed control of permanent magnet synchronous motors using fuzzy controller based on genetic algorithm, International Journal of Electrical Power & Energy Systems, (43), 889898.

^{}Qutubuddin M. D. and Yadaiah N., (2018), A new intelligent adaptive mechanism for sensorless control of permanent magnet synchronous motor drive, Biologically Inspired Cognitive Architectures, (24), 4758.

^{}Serre, D. (2002). Matrices: Theory and applications. New York: Springer.

^{}TapiaOlvera R., BeltranCarbajal F., AguilarMejia, O. and ValderrabanoGonzalez A., (2016), An Adaptive Speed Control Approach for DC Shunt Motors, Energies, (9), 961.

^{}TapiaOlvera Ruben., AguilarMejía Omar., MinorPopocatl H., Santiago C., (2012). Power System Stabilizer and Secondary Voltage Regulator Tuning for Multimachine Power Systems, Electric Power Components and Systems, (40): 17511767.

^{}ThiThuy N. V., Choi H. H., Jung J. W., (2012). “Certainty equivalence adaptive speed controller for permanent magnet synchronous motor,” Mechatronics, (22): 811818.

^{}Utkin V., Guldner J., Shi J., (2009). Sliding Mode Control in ElectroMechanical Systems, CRC Press.

^{}Verrelli C. M., Tomei P., Lorenzani E., Migliazza G., Immovilli F. (2017), Nonlinear tracking control for sensorless permanent magnet synchronous motors with uncertainties, Control Engineering Practice, (60), 157170.

^{}Wang H., Zou Q., (2014). “BSplineDecompositionBased Approach to Multiaxis Trajectory Tracking: Nanomanipulation Example,” IEEE Trans. on Control Systems Technology, (22): 15731580.

^{}Yazdani A. and Iravani R., (2010). VoltageSourced Converters in Power Systems Modeling, Control, and Applications, Wiley.

^{}Zhang Y., Song J., Song S., Yan M., (2010). Adaptive PID Speed Controller Based on RBF for Permanent Magnet Synchronous Motor System, in Proc. 2010 IEEE International Conf. Intelligent Computation Technology and Automation, Changsha, 425428.

^{}Zhengyu L., Reay D. S., Williams B. W., Xiangning H., (2006). Torque Ripple Reduction in Switched Reluctance Motor Drives Using BSpline Neural Networks, IEEE Trans. on Industry Applications, (42), 14451453.
 » Recibido: 08/08/2018
 » Aceptado: 10/01/2019
 » Publición digital: 2019MayOct