1. Introduction
The switched reluctance motor (SRM) has the advantages of high power density, wide speed range, high reliability, and low manufacturing cost. In addition, due to the simple and robust structure, SRMs have high reliability and can operate in harsh environments [
1,
2,
3]. However, due to its unique doubly salient structure, a large torque ripple will occur, which can be attributed to the nonlinear relationship between torque and current in the operation process [
4,
5].
Current control-based methods to reduce torque ripple mainly include current mode predictive control (MPC), torque sharing function (TSF), instant torque compensation, and current injection method.
The voltage prediction can be calculated by MPC via the micro-step method, according to the rotor voltage and flux equation [
6]. Firstly, the cost function of minimum flux is designed following the flux model. Then, the MPC algorithm is employed for flux prediction and control [
7]. On the basis of this idea, the predictive current control method can be further utilized [
8]. An unconstrained MPC for current control can cope with the measurement noise and uncertainties within the machine inductance profile [
9]. Nonetheless, the MPC Model recommendations can take a long time depending on the precise mathematical model of the SRM [
10].
The TSF method has the advantage of a simple structure. The torque ripple and copper loss can reach their lowest levels by adding coefficients to the transient phase and using a genetic algorithm for optimization [
11]. The torque sharing function can be further optimized according to the reference current of the torque distribution at different angles [
12]. The above three methods require offline training. In comparison, the online method can adjust reference current without training. The iterative optimization method is divided into the outer loop and inner loop, the outer loop optimization of the turn-off angle to reduce copper loss, the inner loop optimization of torque ripple, the introduction of feedback torque, and the optimization of the turn-on angle [
13]. The inductance derivatives under different rotor angles and phase currents are calculated through finite element analysis, and the partial derivatives can be used to calculate the given current [
14]. However, this method needs to adapt better to load changes, and improvement in the accuracy of the rotor angle is required [
15]. Therefore, the accuracy of rotor angle needs to be considered [
16].
To reduce torque ripple, instant torque can be employed as compensation for current. During the commutation interval, the difference between the reference and instant torque can be used to obtain the modified reference torque, which will finally translate to the reference current [
17]. As the torque ripple in the commutation section is more serious, the feedback torque is used to reduce the torque ripple in the commutation section, and the effect is more pronounced [
18]. The Lagrangian multiplier method can also be employed to minimize current ripple and optimize the copper loss and torque ripple [
19]. As the flux change rate influences the speed and output torque, the torque error is used to adjust the reference torque of the first and second half of the transition section [
20]. Changing the supply voltage can also reduce the torque ripple by avoiding torque generation in the negative torque region [
21]. At the same time, the genetic algorithm and least square method can also reduce torque ripple by optimizing the opening angle and transition angle [
22]. The error between the reference and the instant torque constitutes a fuzzy set to generate a reference current insensitive to rotor angles [
23]. According to the current voltage and speed, the maximum output torque capacity of the current phase is calculated, and the other phase compensates for the defective part to obtain the phase reference torque of the commutation [
24]. Torque error fuzzy processing, resulting in compensation current, can also reduce torque ripple [
25].
A proper compensation current is essential in the current injection method. The torque error can be used as a ratio to inject into the present current, and repeat the process in the iterative learning process to obtain a proper compensation current [
26]. The DC and first and second current harmonics mainly contribute to the average torque. In comparison, the fourth and fifth current harmonics significantly influence the torque ripple, but contribute much lower to the average torque [
27]. Therefore, finite element analysis and current profiling adjustment can effectively reduce torque ripple through torque error [
28]. To obtain the inductance value and change rate in the coefficient of torque formula, injecting high-frequency voltage is feasible [
29]. The coefficient of the relationship between compensation current and torque error is complex. Reference torque, instant torque deviation, and rotor angle are input into the fuzzy controller to obtain compensation current [
30]. The feed-forward plus torque compensation can reduce the dynamic response time and improve the steady-state accuracy of electromagnetic torque [
31]. The fuzzy compensator adjusts the torque error, and the torque ripple can also be reduced by compensating the result to the reference torque [
32].
The speed controller can generate the reference torque in TSF, but there is always a difference between the reference and instant torque. This difference is attributed to the reference current generated by the TSF, which is not the actual current required, resulting in a large torque ripple.
Based on parameter adjustment learning, neural networks can be employed for model identification and control [
33]. The robustness of the system to speed control can be enhanced by introducing a neural network into the sensorless speed [
34]. Similarly, the optimal control parameters of the SRM can be calculated using a dynamic SRM model, and the parameter curve can be fitted by a neural network [
35]. A nonlinear flux linkage model can be trained by constructing a network of two hidden layers with two-dimensional positions, current inputs, and flux linkage output [
36]. Applying the improved generalized regression neural network optimized by the fruit fly optimization algorithm to the modeling of the SRM can further improve the effectiveness and superiority of the neural network [
37]. A neural network based on learning error pretreatment for flux linkage control of the SRM can effectively reduce torque ripple and has excellent repeatability [
38].
Based on the above analysis, a reference torque neural network (RTNN) is herein designed to adjust the reference torque online to reduce torque ripple. The contribution of this manuscript is
(1) A RTNN is designed to correct the reference torque, employing the instant torque as feedback and rotor angle as the center of the neural network.
(2) The implicit function in the RTNN is constructed according to the total current’s characteristics. Compared with the fuzzy and proportional derivative (PD) compensation, the RTNN can compensate the current more effectively, reducing the torque ripple more noticeably.
(3) The RTNN is designed for online learning and one-step adjustment, avoiding offline training.
The rest of this article is organized as follows. In
Section 2, the principle of reference torque generating is introduced.
Section 3 proposes the strategy of reference torque modified by RTNN. In
Section 4, the performances of the proposed scheme are evaluated via simulations under different operating conditions. Finally,
Section 5 concludes this article.
2. Reference Torque Generation
SRM has a double salient pole structure, its operation follows the principle of minimum reluctance, and to obtain higher energy conversion efficiency, SRM works in the magnetic saturation region, which makes the nonlinear problem of the motor more serious.
The electromagnetic torque of SRM, which is related to current and rotor angle, can be calculated from the partial derivative of the co-energy to the rotor angle, as follows:
where
is the co-energy. As the effect of magnetic saturation is very low, neglecting the saturated nature, we apply the formula as
By substituting Equation (
2) into Equation (
1), we obtain
where
i is phase current,
L is phase inductance, and
is rotor angle.
The torque distribution formula is distributed to each phase as the reference torque is obtained, as
Figure 1 shows. The typical TSF includes linear TSF, sinusoidal TSF, and cubic TSF. Among them, the transition section in cubic TSF is more stable. Therefore, the cubic TSF is employed, and its distribution function is presented as Equation (
4).
where
is the on angle,
is the off angle,
is the overlap angle, and
is the period.
The distributed torque is converted into current by Equation (
5).
The reference torque of each phase is then converted into the reference current, and the given current is compared with the feedback current to control the drive circuit on and off angle, thereby realizing the motor control. In the linearized TSF control method,
, is treated as a constant value because its value varies negligibly compared to the value of the current. Current can be calculated by Equation (
5). This allows the SRM to operate under different conditions. However,
is not a constant value, its value changes with instant current and rotor angle. The improper selection of the inductive derivative will lead to a detrimental reference current, resulting in torque ripple.
3. Reference Torque Modified by RTNN
3.1. Relationship between Reference Torque and Instant Torque
It is a standard method to reduce torque ripple using the difference between instantaneous torque and reference torque, using the difference to compensate for the reference torque. However, as the compensation basis needs to be clarified, the fuzzy method must work with an unclear model [
32].
Calculate the difference between the instantaneous and reference torque and form the fuzzy torque compensation according to the difference and the change in the difference. The resulting system control structure is shown in
Figure 2. The designed fuzzy controller combines the artificial experience value to provide compensation torque.
Since the final control object is current, the method of transforming torque error to the reference current is designed. The instantaneous torque is introduced to compensate for the reference current in advance, and the PD controller is used to compensate [
31]. The structure designed is shown in
Figure 3.
The PD algorithm can be classified as the model-free control method. The transformation from the torque error to the compensation current does not need any SRM model, but its parameter adjustment consumes lots of time. Therefore, whether the parameter selection is reasonable or not has a significant influence on the compensation effect.
This paper considers the compensation method of parameter self-adjustment and self-learning. Due to the fact that the neural network has excellent self-learning ability, the neural network is introduced to learn the compensation amount according to the present rotor angle and torque error. The structure is shown in
Figure 4.
The RTNN is placed following the PI speed controller, which adjusts the reference torque slightly according to the present rotor angle and torque error. The subsequent process is the same as the conventional TSF method to maintain the simplicity and stability of the control structure.
In the TSF method, the reference torque is calculated according to the mechanical equation of the motor. Nonetheless, there should always be a difference between the reference and feedback torque.
To better illustrate the proposed algorithm, the speed is set as 300 rpm, and the load torque is 2 Nm; the reference and instantaneous torque curves are shown in
Figure 5. The four curves, generated according to the control structure in
Figure 4, from top to bottom are reference and instant torque, torque error, and rotor angle, respectively. The torque error always exists as the speed closed loop is designed according to the motor’s mechanical equation, ignoring the speed fluctuation. At the same time, the reference torque lags behind the instant torque. The PI controller is also employed to compensate for the instability in the speed control, with inferior performance. Although more complex algorithms can be introduced to reduce the calculation time from the speed error to the given torque, they cannot fundamentally solve the problem.
3.2. RTNN
RTNN is used in the system to fine-tune the reference torque online according to the rotor angle. The working principle of RTNN is shown in
Figure 6.
The PI speed controller calculates the speed error to obtain the reference torque, which constitutes the input of the neural network and the rotor angle. At the same time, the instantaneous torque is obtained via a look-up table, according to the feedback current and rotor angle. Finally, the difference between the instant and the reference torque is used to adjust the internal parameters of the neural network.
The internal structure of the constructed RTNN is shown in
Figure 7.
The RBF neural network is a network with the radial basis function as its core. It is usually designed as a three-layer structure, including an input layer, hidden layer, and output layer. The neuron activation function of the hidden layer is composed of radial basis functions. The array operation of the hidden layer is called the hidden layer node. Each hidden layer contains a central vector
c, which has the same dimension as the input vector
X. The radial basis function is usually selected as the Gaussian function, which is
where
is the Euclidean distance,
is the center vector, and
is the network width.
The training of the RBF network is the learning process of network parameters, including the center of the hidden layer, network width, number of hidden layer nodes, and the connection weight value from the hidden layer to the output layer. The hidden layer center is generally trained by random selection or unsupervised clustering based on data samples.
Referring to the RBF structure, the RTNN proposed in this paper is a single-input network and uses a feed-forward link. As a result, the reference torque does not go through the network node, but directly multiplies with the neural network output to obtain the corrected reference torque . Therefore, the neural network in the RTNN plays a role in adjusting the size of the reference torque according to the rotor angle.
The construction of the RTNN refers to the structure of the RBF network. The implicit function is the radial basis function, and its expression is
At the same time, the error back propagation algorithm is used to correct the weights and coefficients, where the error is defined as the square of the error, and the goal is to minimize the error.
The output of the neural network is defined as
, and its expression is
The parameter learning process of neural network is
where
is the learning rate.
The coefficients update equation is
where
the momentum factor.
Thus, after RTNN correction, the final reference torque becomes
The center point in RBF is often random and then adjusted by the error backpropagation. Unlike the random selection of hidden layer center in the traditional RBF, in the proposed method, the RBF neural network’s center point significantly influences its tracking effect. Although the center value can be adjusted and changed by error feedback, the neural network is used to correct the reference torque online in this paper, the optimized adjustment needs to be completed in one step, and the one-step adjustment effect directly affects the size of the reference torque, which has a significant influence on the torque ripple.
By observing the total current during SRM operation, it is found that the total current presents a regular change in approximate sine wave. There are three peaks and troughs in one rotor angle period, as shown in
Figure 8. According to this characteristic, the implicit function is customized to speed up the correction of the reference torque.
According to the characteristics of 12/8 SRM, the center point of the implicit function is initialized to
Thus, after the initialization is completed, the peak points of the total current are in the middle of each phase.
3.3. Flow Chart of Algorithm Steps
STEP 1 Calculate the speed error according to the set speed and real speed.
STEP 2 Calculate reference torque by PI controller.
STEP 3 Measure the rotor angle and phase current.
STEP 4 Obtain the instant torque according to the torque look-up table.
STEP 5 Calculate the torque error according to the reference torque and instant torque.
STEP 6 Adjust the network weight coefficient according to torque error.
STEP 7 Calculate the modified reference torque.
STEP 8 Share the reference torque by TSF.
STEP 9 Calculate reference current.
STEP 10 Current hysteresis calculation.
The RTNN adjusts the weight and width vector of the neural network in each calculation step, as shown in
Figure 9. Therefore, the output modified the reference torque periodically according to the rotor angle. RTNN is an online parameter adjustment method. Hence, its one-step adjustment results are directly used to generate the reference torque.
4. Verify Simulation
To verify the proposed algorithm’s correctness and compare it with the PD compensation algorithm, the simulation model of switched reluctance motor is built in MATLAB/Simulink. The SRM chosen is the 12/8 type, with rated voltage 240 V, rated speed 3000 rpm, stator resistance 0.01 , stator alignment at the maximum inductance 0.00015 mH, friction coefficient 0.01 N.m.s, and inertia 0.0082 kg·m.
In the simulation, the inner loop is the current loop control, and the current hysteresis loop is symmetrically designed as 0.1 A. This method is compared with the fuzzy and PD compensation algorithm. In the PD compensation algorithm, the total current is obtained first, and then the total current is distributed. The proposed RTNN compensates the reference torque first, then the corrected reference torque is distributed, and finally, the torque to current conversion is performed. The distribution method used in the above three methods, whether or not the torque or current is distributed, is the cubic distribution function. As a result, the essence of the distribution of reference torque first, then torque–current conversion, and first torque–current conversion, then current distribution is the same.
In order to better measure the suppression of torque ripple under different control methods, the calculation formula of torque ripple is designed in the form of Equation (
14).
where
is torque ripple,
is maximum torque during the measuring circle,
is minimum torque during the measuring circle, and
is average torque during the measuring circle.
Considering the response characteristics of the actual motor object, the torque table used in the simulation is based on the data obtained from the actual motor test. The instantaneous torque in the simulation is obtained by testing the actual electromagnetic torque by fixing the rotor at different rotor angles and providing different currents to measure its electromagnetic torque. The electromagnetic torque in simulation is also provided by the established torque table. It corresponds to the real-world motor output.
Thus, the RTNN proposed in this paper is compared with the fuzzy and PD compensation method. The parameters of the PD compensator were optimized and selected as and . The central value in RTNN is given as above, and the other parameters are specified as and , The neural network node is selected to be 7, w is initialized to a 1-row 7-column matrix of 5, and b and c are initialized to a 1-row 7-column matrix of 10 and 1.5.
The load torque is set to 2 Nm, and the speed is 300 rpm. The three methods mentioned above are used to compensate respectively. The simulation results are shown in
Figure 10.
Figure 10a–c show the torque and current response curves using the fuzzy compensation method, PD compensation method, and the proposed RTNN method, respectively. The more significant value of torque ripple is generated during the commutation process. The torque ripples caused by the fuzzy compensation, PD compensation algorithm and the RTNN algorithm are 47.5%, 20.9%, and 13.5%, respectively. With the proposed RTNN, the torque ripple can be reduced by 71% and 35%.
The fuzzy compensation algorithm has a minimal ability to reduce torque ripple. In addition, as the reference torque lags behind the instantaneous torque, the fuzzy algorithm can not correct the lag problem by compensating the reference torque. The PD compensation algorithm cannot adjust the compensation current value according to the rotor angle due to its fixed parameters. Therefore, it only relies on the reference torque error to compensate, and the improved performance is limited. On the other hand, the RTNN method adjusts the compensation system according to the rotor angle. It fully considers that the torque ripple of SRM is enormous in the commutation process. Therefore, the reference torque is adjusted according to the torque error, and the effect of suppressing the torque ripple is noticeable.
Similarly, the load torque is changed to 5 Nm, and the speed is adjusted to 700 rpm. The fuzzy compensation, PD compensation, and RTNN methods proposed in this paper are also compared and tested. The simulation results are shown in
Figure 11. The torque ripples generated by the fuzzy compensation, PD compensation algorithm, and the RTNN algorithm are 51.7 %, 15.7%, and 11.8%, respectively, and the torque ripples are reduced by 77% and 25% with the proposed RTNN. Through the performance of torque ripple, it is found that the torque ripple is reduced to varying degrees after increasing the speed and load torque.
The performance of the three methods at different operating points is shown in
Figure 12, with speed changed from 100 rpm to 900 rpm, an interval of 200 rpm, and with a load torque of 1 Nm, 2 Nm, and 5 Nm, respectively. The specific torque ripple value is shown in
Table 1. The numerical results show that the torque ripple of the fuzzy compensation algorithm is unchanged with the torque increase. In contrast, the torque ripple of PD and RTNN algorithms decreased. In the case of small load torque, the effect of the RTNN algorithm to reduce torque ripple is not apparent, mainly because, in this case, small control current changes will cause significant electromagnetic torque changes. Therefore, the electromagnetic torque is not easily controlled.
The advantages, disadvantages, and performance comparisons of the three algorithms are shown in
Table 2. The fuzzy compensation algorithm can optimize the reference torque, which can combine well with the human experience, but searching the fuzzy rule table consumes more processor time and increases the algorithm’s complexity. PD algorithm is a model-free compensation algorithm that realizes the calculation from torque error to compensation current. The computation is low, but its parameters are fixed, so the adjustment amount is fixed. The RTNN algorithm aims at optimizing the reference torque, has the ability of self-learning, needs model information, and requires rotor angle accuracy. The suppression is evident using the method proposed in this paper. The torque ripple suppression effect of the proposed RTNN method is better than that of the fuzzy and PD compensation methods under different operating conditions.