Keywords

1 Introduction

PMSM drives have emerged as efficient variable speed drive systems in the recent trend of industrial applications giving stiff competition to the classical brushed DC and induction motor (IM) drives in the low to medium power range. The replacement of electrically excited field windings by constant flux producing permanent magnets in PMSMs have led to elimination of brushes, slip rings and rotor copper losses resulting in higher efficiencies. Although PMSMs are more expensive as compared to IMs but with high-energy magnet material (Nd-Fe-B), offer higher efficiency, higher torque to inertia ratio, higher power density reduced size and high performance in wide range of speed. Owing to these advantages PMSMs are being widely used in electric vehicles, audio equipment, household appliances, medical instruments, robotics, textiles and chemical industries [1, 2]. Due to the presence of non-linearity in the system the conventional approach of PID tuning is not very efficient with the dynamic conditions of a system because of varying parameters and complicated environmental applications [3]. The Zeigler and Nichols (Z-N) tuning method is one of the most widely used method for tuning of PID controller [4]. ANFIS based speed controller is a good tool to deal with complicated, non-linear and ill-defined systems [5]. Another evolutionary computation technique [PSO] was first presented by Kennedy and Eberhart in 1995 [6] for optimize the gain of PID controller. PSO has some demerits as the rate of convergence, problem of local extreme, premature and halt condition in searching process. In order to overcome these defects MPSO have been incorporated [7,8,9,10,11,12]. The objective of this paper is to use the MPSO algorithm in order to obtain optimal values of gains for PID speed controller for improved performance of PMSM drive. By incorporating AI techniques such as ANFIS and MPSO for tuning the conventionally used PID speed controller, an improvement in the performance of PMSM in terms of transient response under various operating conditions has been presented in this paper.

2 Design of ANFIS Based Speed Controller

The FIS to be used in ANFIS based speed controller consists of input block, output block and their respective membership functions. Figure 1 explains the development of fuzzy inference system using ANFIS edit GUI toolbox [13].

Fig. 1.
figure 1

Design of adaptive neural-fuzzy inference system

In this PMSM motor drive, there are two inputs and one output. The inputs are the speed error (e) and change in speed error (ce) and the value of du is taken as output from the ANFIS based speed controller. Algorithm of ANFIS based Speed Controller.

The block diagram representing the ANFIS based controller for the speed control of the PMSM is shown in Fig. 2 [5].

Fig. 2.
figure 2

ANFIS speed control of the PMSM

Basically, the ANFIS controller includes four processes as.

(a) Fuzzification (b) Knowledge base (c) Neural network (d) Defuzzification.

The process of designing ANFIS based speed controller involves the following steps as.

Step 1: The data of the two inputs e, ce and the output du are collected and fed as a loading data to the ANFIS edit GUI toolbox. The training data obtained is shown in Fig. 3.

Fig. 3.
figure 3

Training data plot in ANFIS edit GUI toolbox

Step 2: The required FIS is generated using the grid partition. The normalized membership functions, 3 in number for each, of the two inputs are shown in Fig. 4. The 3 membership functions for each input have been taken in order to reduce the computational burden.

Fig. 4.
figure 4

Normalized membership functions of the two inputs variables

Step 3: The control of the speed is done by the ANFIS based speed controller; the following rules are used and summarized in Table 1. The structure of ANFIS developed with all the 5 layers is shown in Fig. 5.

Table 1. Control expression of ANFIS based speed controller
Fig. 5.
figure 5

ANFIS model structure with 2 inputs & 1 output

The abbreviations in Table are as follows.

NB - Negative Big, PB - Positive Big, Z - zero.

Step 4: The loaded training data with the generated FIS is trained using the hybrid method with the following parameters given in Table 2.

Table 2. ANFIS based speed controller training parameters [13]

2.1 Incorporation of ANFIS Based Speed Controller in PMSM

The ANFIS based speed controller is obtained using the algorithm of ANFIS. It is incorporated in the PMSM drives. As shown in Fig. 6 the conventional PID speed controllers in the drives have been replaced by this ANFIS based speed controller.

Fig. 6.
figure 6

Incorporation of ANFIS based speed controller in PMSM

The PMSM has to meet the load requirement and disturbances due to speed. The number of output membership functions are equivalent to the number of rules in Sugeno based ANFIS based speed controller. The Sugeno based FIS gives a singleton output [13] unlike the most commonly used Mamdani based FIS.

3 Methodology of Proposed Modified PSO

The Modified PSO have certain advantages over Particle Swarm Optimization technique, it comes with the advantages that shares the optimal information in the group to improve the overall convergence and prevent the prematurely condition. When each group is divided, the group which has maximum population at the center is preferred. It shows a particle subgroup as a central subgroup, and the other subgroups are neighborhoods to the central subgroups, it can communicate with other subgroup near to it and other subgroups cannot share the information with each other. By using MPSO technique the information can transmit faster and improving efficiency of the algorithm. Accordingly, the distance of two vectors was obtained by the space position of each particle. The Lmax denoted as the maximum distance of any two particles. Meanwhile \( \left| {\left| {{\text{X}}_{\text{i}} \left( {\text{k}} \right) - {\text{X}}_{\text{i}} \left( {\text{k}} \right)} \right|} \right|/{\text{L}}_{ \hbox{max} } \) was also calculated. Each particle updates its status according to Eqs. (1, 2) as follows

$$ V_{i} \left( {k + 1} \right) = w\left( k \right) \, V_{i} \left( k \right) + c_{1} \left( k \right) \, r_{1} \left( {P_{i} - X_{i} \left( k \right)} \right) + \, c_{2} \left( k \right) \, r_{2} \left( {P_{g} - X_{i} \left( k \right)} \right) $$
(1)
$$ X_{i} \left( {k + 1} \right) = \, X_{i} \left( k \right) + \, V_{i} \left( {k + 1} \right) $$
(2)

Fitness function is used to evaluate every new position. In MPSO technique, the value of weight w adjust the properly, which prevent algorithm from getting into a local optimization. In this algorithm, a quasi-linear speed-weights way is used in the iterative process. This way used is illustrated as follows:

$$ {\text{w}}\left( {\text{k}} \right) = {\text{w}}_{\text{initial}} + \left( {{\text{w}}_{\text{initial}} - {\text{w}}_{\text{final}} } \right)\left( {1 - {\text{k}}/{\text{K}}} \right) $$
(3)
$$ {\text{c}}_{1} \left( {\text{k}} \right) = {\text{c}}_{{1{\text{initial}}}} + \left( {{\text{c}}_{{1{\text{initial}}}} {-}{\text{c}}_{{1{\text{final}}}} } \right)\left( {1 - {\text{k}}/{\text{K}}} \right) $$
(4)
$$ {\text{c}}_{2} \left( {\text{k}} \right) = {\text{c}}_{{2{\text{initial}}}} + \left( {{\text{c}}_{{2{\text{initial }}}} {-}{\text{c}}_{{2{\text{final}}}} } \right)\left( {1 - {\text{k}}/{\text{K}}} \right) $$
(5)

k denotes current iterate time; K denotes max iterate time.

The searching procedure of the implemented MPSO-PID controller is described in flowchart given in Fig. 7.

Fig. 7.
figure 7

Flowchart of MPSO PID controller

The optimized values of PID controller gains are shown in Table 3.

Table 3. Values of Kp, Ki and Kd obtained from MPSO method

4 Model of PMSM and Results

The model for speed control of PMSM using AI technique is as shown in Fig. 8. Matlab R2013a is used for simulation of the model and time required for the simulation is 0.5 s. The reference value of speed being used in MATLAB model is 1000 r.p.m.

Fig. 8.
figure 8

Model of PMSM using AI technique

The motor speed (given by feedback path) is compared with reference speed with the help of comparator which is fed to the PID controller. These controllers improve the transient parameters. The output of controller is fed to the dq to abc transformation. The inverter circuit is fed by the dq to abc transformation. The output of inverter circuit is fed to Permanent Magnet Synchronous Motor (PMSM). The output of PMSM is taken with the help of Bus Selector. The output of bus selector is Current, Rotor Speed and Electromagnetic torque. The Rotor speed is fed back to the comparator to achieve the desired speed which is required. The simulation is carried out under the different operating conditions such as starting, braking and load application and removal.

4.1 Starting Characteristics

The motor is started at no load with a reference speed of 1000 rpm. The stator winding currents possess low frequency at the time of starting. The motor tracks the reference speed of 1000 rpm. At this instant, the torque reaches it’s no load value (zero Nm) and the stator winding currents magnitudes and frequency settle down to their normal no load values. The starting characteristics for PMSM drive are shown in Figs. 9, 10 and 11 using Ziegler-Nichols method and AI controllers such as ANFIS and MPSO speed controller.

Fig. 9.
figure 9

Starting dynamics of PMSM drive using Z-N method

Fig. 10.
figure 10

Starting dynamics of PMSM drive using ANFIS method

Fig. 11.
figure 11

Starting dynamics of PMSM drive using MPSO method

4.2 Speed Reversal Characteristics

The reference speed is reversed at t = 0.08 s to −1000 rpm. The rotor speed follows and tries to attain the reference value as seen from Figs. 12, 13 and 14.

Fig. 12.
figure 12

Speed reversal characteristics of PSMM drive using Z-N

Fig. 13.
figure 13

Speed reversal characteristics of PSMM drive using ANFIS

Fig. 14.
figure 14

Speed reversal characteristics of PSMM drive using MPSO

The torque Tem also reduces, the speed settles down to its new reference value of −1000 rpm and the torque reverts to the no load value of zero Nm.

4.3 Load Application and Load Removal

Load application and removal of load are shown in Figs. 15, 16 and 17. When the sudden load is applied at t = 0.15 s. The developed torque follows the value of load torque. The rotor speed ωm decreases when the load is applied and increases, try to attain the reference value when the load is removed at t = 0.35 s.

Fig. 15.
figure 15

Load disturbance characteristics of PSMM drive using Z-N

Fig. 16.
figure 16

Load disturbance characteristics of PSMM drive using ANFIS

Fig. 17.
figure 17

Load disturbance characteristics of PSMM drive using MPSO

The values of the transient response specifications under starting, speed reversal and load disturbance conditions obtained from the AI techniques and Z-N method of PMSM tuned PID speed controller as shown in Table 4.

Table 4. Comparative dynamic response of PMSM drive

5 Conclusion

The performance of the PMSM motor is improved by tuning PID parameters effectively along with AI technique i.e. ANFIS and MPSO. Further, these results are compared with those of Z-N method. The proposed controller has significantly improved the transient response of the drive by optimizing gains of PID controller as compared to Z-N tuned method. Further, the proposed method incorporated in PMSM motor is robust, efficient and easy to implement. In this paper, the performance of PID speed controller with and without AI tuning has been compared and the obtained results clearly demonstrate the difference between the two waveforms obtained from simulation of PMSM model. Under various operating conditions, the analysis and comparison between the improved static and dynamic characteristics in terms of rise time, peak overshoot and settling time are demonstrated which are helpful in selection of PMSM drive for particular industrial applications.