Next Article in Journal
Are You a Typical Energy Consumer? Socioeconomic Characteristics of Behavioural Segmentation Representatives of 8 European Countries
Previous Article in Journal
Influence of Microstepping Signal Shape on Shaft Movement Precision and Torque Variation of the Stepper Motor
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Comparative Study of an EKF-Based Parameter Estimation and a Nonlinear Optimization-Based Estimation on PMSM System Identification

1
Department of Electrical-Electronics Engineering, TOBB University of Economics and Technology, 06510 Ankara, Turkey
2
Department of Electrical and Electronics Engineering, Bilkent University, 06800 Ankara, Turkey
3
Department of Physics and Astronomy, University of Kentucky, Lexington, KY 40506, USA
*
Author to whom correspondence should be addressed.
Energies 2021, 14(19), 6108; https://doi.org/10.3390/en14196108
Submission received: 20 August 2021 / Revised: 21 September 2021 / Accepted: 23 September 2021 / Published: 25 September 2021
(This article belongs to the Section F: Electrical Engineering)

Abstract

:
In this study, two different parameter estimation algorithms are studied and compared. Iterated EKF and a nonlinear optimization algorithm based on on-line search methods are implemented to estimate parameters of a given permanent magnet synchronous motor whose dynamics are assumed to be known and nonlinear. In addition to parameters, initial conditions of the dynamical system are also considered to be unknown, and that comprises one of the differences of those two algorithms. The implementation of those algorithms for the problem and adaptations of the methods are detailed for some other variations of the problem that are reported in the literature. As for the computational aspect of the study, a convexity study is conducted to obtain the spherical neighborhood of the unknown terms around their correct values in the space. To obtain such a range is important to determine convexity properties of the optimization problem given in the estimation problem. In this study, an EKF-based parameter estimation algorithm and an optimization-based method are designed for a given nonlinear dynamical system. The design steps are detailed, and the efficacies and shortcomings of both algorithms are discussed regarding the numerical simulations.

1. Introduction

The question of system identification when it comes to nonlinear dynamical systems becomes more challenging due to the immense implications that nonlinearities cause. Although it is a standard practice to determine whether a given LTI system is observable, this process is not standard and there is no one unique algorithm for a given nonlinear system [1]. There are some linear algebra-based techniques that are available in the literature to conduct that process; however, those methods have certain limitations depending on the nonlinearity. In the literature, there are nonlinear observer types that are quite popular and have the ability to deal with the modelling uncertainties, some of which can be listed as SMO (sliding mode observer) [2], HGO (high gain observer) [3], EKF (extended Kalman filter), and variations thereof [4,5]. For mild nonlinearities, EKF seems to be the prominent choice due to its straightforward design and working principle. EKF is often used to estimate the states that are not measurable, and there is an available system model based on which the estimator is designed.
Although EKF may result in sufficient accuracy in many real-world applications, there are some cases where the assumptions of EKF may not hold. It is important to address under which conditions EKF might fail. There are two main starting points that cause the Kalman filter to work efficiently: the normal distributed process and sensor noise terms and the invariance of a random variable with normal distribution under liner operations as in linear time invariant systems. The assumption that process noise with a normal distribution may not hold in practice but as the central limit theorem suggests that it can be reached for certain circumstances as time progresses [6]. Another factor, the invariance property, allows the Kalman filter to update the state estimation error pdf at each iteration rather than storing the complete pdf, as in the case of a particle filter. Especially for linear systems or systems that can be represented as linear for a stated operating point, it is known that Kalman filter operates satisfactorily. For nonlinear systems, however, since a stochastic signal with normal distribution operated by a nonlinear term results in another stochastic signal with a distribution different than the input signal, the notion that only mean and variance terms can be stored and updated fails. There are some methods that focus on the higher-order moments of the stochastic signal; however, these cases do not cover a wide range of applications. EKF tries to linearize the nonlinear system model at each time step using its own state estimates. For highly nonlinear and discontinuity possessing systems this technique may diverge. However, especially when sampled at a sufficiently high frequencies and for smooth nonlinearities, EKF generally converges. A variation of EKF focuses on the mean and variance computation of the output signal obtained by a stochastic input signal with normal distribution passing through a nonlinear operation [7]. UKF employs some heuristic techniques to compute central moments of the output signal rather than linearizing the nonlinear system. This technique is especially popular in SLAM applications. Another parameter estimation method that is situated in the same class as EKF is a particle filter, which, like EKF, uses Bayesian estimation but focuses on the problem with more general settings. PF tries to reconstruct the stochastic pdfs at each time step. For the cases where it is evident that the stochastic signals that are present in the problem are non-Gaussian and/or multi-modal, this technique outperforms its counterparts at the expense of increased computational load. There are techniques that employ PF as a main parameter estimator tool for certain system identification problems, but the computational aspect is the only drawback [8].
Another significant usage of the observers is for parameter estimation. In cases where there are enough measured signals and some parameters are required to be estimated for monitoring or control purposes, EKF also can be used by extending the state vectors by the parameters to be estimated. For a small set of unknown parameters, that technique works sufficiently accurately. However, for the cases where the number of parameters is much greater than the number of states, there can be some numerical issues raise during the estimation process. To circumvent that problem, it is a common practice to design two separate EKFs, one for the state estimation and other for the parameter estimation, and the information exchange between the two estimators is regulated by another regulation mechanism [9]. In doing so, the numerical problems are mitigated to an extent. The same type of method is also used for the parameter estimation of systems where the number of parameters is greater than the state dimension and there are enough data points to work with. In industrial applications, those requirements often arise for system monitoring and fault-detection problems [10].
As for the plant that was tested as the test problem, PMSM is considered to be the main counterpart of induction motors that are widely utilized in a wide range of industrial applications. The generator version is prominent not only for consumption, but also due to the increased wind energy harvesting systems. Owing to its power-to-volume ratio, it is used in applications where the weight of the total system is limited, such as in EV applications and surveillance tools [11].
In this study, a line search-based nonlinear optimization technique is implemented, and one of the most important developments in recent years in the control and estimation literature is the implementation of many optimization techniques in controller and estimator design processes. Starting with the LMI techniques that have been used in robust linear controller design, some other convex optimization techniques have become prominent in the field of control [12]. Due to the increased computational power, many Lyapunov function construction problems for stability analysis in nonlinear systems can be reduced to linear programming using some heuristic methods [13,14]. In this study, a line search-based nonlinear optimization method is discussed. Furthermore, whether the problem is convex is also discussed. This question is important due to the fact that the presence of convexity for such a problem may result in a possible on-line nonlinear observer construction.
Another significant subject where optimization algorithms are widely used is model predictive control, which basically solves the optimal trajectory and optimal input signal problem for a limited horizon. For linear cases, since there is a structure to be exploited that results in less computational load, MPC is especially preferred. However, depending on the availability of computation power and the importance of the application, MPC is also deployed in many nonlinear systems [15,16]. Using MPC-based methods, it is also possible to address some specific controllability and observability problems for LTI or nonlinear systems. For example, it is possible to compute a linear static controller so that the given hard input signal amplitude constraints are satisfied, and the stability of the closed loop is guaranteed. Although recent compared to the linear quadratic controller-type control design techniques, the literature on this subject is quite rich.
In this study, another method that is used to compare against the EKF-based method and the line-search nonlinear optimization method is genetic algorithms. GAs are utilized in parameter estimation and many optimization problems, especially for the problems where the decision variable number is too high and/or the optimization problem cannot be written in closed form and only a cost function can be generated for a given decision variable. GAs are used to estimate the parameters of PMSM and the results of these three algorithms are analyzed [17]. The importance of the research can be stated as the comparison of three separate classes of parameter estimation methods: the EKF, a sequential MMSE-based method; a convex optimization-based identification algorithm; and a heuristic parameter estimation method GA. In electromechanical systems drive and in power electronics literature, comparisons of these type of separate classes of parameter estimation algorithms are not prevalent. Estimating the parameters by using the algorithms detailed in the paper can make it possible to obtain an adaptive control scheme that has the potential to mitigate the performance degradation due to parameter variation, and by monitoring the parameters can contribute to designing a fault-detection strategy that can be desired in a critical operation.
An EKF-based iterative parameter estimation algorithm and line search-based nonlinear optimization algorithm are given and the efficacies of the estimation methods are examined through a numerical simulation. The plant dynamics are given in Section 2. The parameter estimation techniques, EKF-based search algorithm, and line-search algorithm are detailed in Section 3. Validation of the performance simulation problem and the corresponding results are given in Section 4. Finally, in Section 5 the results are discussed.

2. Nonlinear Dynamical Model of PMSM

In this study, to test the parameter accuracy of the estimation algorithm that is to be presented in the next section, a PMSM model was given whose model possesses non-severe nonlinearities that are suitable for designing an EKF. There are four states, two of which are available for measuring, and five related system parameters to be estimated [18]. The lower and upper bounds of the parameters are considered to be known and the process and measurement noises have normal distributions. The plant model is given as
d d t x 1 = ( P 1 P 2 ) x 1 + ( P 3 P 2 ) x 3 sin ( x 4 ) + ( 1 P 2 ) u 1
d d t x 2 = ( P 1 P 2 ) x 2 + ( P 3 P 2 ) x 3 cos ( x 4 ) + ( 1 P 2 ) u 2
d d t x 3 = ( 3 P 3 2 P 4 ) x 1 sin ( x 4 ) + ( 3 P 3 2 P 4 ) x 2 cos ( x 4 ) + ( P 5 P 4 ) x 3
d d t x 4 = x 3
The relevant parameters to be estimated and their respective definitions and units are given in Table 1.
The system states are given in Table 2 with their respective units.
At this stage, to prevent the numerical problems that can arise due to division operation, a given change of parameters is introduced in Equations (5)–(9).
p 1 = P 1 P 2
p 2 = P 3 P 2
p 3 = 1 P 2
p 4 = ( 3 P 3 2 P 4 )
p 5 = P 5 P 4
As a result of this change of variables, the nonlinear system model based on which the estimation algorithms are designed is given in Equations (10)–(13).
d d t x 1 = p 1 x 1 + p 2 x 3 sin ( x 4 ) + p 3 u 1 + w 1
d d t x 2 = p 1 x 2 p 2 x 3 cos ( x 4 ) + p 3 u 2 + w 2
d d t x 3 = p 4 x 1 sin ( x 4 ) p 4 x 2 cos ( x 4 ) + p 5 x 3 + w 3
d d t x 4 = x 3 + w 4
With the introduced change of variables, the estimation algorithm was designed based on this model. However, the first two states were assumed to be measured as given in,
y 1 = x 1 + v 1
y 2 = x 2 + v 2
where the process noise and sensor noise are given by the w and v terms, respectively. Their statistics are given in the simulation section.

3. Parameter Estimation Algorithms

3.1. EKF-Based Parameter Estimation Algorithm

In this section, an EKF-based parameter estimation algorithm is presented for system identification purposes. As stated in the previous section, there are five parameters and the bounds of them are known. Two of the four states are measured, and the rest of the state signals are to be estimated, which results in seven variable estimations, five of which can be considered constant signals. Instead of extending the state vector by stacking the parameters and designing an observer for a nine-dimensional system with two measured states, which would result in numerical difficulties, five separate EKFs were designed. In each EKF, whose design steps are to be presented, four states and one parameter are considered while fixing the rest of the parameters. This type of iterative parameter estimation has a considerable computational complexity; however, compared to the one with larger dimensions and numerical stability issues, there may be some cases where the parameter estimation algorithm or a version thereof is desired. The overall scheme of the method is presented in the block diagram given in Figure 1.

3.1.1. General EKF Design for Parameter Estimation

For the parameter estimation, the state vector is expanded by the parameters and a new dynamic artificial system is defined. The system is represented as
x k = f k ( x k 1 , u k 1 , w k 1 )
y k = g k ( x k , u k , v k )
For the given system, four Jacobian matrices are defined as
A k = f k ( x k 1 , u k 1 , w k 1 ) x k 1 , B w k = f k ( x k 1 , u k 1 , w k 1 ) w k 1
C k = g k ( x k , u k , v k ) x k , D v k = g k ( x k , u k , v k ) v k
The EKF steps are given below:
x ^ k | k 1 = f k ( x ^ k 1 | k 1 , u k 1 )
y ^ k | k 1 = g k ( x ^ k 1 | k 1 , u k 1 )
A k = [ f k ( x k 1 , u k 1 , w k 1 ) x k 1 ] | x k 1 = x ^ k 1 | k 1 u k 1 = u k 1 w k 1 = 0
B w k = [ f k ( x k 1 , u k 1 , w k 1 ) w k 1 ] | x k 1 = x ^ k 1 | k 1 u k 1 = u k 1 w k 1 = 0
Σ x ˜ x ˜ k | k 1 = A k Σ x ˜ x ˜ k 1 | k 1 A k T + B w k Q k B w k T
C k = [ g k ( x k , u k , v k ) x k ] | x k = x ^ k | k 1 u k = u k v k = 0
D v k = [ g k ( x k , u k , v k ) v k ] | x k = x ^ k | k 1 u k = u k v k = 0
K k = Σ x ˜ x ˜ k | k 1 C k T [ C k Σ x ˜ x ˜ k | k 1 C k T + D v k R k D v k T ]
x ^ k | k = x ^ k | k 1 + K k [ y k y ^ k | k 1 ]
y ^ k | k = g k ( x ^ k | k , u k )
Σ x ˜ x ˜ k | k = [ I K k C k ] Σ x ˜ x ˜ k | k 1
The related parameters are given in the Table 3 below.

3.1.2. EKF Design for p 1

The system on which the EKF is based is given as
d d t x 1 = x 5 x 1 + p 2 x 3 sin ( x 4 ) + p 3 u 1 + w 1
d d t x 2 = x 5 x 2 p 2 x 3 cos ( x 4 ) + p 3 u 2 + w 2
d d t x 3 = p 4 x 1 sin ( x 4 ) p 4 x 2 cos ( x 4 ) + p 5 x 3 + w 3
d d t x 4 = x 3 + w 4
d d t x 5 = w 5
This model is obtained by renaming p 1 as x 5 and additionally defining the x 5 dynamics. The term w 5 is introduced to make it possible for the observer to change the estimation value. The four prominent Jacobian matrices are given as
A k = [ x 5 0 p 2 sin ( x 4 ) p 2 x 3 cos ( x 4 ) x 1 0 x 5 p 2 cos ( x 4 ) p 2 x 3 sin ( x 4 ) x 2 p 4 sin ( x 4 ) p 4 cos ( x 4 ) p 5 p 4 x 1 cos ( x 4 ) + p 4 x 2 sin ( x 4 ) 0 0 0 1 0 0 0 0 0 0 0 ] T s + I
B w k = I T s , C k = [ I 2 0 2 x 3 ] , D v k = I 2
The p 1 term is to be estimated in addition to the four state signals while four parameters are fixed and assumed to be known for this subsystem.

3.1.3. EKF Design for p 2

The system on which the EKF is based is given as
d d t x 1 = p 1 x 1 + x 5 x 3 sin ( x 4 ) + p 3 u 1 + w 1
d d t x 2 = p 1 x 2 x 5 x 3 cos ( x 4 ) + p 3 u 2 + w 2
d d t x 3 = p 4 x 1 sin ( x 4 ) p 4 x 2 cos ( x 4 ) + p 5 x 3 + w 3
d d t x 4 = x 3 + w 4
d d t x 5 = w 5
This model is obtained by renaming p 2 as x 5 and additionally defining the x 5 dynamics. The term w 5 is introduced to make it possible for the observer to change the estimation value. The Jacobian matrix related to the state vector is given as
A k = [ p 1 0 x 5 sin ( x 4 ) x 3 x 5 cos ( x 4 ) x 3 sin ( x 4 ) 0 p 1 x 5 cos ( x 4 ) x 3 x 5 sin ( x 4 ) x 3 cos ( x 4 ) p 4 sin ( x 4 ) p 4 cos ( x 4 ) p 5 p 4 x 1 cos ( x 4 ) + p 4 x 2 sin ( x 4 ) 0 0 0 1 0 0 0 0 0 0 0 ] T s + I
The p 2 term is to be estimated in addition to the four state signals while four parameters are fixed and assumed to be known for this subsystem.

3.1.4. EKF Design for p 3

The system on which the EKF is based is given as
d d t x 1 = p 1 x 1 + p 2 x 3 sin ( x 4 ) + x 5 u 1 + w 1
d d t x 2 = p 1 x 2 + p 2 x 3 cos ( x 4 ) + x 5 u 2 + w 2
d d t x 3 = p 4 x 1 sin ( x 4 ) p 4 x 2 cos ( x 4 ) + p 5 x 3 + w 3
d d t x 4 = x 3 + w 4
d d t x 5 = w 5
This model is obtained by renaming p 3 as x 5 and additionally defining the x 5 dynamics. The term w 5 is introduced to make it possible for the observer to change the estimation value. The Jacobian matrix related to the state vector is given as
A k = [ p 1 0 p 2 sin ( x 4 ) p 2 x 3 cos ( x 4 ) u 1 0 p 1 p 2 cos ( x 4 ) p 2 x 3 sin ( x 4 ) u 2 p 4 sin ( x 4 ) p 4 cos ( x 4 ) p 5 p 4 x 1 cos ( x 4 ) + p 4 x 2 sin ( x 4 ) 0 0 0 1 0 0 0 0 0 0 0 ] T s + I

3.1.5. EKF Design for p 4

The system on which the EKF is based is given as
d d t x 1 = p 1 x 1 + p 2 x 3 sin ( x 4 ) + p 3 u 1 + w 1
d d t x 2 = p 1 x 2 p 2 x 3 cos ( x 4 ) + p 3 u 2 + w 2
d d t x 3 = x 5 x 1 sin ( x 4 ) x 5 x 2 cos ( x 4 ) + p 5 x 3 + w 3
d d t x 4 = x 3 + w 4
d d t x 5 = w 5
This model is obtained by renaming p 4 as x 5 and additionally defining the x 5 dynamics. The term w 5 is introduced to make it possible for the observer to change the estimation value. The Jacobian matrix related to the state vector is given as
A k = [ p 1 0 p 2 sin ( x 4 ) p 2 x 3 cos ( x 4 ) 0 0 p 1 p 2 cos ( x 4 ) p 2 x 3 sin ( x 4 ) 0 x 5 sin ( x 4 ) x 5 cos ( x 4 ) p 5 x 5 x 1 cos ( x 4 ) + x 5 x 2 sin ( x 4 ) x 1 sin ( x 4 ) x 2 cos ( x 4 ) 0 0 1 0 0 0 0 0 0 0 ] T s + I
The p 4 term is to be estimated in addition to the four state signals while four parameters are fixed and assumed to be known for this subsystem.

3.1.6. EKF Design for p 5

The system on which the EKF is based is given as
d d t x 1 = p 1 x 1 + p 2 x 3 sin ( x 4 ) + p 3 u 1 + w 1
d d t x 2 = p 1 x 2 p 2 x 3 cos ( x 4 ) + p 3 u 2 + w 2
d d t x 3 = p 4 x 1 sin ( x 4 ) p 4 x 2 cos ( x 4 ) + x 5 x 3 + w 3
d d t x 4 = x 3 + w 4
d d t x 5 = w 5
This model is obtained by renaming p 5 as x 5 and additionally defining the x 5 dynamics. The term w 5 is introduced to make it possible for the observer to change the estimation value. The Jacobian matrix related to the state vector is given as
A k = [ p 1 0 p 2 sin ( x 4 ) p 2 x 3 cos ( x 4 ) 0 0 p 1 p 2 cos ( x 4 ) p 2 x 3 sin ( x 4 ) 0 p 4 sin ( x 4 ) p 4 cos ( x 4 ) x 5 p 4 x 1 cos ( x 4 ) + p 4 x 2 sin ( x 4 ) x 3 0 0 1 0 0 0 0 0 0 0 ] T s + I
The p 5 term is to be estimated in addition to the four state signals while four parameters are fixed and assumed to be known for this subsystem.

3.2. Line Search-Based Nonlinear Optimization Method

For parameter estimation, a line search-based nonlinear optimization is used. First, the problem is stated such that input signal history and output signal history are available and the terms that are desired to be computed are initial conditions of the state variables and parameters of the nonlinear PMSM dynamical system. The optimization algorithm focuses not only the parameter computation but also on the initial conditions of the state variables. This strategy may result in a higher dimensional parameter estimation problem, but as is the case in constrained optimization, manipulating the problem in such a way that the dimension is increased may prove useful [19]. Since the relation between input and output signals is affected not only by the internal parameters but also by the initial values of the state variables, and for the cases where at least some bound is available to the algorithm, it is reasonable to expand the decision variable dimension. In the original problem it is stated that the state space dimension is four, and the number of parameters to be estimated is five. Therefore, the problem is expressed as the optimization of those nine numerical values. The model of the nonlinear dynamics is available and it is assumed that the output signal is available, and for a given value of decision variables, the cost of the optimization problem can be constructed as a mean square error of the real and the estimated one. Therefore, the optimization problem can be stated as
min . p ^ 1 , , p ^ 5 x ^ 1 ( 0 ) , x ^ 2 ( 0 ) , x ^ 3 ( 0 ) , x ^ 4 ( 0 ) { k = 0 N [ ( x 1 ( k ) x ^ 1 ( k ) ) 2 + ( x 2 ( k ) x ^ 2 ( k ) ) 2 ] } s . t . k = 0 , , N { x ^ 1 ( k + 1 ) x ^ 1 ( k ) = T s [ p ^ 1 x ^ 1 ( k ) + p ^ 2 x ^ 3 ( k ) sin ( x ^ 4 ( k ) ) + p ^ 3 u 1 ( k ) ] x ^ 2 ( k + 1 ) x ^ 2 ( k ) = T s [ p ^ 1 x ^ 2 ( k ) p ^ 2 x ^ 3 ( k ) cos ( x ^ 4 ( k ) ) + p ^ 3 u 2 ( k ) ] x ^ 3 ( k + 1 ) x ^ 3 ( k ) = T s [ p ^ 4 x ^ 1 ( k ) sin ( x ^ 4 ( k ) ) p ^ 4 x ^ 2 ( k ) cos ( x ^ 4 ( k ) ) + p ^ 5 x ^ 3 ( k ) ] x ^ 4 ( k + 1 ) x ^ 4 ( k ) = T s [ x ^ 3 ( k ) ] }
However, for computational considerations the problem can be dissected into smaller sequential optimization parameters and the problem can be stated as follows: First, random values are assigned at the each of the decision variables subject to their box constraints. In the optimization stage, only p ^ 1 is optimized while keeping other decision variables fixed. This problem of optimizing over a single variable can be stated as a line search, as the parameter takes values between the stated range. There are golden-section and Fibonacci-search algorithms to reduce the computational burden of the problem. When the optimization ends, the next decision variable, i.e., p ^ 2 , is optimized while keeping other decision variables fixed using the updated value of p ^ 1 determined in the previous step. The process continues until convergence. It should be noted that for severe multi-model functions this method faces some local-minima issues [20]. However, considering this algorithm only computes the state trajectories and the cost function value, at multiple times in each step instead of performing a matrix inversion, it is computationally more favorable to the iterated EKF parameter estimation technique stated in the previous section.

3.3. Genetic Algorithm Parameter Estimation

Genetic algorithms are a class of global optimization tools influenced by evolution [21]. It searches the parameter space to find a global minimum for a given evaluation function with use of mutation and crossover followed by the selection of a population of parameters. Even though the iterative nature of GAs guarantees no worse performance in the subsequent generations, depending on the non-linearity of the evaluation function with respect to the parameters, GAs can get stuck on local minimums. GAs can also be sensitive to the values of mutation and crossover rate as well as the choice of a selection technique [22]. Despite this, GAs are suitable candidates for non-convex optimization-related problems and for problems where the typical assumptions of the optimization problem are not valid, nor where the conventional methods are infeasible to implement.
A good choice for the evaluation function or the cost function of the GA can again be as follows:
J = k = 0 N [ ( x 1 ( k ) x ^ 1 ( k ) ) 2 + ( x 2 ( k ) x ^ 2 ( k ) ) 2 ]
This is due to our assumption of process and sensor noise being zero-mean Gaussian. One benefit of this type of parameter estimation is the ease of extendibility to find a more statistically reliable answer with the inclusion of simulation results with different sets of initial conditions. Then, the cost function can be altered as
i = 0 M k = 0 N [ ( x i , 1 ( k ) x ^ i , 1 ( k ) ) 2 + ( x i , 2 ( k ) x ^ i , 2 ( k ) ) 2 ]
where M denotes the number of simulations with different sets of initial conditions. Despite this, GAs are suitable candidates for non-convex optimization-related problems and for problems where the typical assumptions of the optimization problem are not valid or the conventional methods are infeasible to implement.

4. Numerical Simulations

In this section, the numerical simulations that were conducted are discussed. Table 4 below states the important values that were used in the simulation.

4.1. Simulation for EKF-Based Parameter Estimation Algorithm

For the given simulation-related terms, the EKF-based parameter estimation algorithm was simulated, and the efficacy of the algorithm is presented in Figure 2. In the simulation, to represent the fact that the initial point of the estimation is independent of the convergence properties of the estimation algorithm, the different initial point of estimation was employed and simulated for the same nonlinear model of the PMSM. It is noted that the parameter estimates converged to the real values under the disturbing effects of the process and measurement noise presence.

4.2. Simulation of Line Search-Based Nonlinear Optimization Algorithm

For the given simulation-related terms, a line search-based algorithm was simulated and the efficacy of the algorithm is presented in Figure 3. For the demonstration of the consistency of the algorithm, four different initial estimates were given and the convergence of the algorithm was observed.

4.3. Simulation for GA Optimization

To compare the performance of the two previously presented estimators, another optimization GA was used to estimate both the initial conditions of the state variables and the parameters. The performance is illustrated in Figure 4. It can be seen that there was a dependence on the initial estimate values of the parameter estimates. Since the GA focused on minimizing the objective function using the parameters but not in a sequential manner, as was the case in the optimization algorithm previously stated, this type of local minimum convergence can be seen. It can be also noted that there were some procedures to prevent the GA from converging to a local minimum to an extent, but since this algorithm is only included for comparative purposes, these details are not presented here.

5. Conclusions

In this study, PMSM, whose nonlinear dynamical model is given, was studied. The parameters of the system were estimated using the stated iterated EKF-based parameter estimation algorithm and the line search-based method. For both of the cases, it was seen that the convergence of the estimates was independent of the initial estimate points given to the estimation algorithms, and for none of the starting points was a divergence observed, which indicates that the algorithms performed reliably. Additionally, for comparison purposes, GAs were used to find the parameters and the initial values of the state variables. The numerical simulations were conducted in MATLAB. For the computational aspects of the study, the matrix inversion operation that is present in the EKF-based method cause an additional computational burden. Although, as the simulation results indicate, the performances were similar, the line search-based nonlinear optimization method outperformed in terms of time complexity. It is important to point out as final conclusions that these types of parameter estimation analyses are significant in designing a parameter estimator that is desired to be run on-line due to the fact that these analysis techniques or variations thereof can conclude which parameters can be estimated or which parameters are easier to estimate. For parallel parameter estimation operations or fault-detection mechanisms, these questions are fundamental.

Author Contributions

Conceptualization, A.S. and B.S.; formal analysis, B.S., U.C.; methodology, A.S., U.C.; software, B.S.; supervision, B.S. and C.K.; validation, C.K.; writing–original draft, A.S., U.C.; writing—review and editing, B.S. and C.K. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zhirabok, A.N. Observability and controllability analysis of nonlinear systems by linear methods. In Proceedings of the 2008 10th International Conference on Control, Automation, Robotics and Vision, Hanoi, Vietnam, 25 September 2008; pp. 1690–1695. [Google Scholar] [CrossRef]
  2. Floquet, T.; Twiddle, J.A.; Spurgeon, S.K. Parameter estimation via second order sliding modes with application to thermal modelling in a high speed rotating machine. In Proceedings of the 2006 IEEE International Conference on Industrial Technology, Mumbai, India, 15–17 December 2006; pp. 2635–2639. [Google Scholar] [CrossRef]
  3. Khalil, H.K. Cascade high-gain observer for high-dimensional systems. In Proceedings of the 2016 IEEE 55th Conference on Decision and Control (CDC), Las Vegas, NV, USA, 12–14 December 2016; pp. 7141–7146. [Google Scholar] [CrossRef]
  4. Lohmiller, W.; Slotine, J.-E. Contraction analysis: A practical approach to nonlinear control applications. In Proceedings of the 1998 IEEE International Conference on Control Applications (Cat. No.98CH36104), Trieste, Italy, 4 September 1998; Volume 1, pp. 1–5. [Google Scholar] [CrossRef]
  5. Yuan, Y.; Fu, G.; Zhang, W. Extended and unscented Kalman filters for parameter estimation of a hydrodynamic model of vessel. In Proceedings of the 2016 35th Chinese Control Conference (CCC), Chengdu, China, 27–29 July 2016; pp. 2051–2056. [Google Scholar] [CrossRef]
  6. Simon, D. Optimal State Estimation: Kalman, Hinf, and Nonlinear Approaches; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2006. [Google Scholar]
  7. Crassidis, L.; Junkins, J.L. Optimal Estimation of Dynamic Systems; Chapman & Hall/CRC: Boca Raton, FL, USA, 2004; Volume 2. [Google Scholar]
  8. Yin, S.; Zhu, X. Intelligent Particle Filter and Its Application to Fault Detection of Nonlinear System. IEEE Trans. Ind. Electron. 2015, 62, 3852–3861. [Google Scholar] [CrossRef]
  9. Meng, L.; Li, L.; Veres, S.M. Aerodynamic parameter estimation of an Unmanned Aerial Vehicle based on extended kalman filter and its higher order approach. In Proceedings of the 2010 2nd International Conference on Advanced Computer Control, Shenyang, China, 27–29 March 2010; pp. 526–531. [Google Scholar] [CrossRef]
  10. Chai, W.; Qiao, J.; Wang, H. Robust fault detection using set membership estimation and T-S fuzzy neural network. In Proceedings of the 2013 American Control Conference, Washington, DC, USA, 17–19 June 2013; pp. 893–898. [Google Scholar] [CrossRef]
  11. Rzepka, B.; Bischof, S.; Blank, T. Implementing an Extended Kalman Filter for SoC Estimation of a Li-Ion Battery with Hysteresis: A Step-by-Step Guide. Energies 2021, 14, 3733. [Google Scholar] [CrossRef]
  12. Guang-Ren, D.; Yu, H. LMIs in Control Systems: Analysis, Design and Applications; CRC: Boca Raton, FL, USA, 2013. [Google Scholar]
  13. Polanski, A. Lyapunov function construction by linear programming. IEEE Trans. Autom. Control 1997, 42, 1013–1016. [Google Scholar] [CrossRef]
  14. Liu, X. Stability Analysis of Switched Positive Systems: A Switched Linear Copositive Lyapunov Function Method. IEEE Trans. Circuits Syst. II Express Briefs 2009, 56, 414–418. [Google Scholar] [CrossRef]
  15. Pejcic, I.; Korda, M.; Jones, C.N. Control of nonlinear systems with explicit-MPC-like controllers. In Proceedings of the 2017 IEEE 56th Annual Conference on Decision and Control (CDC), Melbourne, VIC, Australia, 12–15 December 2017; pp. 4970–4975. [Google Scholar] [CrossRef] [Green Version]
  16. Aliskan, I. Adaptive Model Predictive Control for Wiener Nonlinear Systems. Iran. J. Sci. Technol. 2019, 43, 361–377. [Google Scholar] [CrossRef]
  17. Gapiński, D.; Koruba, Z. Control of Optoelectronic Scanning and Tracking Seeker by Means the LQR Modified Method with the Input Signal Estimated Using of the Extended Kalman Filter. Energies 2021, 14, 3109. [Google Scholar] [CrossRef]
  18. Jerčić, T.; Ileš, Š.; Žarko, D.; Matuško, J. Constrained field-oriented control of permanent magnet synchronous machine with field-weakening utilizing a reference governor. Automatika 2017, 58, 439–449. [Google Scholar] [CrossRef] [Green Version]
  19. Bhotto, M.Z.A.; Ahmad, M.O.; Swamy, M.N.S. Robust Shrinkage Affine-Projection Sign Adaptive-Filtering Algorithms for Impulsive Noise Environments. IEEE Trans. Signal Process. 2014, 62, 3349–3359. [Google Scholar] [CrossRef]
  20. Lv, J.; Deng, S.; Wan, Z. An Efficient Single-Parameter Scaling Memoryless Broyden-Fletcher-Goldfarb-Shanno Algorithm for Solving Large Scale Unconstrained Optimization Problems. IEEE Access 2020, 8, 85664–85674. [Google Scholar] [CrossRef]
  21. Pan, H.; Chen, C.; Gu, M. A State of Health Estimation Method for Lithium-Ion Batteries Based on Improved Particle Filter Considering Capacity Regeneration. Energies 2021, 14, 5000. [Google Scholar] [CrossRef]
  22. Yang, X. Nature-Inspired Optimization Algorithms; Elsevier Inc.: Amsterdam, The Netherlands, 2014. [Google Scholar]
Figure 1. Block diagram and illustration of the EKF-based parameter estimation algorithm.
Figure 1. Block diagram and illustration of the EKF-based parameter estimation algorithm.
Energies 14 06108 g001
Figure 2. Convergence of the estimated parameters using EKF-based parameter estimation. (a) p ^ 1 convergence, (b) p ^ 2 convergence, (c) p ^ 3 convergence, (d) p ^ 4 convergence, (e) p ^ 5 convergence.
Figure 2. Convergence of the estimated parameters using EKF-based parameter estimation. (a) p ^ 1 convergence, (b) p ^ 2 convergence, (c) p ^ 3 convergence, (d) p ^ 4 convergence, (e) p ^ 5 convergence.
Energies 14 06108 g002
Figure 3. Convergence of the estimated parameters using line search-based nonlinear optimization algorithm. (a) p ^ 1 convergence, (b) p ^ 2 convergence, (c) p ^ 3 convergence, (d) p ^ 4 convergence, (e) p ^ 5 convergence.
Figure 3. Convergence of the estimated parameters using line search-based nonlinear optimization algorithm. (a) p ^ 1 convergence, (b) p ^ 2 convergence, (c) p ^ 3 convergence, (d) p ^ 4 convergence, (e) p ^ 5 convergence.
Energies 14 06108 g003
Figure 4. Convergence of the estimated parameters using GA optimization. (a) p ^ 1 convergence, (b) p ^ 2 convergence, (c) p ^ 3 convergence, (d) p ^ 4 convergence, (e) p ^ 5 convergence.
Figure 4. Convergence of the estimated parameters using GA optimization. (a) p ^ 1 convergence, (b) p ^ 2 convergence, (c) p ^ 3 convergence, (d) p ^ 4 convergence, (e) p ^ 5 convergence.
Energies 14 06108 g004
Table 1. The plant parameters and definitions.
Table 1. The plant parameters and definitions.
ParameterUnitDefinition
P 1 Ω Winding resistance
P 2 H Winding inductance
P 3 -Magnetic flux constant of the motor
P 4 kg   m 2 Moment of inertia of the rotor and the load
P 5 -Viscous friction constant of the rotor
Table 2. The plant states and definitions.
Table 2. The plant states and definitions.
ParameterUnitDefinition
x 1 A Direct-axis stator winding current
x 2 A Quadrature-axis stator winding current
x 3 rad / s Rotor mechanical rotation speed
x 4 rad Rotor mechanical position
Table 3. EKF-related terms and definitions thereof.
Table 3. EKF-related terms and definitions thereof.
ParameterDefinitionParameterDefinition
x ^ k | k 1 Predicted state Σ x ˜ x ˜ k | k 1 A priori state error covariance matrix
y ^ k | k 1 Predicted output Σ x ˜ x ˜ k | k A posteriori state error covariance matrix
Q k Process noise covariance matrix x ^ k | k Estimated state
R k Measurement noise covariance matrix y ^ k | k Estimated output
A k , B w k , C k , D v k Jacobian matrices
Linearized around the current operation point
K k Kalman gain
Table 4. Simulation settings.
Table 4. Simulation settings.
TermsValues
Duration5 sec
T s 0.01 sec
x ( 0 ) [ 0.1 , 0.1 , 0.1 , 0.1 ]
p l o w e r [ 5 , 1 , 1 , 5 , 5 ]
p u p p e r [ 0.1 , 20 , 20 , 0.1 , 0.1 ]
σ p r o n o i s e 2 10 4 I 4
σ s e n n o i s e 2 10 4 I 2
u 1 ( t ) 1 sin ( 2 π [ 1 ] t )
u 2 ( t ) 1 sin ( 2 π [ 1 ] t + π 2 )
[ p 1 , p 2 , p 3 , p 4 , p 5 ] [ 1 , 10 , 10 , 1.5 , 1 ]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Sel, A.; Sel, B.; Coskun, U.; Kasnakoglu, C. Comparative Study of an EKF-Based Parameter Estimation and a Nonlinear Optimization-Based Estimation on PMSM System Identification. Energies 2021, 14, 6108. https://doi.org/10.3390/en14196108

AMA Style

Sel A, Sel B, Coskun U, Kasnakoglu C. Comparative Study of an EKF-Based Parameter Estimation and a Nonlinear Optimization-Based Estimation on PMSM System Identification. Energies. 2021; 14(19):6108. https://doi.org/10.3390/en14196108

Chicago/Turabian Style

Sel, Artun, Bilgehan Sel, Umit Coskun, and Cosku Kasnakoglu. 2021. "Comparative Study of an EKF-Based Parameter Estimation and a Nonlinear Optimization-Based Estimation on PMSM System Identification" Energies 14, no. 19: 6108. https://doi.org/10.3390/en14196108

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

Article Metrics

Back to TopTop