Mathematical Problems in Engineering

Volume 2014 (2014), Article ID 160685, 10 pages

http://dx.doi.org/10.1155/2014/160685

## Parameter Identification of PMSM Using Immune Clonal Selection Differential Evolution Algorithm

^{1}College of Electrical and Information Engineering, Hunan University, Changsha 410082, China^{2}School of Information and Electrical Engineering, Hunan University of Science and Technology, Xiangtan 411021, China

Received 21 October 2013; Accepted 9 April 2014; Published 30 April 2014

Academic Editor: Reza Jazar

Copyright © 2014 Guohan Lin et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

Permanent magnet synchronous motor (PMSM) models with accurate parameters are crucial to high performance PMSM control system designs. As the estimation of PMSM parameters is very difficult due to the *nonlinear* model complexity, a novel immune clonal differential evolution algorithm (ICDEA) is proposed to identify the electrical parameters of nonsalient pole PMSM. Clonal selection and receptor editing mechanism are introduced to ICDEA to increase the diversity of the population and improve searching capability. The effectiveness of the proposed identification method is verified by both simulation and experiment. The results show that the proposed algorithm has good convergence in simultaneously estimating stator resistance, *dq*-axis inductances, and rotor flux linkage. In addition, the convergence speed of ICDEA is compared with other differential evolution (DE) algorithms, which verifies that the ICDEA has better performances in global searching.

#### 1. Introduction

Permanent magnet synchronous motor (PMSM) is widely used in high performance servo system due to its high power density and high efficiency. Meanwhile, control techniques such as field oriented control (FOC) and direct torque control (DTC) for controlling PMSM are also still developing and improving. In FOC, the parameters of current control loop will directly affect the overall performance of the system, and the greatest impact on the design of the current loop controller is the stator resistance and stator inductance. Therefore, identification of motor parameters accurately is important to design the current loop controller. In addition, parameters of speed loop and position loop controller are also influenced by the current loop control parameters. In DTC, electromagnetic torque and stator flux are used as control variables to directly control the torque and flux deviation through the hysteresis comparator. It is necessary to estimate the stator flux accurately, and the premise to estimate the stator flux accurately is to know the motor parameters exactly [1]. Common methods proposed for parameter identification include least squares [LS] method [2], model reference adaptive (MRA) method [3], extended Kaman filters (EKF) method [4], artificial intelligence methods (neural networks, fuzzy logic, genetic algorithms, etc.) [5], and evolutionary algorithms [6, 7].

The LS method is simple. When used in parameter identification, its objective function is the square of error between the measured results and the calculated results, and the minimum value of the objective function is zero. The LS method is suitable for online identification of motor parameter as its calculation amount is small. However, during the identification process, It is need to differentiate the objective function with respect to the motor parameter. The result of differentiation is easily affected by speed fluctuations or measurement noise which will lead to the deviation of the estimation result.

EKF method can avoid the problem of noise sensitivity and can estimate the state and parameters of the motor simultaneously. However, owing to large number of vector and matrix operations during the iterative process, the computation amount of this algorithm is great. In addition, pretreatment of motor mathematical model is needed and this is complex when used in multiparameter identification. As in [8], the motor and load parameters including stator resistance, stator inductance, and torque constant are identified using neural network. Reference [9] used back-propagation neural network for speed estimation; this method does not require prior model training and offline training, and the whole training process is conducted online. However, the neural network methods cannot guarantee their own stability and the convergence of the identification results. In [10], an MRA parameter identification method is proposed. The motor resistance is set as design value on the data sheet, and then we identify the rotor flux and stator resistance; however, when the motor is running, the resistance is changing which will bring to great estimation error. In [11], Popov stability criterion was used to estimate PMSM parameter and the identification effect is better. But this method cannot estimate the parameters of the stator resistance, -axis inductance, and rotor flux linkage simultaneously. Evolutionary algorithm based on immune particle swarm optimization (PSO) was proposed in [12]; this method can identify stator resistance, stator flux, and inductance simultaneously and the result is accurate, but the method is too complex.

An immune clonal differential evolution algorithm (ICDEA) based estimation method for identifying the electrical parameters of a nonsalient pole PMSM is proposed. The proposed method does not need the nominal value of any parameters and can estimate the stator resistance, -axis inductance, and rotor flux linkage simultaneously. The proposed method is verified through both simulation and experiment test and shows good performance in estimation of the electrical parameters of PMSM.

#### 2. Model of PMSM

Ignoring the iron loss, magnetic saturation, and magnet eddy current loss, the electrical model of a sinusoidal PMSM in synchronous rotating reference frame (-axis) can be expressed as follows: where , , , and are the -component of stator current and voltage, respectively, is the rotor electrical angular speed, , , , and are the stator resistance, and -axis and -axis are the inductance and permanent magnet flux linkage, respectively.

In the proposed identification method, -axis current, -axis voltage, and rotor electrical speed are measured and stored after filtering by low-pass filter. The parameter identification can be based on steady state discrete model of PMSM [13] as shown in the following:

The zero -axis current control strategy is widely used in PMSM control. In this case, (2) can be simplified as

In (3), , , , and are the unknown parameters to be identified; other variables, such as -axis current, -axis voltage, and electrical speed, are measurable. As there are four parameters to be estimated and the rank of (2) or (3) is two, it can be regarded as rank deficient equation. To solve the rank deficient problem, in [14] LIU injects a short pulse of negative current and simultaneously solves two sets of simplified PMSM state equations corresponding to and and gets a set of -axis equation as follows: where the variable and parameters with/without suffix “0” are referred to as and , respectively.

#### 3. Immune Clonal Selection Differential Evolution Algorithm (ICDEA)

##### 3.1. Standard Differential Evolution Algorithm

Differential evolution (DE) algorithm was proposed by Storn and Price in 1997 and has received increasing attention due to its effectiveness and simplicity [15]. DE algorithm is a population-based evolutionary computing method and has the characteristic of memorizing of individual’s optimal value, sharing internal information. Its basic operator includes mutation, crossover, and selection. It can be seen as a kind of greedy genetic algorithm with the idea of ensuring quality. In the initialization phase, the individuals are initialed with an average probability distribution within the search space. In the evolutionary stage, individuals undergo mutation, crossover, and selection until the stop condition is met. Each individual represents a candidate solution of objective function ; its quality is evaluated through calculating the fitness function and the optimal individual is recorded and tracked.

The evolution process of DE starts with a population which includes NP individuals; each individual is a dimensional vector and can be described as follows:

The evolution process starts after the population is initialized randomly, and the process includes mutation, crossover, and selection operation. There are several mutation strategies according to the producing way of individual. Common mutation operator include DE/rand/1/bin and DE/best/1/bin. For each target individual , according to the mutation operator, a mutation vector is generated by adding the weight difference between a defined number of individual randomly selected from the previous population and another individual, which is described as or where denote the best individual in current population, are integers randomly generated and mutually different and also different from , and is the scaling factor, which is a positive constant and used to control the amplification of the differential of or and thus represents the level of mutation. Following the mutation operation, for each target individual , a new individual is generated by the following equation: where is called a crossover constant, is the th evaluation of a uniform random number generator with value between 0 and 1, and is a randomly selected index and used to ensure that is different from [15].

“Greedy” selection strategy is used in selection phase to ensure the better individual can get into next generation. Individual of next generation is created according to the following formula: is the new individual in the new population and is the fitness function. Only the value of fitness function of trial vector is smaller than that of the target vector ; the next generation will be replaced by .

##### 3.2. Immune Differential Evolution Based on Clonal Selection Algorithm

As described above, DE algorithms use greedy search strategy in selection operation; that is, after mutation and crossover operation, only the individual with better fitness value can be chosen as offspring. This greedy mechanism can increase the convergence speed of the algorithm; however, it is easily trapped into local minimum and lead to the premature convergence. To deal with this problem, a DE algorithm based on immune clonal selection algorithm is proposed. In proposed algorithm, certain number of outstanding offspring individuals underwent clonal selection operation, which retains the excellent individuals as much as possible and thereby enhancing the convergence accuracy and diversity of the population. The inactive individual undergoes receptor editing operation to ensure the diversity of the population and to speed up the convergence rate of the algorithm.

##### 3.3. Artificial Immune Algorithm

One reason for premature convergence in DE algorithm is that the population diversity declines rapidly during the iteration; this is called as gather phenomenon, which makes the difference between the individual’s fitness get smaller and smaller and tend to concentrate on converging to one point, and the population cannot research in the solution space. Therefore, the algorithm falls into a local optimum and premature convergence phenomenon is appearing. In addition, as DE algorithm is a stochastic search method, if the problem is a multimodal function in which multiple local minima exist, the algorithm is easy to trap into local optimum and is difficult to find the global optimum. In order to improve the optimization capability to solve multimodal problem, clonal selection mechanism and the receptor editing mechanism are introduced.

##### 3.4. Clonal Selection Algorithm

Clone selection algorithm (CSA) was presented by de Castro and Von Zuben in 2000 [16]. As a new kind of bionic intelligent algorithm, CSA has the property of fast convergence to the global optimizations. CSA introduces the mechanism of affinity maturation, clonal and memory based on the traditional bionic evolutionary algorithm and uses the corresponding operators that guarantee it converging to the global optimization. The basic steps of CSA are as follows:

*Step 1. *Generate a set of candidate solutions .

*Step 2. *Clone the individual in population ; the clonal size is proportional to its affinity:
where denotes the rounding function, is population size, and ; constant is added to ensure that each antibody has a certain number. After clonal operation, a temporary population is generated.

*Step 3. *Antibody population is created through hypermutation to each individual in population . Inspired by natural biological evolution, in the beginning stage of evolution, the mutation rate is larger to maintain the diversity of the population, whereas in the later stage of evolution, the mutation rate declines gradually to improve the ability of local tuning. The mutation operator is defined as follows:
where is random number between 0 and 1, , , is the max number of evolutionary generations, is normal number and its general value is set to 2, and . It can be seen from (11) that in the beginning of evolution, when is small, , mutation range is large and in the later stage of evolution, when is near to , , local search will be carried on within a small range local space.

*Step 4. *Immune selection operations: after clonal operation, the individual with optimum affinity is chosen to next generation. Through local selection, population compression is realized while ensuring the optimal solution in the antibody group is not deteriorating.

##### 3.5. Receptor Editing Mechanism

Receptor editing mechanism [17] refers to the T-cell and B-cell receptor’s structure change in specific condition and the affinity of receptor change accordingly. Receptor editing mechanism enriches the diversity of antigen receptors. In ICDEA algorithm, inactive cell receptor is distinguished at intervals of certain generation, and receptor editing is carried on to this inactive cell receptor through using nonlinear logistic sequence to realize the random and regular drift as the following formula: , are low bound and up bound, respectively, and is normal constant and its value is determined by specific problems. is mapping of chaotic sequence logistic and given by where is the control parameter of system; it has been proved by [18] that when and , the system described by (13) is completely chaotic and is ergodic within 0 and 1.

##### 3.6. Algorithm Procedure

The proposed ICDEA can be summarized as follows.

*Step 1. *Set the values of population size NP, maximum number of iterations , scaling factor , and crossover probability CR; set the current number of iterations and initialize each individual randomly according to the following formula:
where ; , and and are up bound and low bound on th dimension.

*Step 2. *Calculate individual fitness and find the optimal fitness value and record the best individual in the current generation as .

*Step 3. *If the optimal fitness value reaches theoretical optimal value or current number of iterations is equal to , then output the outcome; otherwise, go to next step.

*Step 4. *Sort all individuals according to their fitness value. For the top one fourth of the outstanding individual, clonal selection operation is carried on; if the individual fitness value is better than the current generation of global optimal individual fitness, it is replaced with the individual global best individual , whereas one fourth of individual with poor fitness undergo receptor editing operations every several generations.

*Step 5. *Randomly select two different individuals in the population and generate individual through mutation operation according to (6).

*Step 6. *According to (8), generate test individual using crossover operation.

*Step 7. *Carry out selection operation according to(9)

*Step 8. *; return to Step 2.

#### 4. Multiparameter Identification of PMSM Using ICDEA

Parameter identification of PMSM can be regarded as a system optimization problem. The identification principle is to find a set of parameters that minimize the error between the output of the theoretical model and the actual system. To use optimization algorithm for parameter identification, the model of PMSM can be described as the form of differential equations which is as follows [19]: where is the state vector, is the system input vector, is the parameter vector which is needed to identify, is the measurable output vector, and and can be either linear or nonlinear function. The objective of parameter identification is to identify the unknown parameter vector as accurately as possible; an equipollent tracking model of the system is established as follows: where is the estimated value of . The structure of the ICDEA based parameter identification of PMSM is illustrated in Figure 1.

First, is fed into both the system to be identified and the desired system; the outputs of both of the system and its desired system are input to the performance evaluator and then the fitness will be calculated; the calculated fitness is input to the ICDEA based identifier to estimate the unknown parameter vector; the estimated parameter will be used to update the system model. The above process will be repeated until the error between output of system and its model reaches the desired error limit or the preset maximum iteration number is equal to its preset maximum.

As described above, PMSM parameter identification is an identification problem with nonlinearity structure. Four parameters, stator resistance, axis inductance, and linkage flux are to be estimated. The fitness function is constructed according to (2), (3), and Figure 1 [20]. Consider where are weight value and is the number of sample data. Equation (17) is a function of the estimated parameters with multiple local optima. As traditional algorithms usually have difficulties in optimizing complex nonlinear systems with multiple local optima, the fitness function is optimized using the proposed ICDEA to search for better identification of PMSM electrical parameters. The flow chart of the ICDEA based parameters identification is illustrated in Figure 2. The time complexity of each step is presented in Table 1.

#### 5. Simulation and Experimental

##### 5.1. Simulation

A nonsalient poles PMSM is simulated in Matlab to demonstrate the performance of the proposed ICDEA applied to PMSM parameter identification. In the simulation, the PMSM is applied to vector control drive system with cascaded PI controllers which are widely used in industrial motor drive system. Similar structure is used in our experimental test platform. Nominal parameters of the simulated PMSM are listed in Table 2.

To compare with others algorithms, different DE algorithms include DE [21] and adaptive differential evolution (ADE) [22]; hybridizing differential evolution and particle swarm optimization (HDEPSO) [23] are applied to the PMSM electrical parameter identification. During simulation, all the algorithms iterate 100 generations; the parameters of simulated PMSM are chosen to be identical to the test motor datasheet parameters. Figure 3 shows the optimization process of the fitness function (cost) and the optimization process of the identified parameters and are shown in Figure 4.

It can be seen from Figures 3 and 4 that the convergence rate of proposed ICDEA is significantly faster than DE, ADE, and HDEPSO, and the algorithm is capable of identifying the electrical parameter of PMSM accurately.

##### 5.2. Experimental Verification

To further verify the effectiveness of the proposed estimation method, experiments are performed on a platform of PMSM drive system. The experimental data were obtained on a PMSM fed from vector control drive and coupled to an identical DC motor as its load. The DSP (TMS320LF28335) based hardware test bed is displayed in Figure 5, specification for PMSM is identical to Table 2.

In the experiment, the motor was started and rotated at its rated speed. Data including -axis current, -axis voltage, and electrical speed are sampled and memorized. During the identification process, the data are sent to the computer to calculate iteratively. The procedure is similar to that of the simulation described previously, except that the real data are utilized.

The convergence rates of different evolution algorithms are shown in Figure 6(a). Figure 6(b) shows the fitness value variation of DE, HDEPSO, ADE, and ICDE, respectively, which shows that the ICDE can converge to the global optimum about 4 s and it is more effective than the other three DE algorithms.

Optimization process of the identified parameters is shown in Figure 7. The identification results are present in Table 3. It can be seen from the experiment results that the ICDEA is the best identification algorithm compared with DE, ADE, and HDEPSO.

#### 6. Conclusion

A new hybrid DEA named ICDEA is proposed for PMSM electrical parameters identification. ICDEA incorporates clonal selection, receptor editing, and DEA. Both simulation and experiment results are provided to verify the effectiveness of the proposed method. Comparing with other different DEA shows that the ICDEA has better optimization capability and has good convergence in simultaneously estimating PMSM electrical parameters such as stator resistance, axis inductances, and rotor flux linkage. As the proposed method is used for nonsalient pole PMSM (assuming that ), it still needs further research for parameter identification of salient pole PMSM.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### Acknowledgments

This work was supported by the National Natural Science Foundation of China (no. 61174140) and Hunan Province Natural Science Foundations of China (no. 11jj4049).

#### References

- S. Ichikawa, M. Tomita, S. Doki, and S. Okuma, “Sensorless control of permanent-magnet synchronous motors using online parameter identification based on system identification theory,”
*IEEE Transactions on Industrial Electronics*, vol. 53, no. 2, pp. 363–372, 2006. View at Publisher · View at Google Scholar · View at Scopus - K.-Y. Wang, J. Chiasson, M. Bodson, and L. M. Tolbert, “A nonlinear least-squares approach for identification of the induction motor parameters,”
*IEEE Transactions on Automatic Control*, vol. 50, no. 10, pp. 1622–1628, 2005. View at Publisher · View at Google Scholar · View at Scopus - S. M. Gadoue, D. Giaouris, and J. W. Finch, “MRAS sensorless vector control of an induction motor using new sliding-mode and fuzzy-logic adaptation mechanisms,”
*IEEE Transactions on Energy Conversion*, vol. 25, no. 2, pp. 394–402, 2010. View at Publisher · View at Google Scholar · View at Scopus - M. Rashed, P. F. A. MacConnell, A. F. Stronach, and P. Acarnley, “Sensorless indirect-rotor-field-orientation speed control of a permanent-magnet synchronous motor with stator-resistance estimation,”
*IEEE Transactions on Industrial Electronics*, vol. 54, no. 3, pp. 1664–1675, 2007. View at Publisher · View at Google Scholar · View at Scopus - M. A. Rahman and M. A. Hoque, “On-line adaptive artificial neural network based vector control of permanent magnet synchronous motors,”
*IEEE Transactions on Energy Conversion*, vol. 13, no. 4, pp. 311–318, 1998. View at Publisher · View at Google Scholar · View at Scopus - W.-X. Liu, L. Liu, and D. A. Cartes, “Efforts on real-time implementation of PSO based PMSM parameter identification,” in
*Proceedings of the IEEE Power and Energy Society General Meeting: Conversion and Delivery of Electrical Energy in the 21st Century*, pp. 1–7, Pittsburgh, Pa, USA, July 2008. View at Publisher · View at Google Scholar · View at Scopus - L. Li, W.-X. Liu, and D. A. Cartes, “Permanent magnet synchronous motor parameter identification using particle swarm optimization,”
*International Journal of Computational Intelligence Research*, vol. 4, no. 2, pp. 211–218, 2008. View at Google Scholar - R. Kumar, R. A. Gupta, and A. K. Bansal, “Identification and control of PMSM using artificial neural network,” in
*Proceedings of the IEEE International Symposium on Industrial Electronics (ISIE '07)*, pp. 30–35, Vigo, Spain, June 2007. View at Publisher · View at Google Scholar · View at Scopus - S.-H. Kim, T.-S. Park, J.-N. Yoo, and G.-T. Park, “Speed-sensorless vector control of an induction motor using neural network speed estimation,”
*IEEE Transactions on Industrial Electronics*, vol. 48, no. 3, pp. 609–614, 2001. View at Publisher · View at Google Scholar · View at Scopus - K. Liu, Q. Zhang, Z.-Q. Zhu, J. Zhang, A.-W. Shen, and P. Stewart, “Comparison of two novel MRAS based strategies for identifying parameters in permanent magnet synchronous motors,”
*International Journal of Automation and Computing*, vol. 7, no. 4, pp. 516–524, 2010. View at Publisher · View at Google Scholar · View at Scopus - K.-H. Kim, S.-K. Chung, G.-W. Moon, I.-C. Baik, and M.-J. Youn, “Parameter estimation and control for permanent magnet synchronous motor drive using model reference adaptive technique,” in
*Proceedings of the 21st IEEE IECON International Conference on Industrial Electronics, Control, and Instrumentation*, vol. 1, pp. 387–392, Orlando, Fla, USA, November 1995. View at Scopus - Z.-H. Liu, J. Zhang, X.-H. Li, and Y.-J. Zhang, “Immune co-evolution particle swarm optimization for permanent magnet synchronous motor parameter identification,”
*Acta Automatica Sinica*, vol. 38, no. 10, pp. 1698–1708, 2012 (Chinese). View at Google Scholar - R. Krishnan,
*Electric Motor Drives Modeling, Analysis and Control*, Prentice-Hall, Englewood Cliffs, NJ, USA, 2001. - K. Liu, Q. Zhang, J.-T. Chen, Z.-Q. Zhu, and J. Zhang, “Online multiparameter estimation of nonsalient-pole PM synchronous machines with temperature variation tracking,”
*IEEE Transactions on Industrial Electronics*, vol. 58, no. 5, pp. 1776–1788, 2011. View at Publisher · View at Google Scholar · View at Scopus - R. Storn and K. Price, “Differential evolution—a simple and efficient heuristic for global optimization over continuous spaces,”
*Journal of Global Optimization*, vol. 11, no. 4, pp. 341–359, 1997. View at Google Scholar · View at Zentralblatt MATH · View at Scopus - L. N. de Castro and F. J. Von Zuben, “The clonal selection algorithm with engineering applications,” in
*Proceedings of the Workshop on Artificial Immune Systems and Their Applications*, pp. 36–39, Las Vegas, Nev, USA, 2000. - D. Nemazee, “Receptor editing in lymphocyte development and central tolerance,”
*Nature Reviews Immunology*, vol. 6, no. 10, pp. 728–740, 2006. View at Publisher · View at Google Scholar · View at Scopus - P. Walter,
*An Introduction to Ergodic Theory*, Springer, New York, NY, USA, 1982. - W.-X. Liu, L. Li, I.-Y. Chung, and D. A. Cartes, “Real-time particle swarm optimization based parameter identification applied to permanent magnet synchronous machine,”
*Applied Soft Computing*, vol. 11, no. 2, pp. 2556–2564, 2011. View at Publisher · View at Google Scholar · View at Scopus - K. Liu, Z.-Q. Zhu, J. Zhang, Q. Zhang, and A.-W. Shen, “Multi-parameter estimation of non-salient pole permanent magnet synchronous machines by using evolutionary algorithms,” in
*Proceedings of the 5th IEEE International Conference on Bio-Inspired Computing: Theories and Applications (BIC-TA '10)*, pp. 766–774, Changsha, China, September 2010. View at Publisher · View at Google Scholar · View at Scopus - D.-M. Zhang and J. E. Fletcher, “Double-frequency method using differential evolution for identifying parameters in the dynamic Jiles-Atherton model of Mn-Zn ferrites,”
*IEEE Transactions on Instrumentation and Measurement*, vol. 62, no. 2, pp. 460–466, 2013. View at Publisher · View at Google Scholar - Y.-F. Zhong and L.-P. Zhang, “Remote sensing image sub-pixel mapping based on adaptive differential evolution,”
*IEEE Transactions on Systems, Man, and Cybernetics B: Cybernetics*, vol. 42, no. 5, pp. 1306–1329, 2012. View at Publisher · View at Google Scholar - B. Xin, J. Chen, J. Zhang, H. Fang, and Z.-H. Peng, “Hybridizing differential evolution and particle swarm optimization to design powerful optimizers: a review and taxonomy,”
*IEEE Transactions on Systems, Man, and Cybernetics C: Applications and Reviews*, vol. 42, no. 5, pp. 744–767, 2012. View at Publisher · View at Google Scholar · View at Scopus