1. Introduction
In a PMSM control system, the presence of external or internal unknown disturbances and other factors can lead to a decrease in the robustness of the system if the rotational speed and rotor position of the PMSM are not accurately observed. Therefore, accurately determining the rotational speed and rotor position of the PMSM is essential for enhancing the reliability of PMSM operation. The traditional method of status observation relies on the use of an encoder, which adds to the overall cost of the system. Furthermore, the presence of a faulty encoder can cause damage to the control system. Consequently, there has been a significant increase in research activity surrounding sensorless control of PMSM recently [
1].
With the rapid development of power electronics technology and control theory, a variety of advanced sensorless state detection strategies have been applied to the control of PMSM [
2,
3]. Least squares, Bayesian estimation, and Kalman filtering methods have been continuously refined and developed for sensorless state observers of PMSM [
4,
5,
6]. Extended Kalman filtering (EKF) offers a versatile estimation methodology for estimating the state of a nonlinear system through linearized processing. This approach enables a more accurate estimation of the state of an unconstrained nonlinear model [
7,
8], which is why EKF is widely used in sensorless controllers for PMSM [
9,
10,
11]. Nevertheless, due to the lack of estimation ability for constrained nonlinear systems, the effectiveness of EKF on the sensorless control of PMSM may be limited in practical applications.
The study of model predictive control (MPC) theory has led to the widespread attention given to the Moving Horizon Estimation (MHE) method, which is also based on the moving optimization principle [
12,
13]. MHE uses the finite horizon
N for moving horizontal movement measurements instead of individual instantaneous measurements. Upon reaching the next sampling interval, the previous value of measurement is discarded from the estimation window, and the finite horizon state estimation problem is solved to determine the new state estimation [
14]. Consequently, it is possible to reduce the error in state estimation in the presence of external disturbances and uncertainty in the model, thereby improving the robustness of the observer. In recent years, the MHE algorithm has been proposed and applied to speed estimators of induction motors and PMSM in order to develop sensorless drivers. The estimation accuracy and robustness of the proposed control scheme have been demonstrated [
15,
16,
17].
In practical sensorless control of PMSM, the traditional MHE is constrained by its computational cost, rendering it unsuitable for fast dynamic systems or platforms with limited computing resources. To reduce the computational cost of MHE, Suwantong et al. introduced an auxiliary observer to provide pre-estimation for MHE [
18]. Nevertheless, despite the reduction in computing time, the number of iterations required to solve the stable MHE problem remains undetermined and must be calculated on-line. Hamid Razmjooei et al. proposed a supplementary adaptive observer to estimate the uncertainties of an electrohydraulic system, and this strategy is provided through the Lyapunov approach [
19]. Kong et al. proposed implementing movement blocking on disturbance sequences in MHE in order to reduce the associated computational burden [
20]. Fang et al. employed the Carleman approximation to address nonlinear systems, subsequently introducing the as-CMHE method, which incorporates gradient vectors and Hessian matrices. This method reduces the computational workload by a factor of 10 in nonlinear CSTR examples [
21].
The traditional MHE method still suffers from inaccurate estimation in practice due to the lack of optimization of the non-linear model. The performance of a PMSM and its drive system is significantly influenced by alterations to the circuit and the magnetic chain. The linear model is unable to meet the requirements of a high-precision and high-performance control system. In this paper, the simulation accuracy and computational speed of the permanent magnet synchronous motor (PMSM) model are key indicators for assessing the robustness of sensorless controllers. In response to changes in PMSM parameters, a PMSM speed rotor position observer of MHE is designed for the first time based on the PMSM model and MRAS. The observer is then applied to PMSM sensorless control, taking into account the uncertainty of the model. To address the issue of high computation in traditional MHE, gradient vector and Hessian matrix are employed to optimize the calculation of MHE. Furthermore, the design of the PMSM sensorless observer is finalized. The objective of this study is to investigate the feasibility of the proposed solution and to assess its implementation complexity, computing time, accuracy, and dynamic estimation in comparison to traditional state observers, such as the EKF technology.
The structure of this paper is as follows:
Section 2 describes the PMSM nonlinear model and utilizes MRAS to identify the parameters of the motor in real time.
Section 3 introduces the basic method of MHE and the optimization of the calculation process and then presents the overall structure of the PMSM sensorless controller.
Section 4 compares the proposed MHE sensorless observer with the EKF SMO method through simulation and verifies the robustness of the proposed PMSM control structure.
Section 5 presents a summary and future applications.
2. PMSM Model
- A.
Mathematical model of surface-mounted PMSM
In order to derive the mathematical model of a SPMSM, it is necessary to assume that the following conditions are satisfied:
Considering the actual working conditions of the selected SPMSM, the permeability of the magnet component of the motor ranges between 0.7 and 1.2 while disregarding the effects of eddy current and skin effect.
The three windings of the stator are positioned 120° apart from each other in space, and they are structurally identical. Concurrently, they all generate a sinusoidally distributed magnetic kinetic potential in the air gap.
The slots and ventilation ducts of the stator and rotor do not affect the inductance of the motor’s stator and rotor.
The equation of state of SPMSM can be written in the
dq-axis two-phase rotating coordinate system as shown in Equation (1):
represents the electric angular velocity,
represents the magnetic chain of the rotor’s permanent magnets,
R represents the stator resistance, and
and
represent the inductance of the
d-axis and
q-axis, respectively. The majority of the permanent magnets in SPMSM are distributed on the radial surface, where
Ld =
Lq. The electromagnetic torque of the SPMSM can be simplified to the following Equation (2):
In (2), represents the number of magnetic poles pairs.
The equation of motion for SPMSM is given by Equation (3):
In (3), the following variables are defined: TL is Load torque, Bm is the coefficient of viscous friction, J is the moment of inertia. ωr is the mechanical angular velocity, where ωe = pnωr.
The partial differential model equations of SPMSM, such as those presented in Equation (4), can be derived by combining Equations (1)–(3):
The actual SPMSM model incorporates both state noise and measurement noise, which can be expressed by the nonlinear state equation in (5), The variables
x (t),
u (t), and
y (t) represent the state, input voltage, and output current, respectively.
with
and
Due to the short sampling time, the first-order Euler method can be used for the discretization of the above model. The state Equation (5) transformed into the form shown in (6):
In (6), Ts represents the sampling time, while k represents the current time.
It is important to note that in this nonlinear model, the motor angle is equal to the integral of the mechanical angular velocity with respect to time. This will facilitate the later study of the rotor position error.
Formulas (1)–(7) represent the derivation of the nonlinear mathematical model for SPMSM. In previous research, the two-phase rotating coordinate system, namely the dq axis, is commonly used for analysis. Taking the rotor as a reference, the current flowing through the dq axis is DC, and the angular velocity of the two axes is in alignment with that of the rotor. Consequently, it is widely applicable.
- B.
Parameter Identification of PMSM
The parameters of the PMSM are crucial for the control performance of the system. Nevertheless, factors such as temperature rise, magnetic saturation, and load disturbances can give rise to alterations in parameters such as winding resistance, inductance, and rotor flux. Such alterations can have a profound effect on the control performance. In order to mitigate the impact of parameter changes on the PMSM control system, a number of methods for motor parameter identification have been proposed.
The nonlinear inductance model based on the finite element method is relatively straightforward to calculate. Nevertheless, this model only analyzes the impact of inductance parameters on the current vector trajectory [
22]. In the flux two-dimensional lookup table method,
Ldq and
Lqd are proposed to describe the cross-coupling effect. However, these parameter models fail to account for the back electromotive force and rotor inductance, and only a few models are capable of simulating magnetic saturation and cross-coupling effects [
23,
24]. Based on the high-carrier-frequency injection (CFI) method, the signal is superimposed on the fundamental phase voltage [
25]. Consequently, this can result in distortion of the motor current, torque ripple, and the emergence of other undesirable effects, such as significant harmonic loss. The MRAS method employs a step-by-step identification approach to guarantee the convergence of identification under specific conditions [
26,
27]. The fundamental principle underlying the MRAS method is the determination of an appropriate adaptive rate parameter. This is typically established based on the Lyapunov stability theorem or Popov hyperstability theory. This ensures that the discrepancy between the outputs of the two models gradually converges and ultimately approaches infinitesimal values, thereby guaranteeing the uniqueness of the identification results. Due to its minimal computational requirements and rapid response, MRAS is considered one of the most appropriate parameter estimation methods when compared to other technical model reference adaptive systems. The subsequent section will present the design process for the SPMSM utilizing MRAS.
In MRAS, the current and voltage model of the SPMSM, as presented in Formula (1), serves as the foundation for the mathematical model of the adjustable system. Consequently, the parameters to be identified are adjustable variables:
where
. We can formulate the system equation of the adjustable model as Equation (9):
where
,
,
are the parameter identification value of PMSM, respectively; they are unknown quantities.
The fundamental principle underlying the MRAS algorithm is to design an adaptive regulation law that ensures the stability of the state at the equilibrium point. The Lyapunov stability theorem is one of the most used frequently employed methods in this context. The Lyapunov second principle can guarantee large-scale uniform asymptotic stability in the equilibrium state, provided that the following conditions are met:
- (1)
There exists a positive definite scalar function V(X,t);
- (2)
(X,t) exists and negative definite.
- (3)
When , V(X,t) .
Among the corresponding adjustable models, we can get:
Select the
d-axis and
q-axis current state variables to make the difference, and the results of differencing are
ed and
eq:
The differential of
e is in Equation (10):
It is not difficult to see that is positive definite when , .
Next, we derive in which conditions is negative definite:
The differentiation of
is in Equation (13):
with
Therefore, we can obtain Equation (14):
Therefore,
is bound to be negative if:
According to the Lyapunov second method, is bound to be negative. Consequently, the state e will uniformly converge to the zero vector over a wide range. This implies that the adjustable model will approach the reference model, and the identification parameters will converge to their true values.
After the expansion of the above formula, we obtain Equation (15)
Solve the system of differential equations:
The solution of the above system of differential equations is in (17):
This is the adaptive regulation law which makes necessary to be negative definite. In Equation (17), represent the initial values of the parameters to be identified. Meanwhile, denote the corresponding adjustment gains. The selection of appropriate adjustment gains can facilitate the convergence of the system towards optimal values, while also enhancing the speed and accuracy of this process.
According to the MRAS, the parameter identification block diagram of the SPMSM based on the MRAS can be obtained as illustrated in
Figure 1:
A summary of the specific steps to build the MRAS for the SPMSM can be derived from the block diagram:
Choosing the dq-axis model of SPMSM as the reference model.
Establishing a variable model of the SPMSM, where the parameters to be identified are adjustable variables and the inputs to the variable model are the same as those of the reference model.
Obtaining the difference between the outputs of the reference model and the adjustable model; substitute the adaptive rules obtained from the above derivation and acquire the identification parameters from the regulation law.
Substituting the identified parameters of the R, L, into the new variable model.
3. Moving Horizon Estimation
- A.
General MHE Formulation
MHE is an optimized estimation method. It utilizes a limited amount of information regarding the input, output, and device models in order to identify the system state. The fundamental design of MHE is analogous to that of MPC, and thus it can also straightforwardly handle constraints and boundaries. However, in contrast to the prediction of future outcomes, MHE employs the output sliding window from the past. As a consequence of the significant advances in numerical optimization programs and the increased computing power of embedded control hardware, this field has attracted attention [
28,
29].
As illustrated in
Figure 2, by introducing a fixed horizon of length
N, the estimation problem at time k is divided into two parts: [0, …,
k −
N] and [
k −
N + 1, …,
k]. The general state variable
Xt is expressed in continuous real time. The black line represents the actual value of the state, red points represent the estimation result at time
k, and blue points represent the estimation at time
k + 1. In the process of estimation, the fixed window length
N is maintained throughout. This guarantees that the length of the measurement information sequence required to estimate the state value at each moment remains unaltered. Consequently, the scale of optimization problem resolution in real time remains constant, and the other output information from the past is aggregated to the arrival cost. In the SPMSM model, the output current measurement data are represented by Equation (18):
The superscript and subscript of the sequence symbol Y represent the start and end time of the measurement data sequence, respectively.
- B.
Cost function and optimization of calculation.
Based on the nonlinear state space expression of disturbed SPMSM discretization described in Equation (6), the most recent
N state values are presented in historical order.
It should be noted that when the estimated time of the initial stage is less than
N, MHE will successfully resolve the full information estimation problem. The specific method has been provided by Rawlings et al. [
13]. In this paper, we primarily discuss the case of estimation of times ≥
N. The constraints of SPMSM model, coupled with state and control inequality constraints, are considered. The minimized cost function is in (20) [
14].
represents the arrival cost of the MHE problem;
Pk−N represents the posterior estimation covariance matrix of the
k-
N step state, which equals (21):
The model Jacobian matrix is denoted as
Fk and is defined as Equation (22):
In (22), x(i) represents the estimated state value at time i using MHE. (i) represents the predicted value at time i, which is calculated according to the system model using the instantaneous state estimation value at time i − 1 and the control input. X and U represent the state constraint set and input constraint set, respectively. Qi and Ri are positive definite covariance matrices of wk and vk. The matrix Q represents the confidence level of the SPMSM model, while the matrix R represents the confidence level of the current measurement data.
Consequently, the state estimation problem is transformed into a fixed-horizon optimization problem by the MHE algorithm. This algorithm addresses system constraints, model interference, nonlinearity, and measurement noise. With the optimum solution
, and iterating step by step according to the state equation of SPMSM, and iterating step by step according to the state equation of SPMSM, the state estimation of the current moment is calculated in Equation (23):
The objective function in the optimization problem serves to define the moving horizon estimation method. Although this method is relatively straightforward and intuitive, it is challenging to implement and compute. In order to facilitate the computation of the MHE objective function optimization, the Hessian matrix and gradient vector are introduced to enhance the solving process [
21].
At the
k-
Nth sampling time, the gradient vector of MHE has the following form:
The elements that comprise the gradient vector are as follows:
where
is a vector with zero elements except the
lth element.
Through the differential expression (23), the Hessian matrix
H has the following symmetric form at the time of
l sampling time:
The Hessian matrix elements are given by (28)–(30)
Furthermore, when the state is updated, the state at time
k can be updated by the Carleman approximate Formula (31) [
30].
The state of
k–
N+1 moment is updated by (32)
where
,
is the optimal solution of MHE.
- C.
SPMSM sensorless controller strategy
The MHE-based sensorless observation strategy comprises the following steps:
- (I).
Initialization: setting covariance matrices Q, P, R, the initial state x (0) = [0 0 0]T, and the moving horizon window size N.
- (II).
Let the current time be k, and when k ≤ N, the problem of full information estimation is solved, and the state estimation value of the current time is calculated by Equation (31).
- (III).
When k ≥ N, the gradient vector (24) and the Hessian matrix (27) are employed to solve function (20) in order to obtain the optimal solution, and the current state estimate is calculated using Equation (31).
- (IV).
The error covariance matrix Pk−N and the prior estimated state of the next moment are calculated according to Equations (21) and (32).
- (V).
Adding a new output data yT and reconstructing the output sequence, returning (II).
The sensorless control scheme of the SPMSM is depicted in
Figure 3. The system employs current loop and rotational speed loop control for the current inner loop and speed exchange. The principal components of the system include a control module, MHE observer module, MRAS parameter identification module, Clarke conversion and Park conversion module, inverter, and SVPWM module.
Through the detection of the current by the MHE observer, the rotational speed and electrical angle of the motor are calculated. Concurrently, the acquired stator three-phase current is transformed into the dq coordinate system through Clark and Park transformations. Through the speed adjustment module, the reference value of the Q-axis current is obtained. Subsequently, the stator current fed back by the dq-axis is then compared to the reference dq-axis current, and the dq-axis voltage is obtained by the current regulator.
With the combination of voltage and current, two models and a parameter adaptive law are designed using MRAS. Firstly, two independent structures, the reference model and the adjustable model, are constructed in accordance with the mathematical equation of the motor. The adjustable model is constructed based on the parameters to be identified, while the reference model is derived from the fundamental voltage and current equations. The inputs of the two models are aligned, thereby enabling the real-time determination of motor parameters such as resistance, inductance, and flux.
In most cases, the SPMSM uses a DC source for its power supply. Consequently, it is of paramount importance to utilize the inverter circuit in order to achieve the AC-DC conversion of the drive circuit. This entails using the SVPWM modulation technology to control the inverter’s switching through six-channel PWM signals. This process enables the inversion of DC into sinusoidal AC, which serves a significant purpose. The main circuit module relies on the vector control SVPWM module to supply the necessary signal. This generates the PWM signal, which regulates the inverter’s switching and ultimately outputs the operation of the three-phase AC drive motor. The inverter employs a three-phase IGBT inverter bridge, in which a DC voltage source powers supplies the DC terminal, while an AC terminal generates three-phase AC voltage to drive the SPMSM.
4. Simulation Results
- A.
Set up Description.
The sensorless controller of the PMSM has been implemented in MATLAB 2020b. The sampling time of the simulation is 1 × 10
−4 s. In the observer, a Gaussian noise with a
μ of 0 and a
σ of 0.2 is applied to
id and
iq. The parameters are set as in
Table 1:
This chapter primarily examines the performance of speed and rotor position observation in the SPMSM. To eliminate any ambiguity in the results of the simulation, two separate simulation scenarios were chosen. In each scenario, we allocated different values for the rated reference speeds and reference torques. MHE is primarily evaluated against conventional observers, such as EKF and SMO, in order to assess the effectiveness of MHE. The system’s dynamic features, accuracy, and parameter sensitivity are investigated by simulation. Furthermore, this study also examines the impact of varying estimated horizon
N on the observation effect of MHE, the enhancement of estimation accuracy following the inclusion of MRAS, and the optimization effect of the Hessian matrix and gradient vector on the computational workload. The evaluation of speed and angle estimate performance employs two criteria: the root mean square error (RMSE) and absolute error (AE), which are described as follows:
- B.
Simulation results under Condition I
Under Condition I, the initial settings are as follows: The initial reference speed ωref is set as 500 rpm, while the reference load torque is set as 20 Nm. At a time of 0.3 s, the reference speed reaches 700 rpm. At a time of 0.6 s, the reference load torque increases to 30 Nm. At a time of 0.9 s, the reference speed returns to 500 rpm, and at a time of 1.2 s, the reference load torque returns to 20 Nm. A dual PI controller is employed in both the speed loop and current loop.
Figure 4 displays the outcomes of estimating the rotational speed of the SPMSM using three distinct witnesses.
Figure 5 presents the measurement of
id and
iq, while
Figure 6 illustrates the inaccuracy in the estimation for each of the three observers. During the initial phase of increased activity, the SMO estimator experiences fluctuations in performance, resulting in a maximum estimation error of approximately 10 rpm. The estimation of MHE exhibits significant variability during the initial stage, but as the system undergoes dynamic changes, it eventually stabilizes and reaches a steady state within the first 30 ms.
Upon reaching a reference speed of 500 rpm and stabilizing, it can be observed that MHE exhibits superior tracking performance in comparison to EKF and SMO, with an estimation error of less than 2 rpm. When the reference speed changes quickly, at 0.3 s, the capacity of SMO to track the rotational speed is significantly diminished, with an error rate of up to 10.9 rpm. Following a tuning process of 10 ms, the system finally converges, but its dynamic performance is slower than that of EKF and MHE. Following the abrupt alteration in load torque at 0.6 s, the EKF exhibits an average estimation error of 0.71 rpm, which converges by approximately 0.2 rpm. Concurrently, the SMO continues to exhibit an error of approximately 1.2 rpm. The MHE exhibited optimal dynamic response throughout the sudden speed change of 0.9 s, with an average speed estimation error of 0.9 rpm throughout the dynamic response time. The dynamic response times of the three estimators are comparable. However, SMO exhibited a larger overshoot. In general, by effectively utilizing the historical data within the horizon window, the MHE observer demonstrates impeccable accuracy in estimating both transient and steady-state processes. In addition to maintaining excellent dynamic performance, the mean estimation error of the MHE is merely 0.279 rpm, which is approximately 35.7% of the EKF and 21.4% of the SMO.
Table 2 presents the specific speed error.
Figure 7 and
Figure 8 depict the monitoring of the rotor’s position by three distinct observers. The maximal estimation error of SMO is 1.5 rad, and that of MHE is only 0.5 rad.
Table 3 demonstrates that the MHE method provides a more precise estimation of the rotor position.
- C.
Simulation results under Condition II
Under Condition II, the initial reference speed ωref is set at 1200 rpm, while the reference load torque is set at 5 Nm. At 0.3 s, the reference speed changes to 1500 rpm, and the reference torque of 10 Nm is applied at 0.6 s. The reference speed returns to its rated value of 1200 rpm at 0.9 s, and the reference torque decreases to 5 Nm at 1.2 s.
Figure 9 and
Figure 10 depict the recorded speed, whereas
Figure 11 illustrates the measurement of
id and
iq.
Table 4 demonstrates that the estimation error of SMO and EKF has decreased by 10% in comparison to Condition I. Nevertheless, the MHE maintains both satisfactory estimation accuracy and a rapid dynamic reaction time, despite initially displaying a maximum tracking error of −7 rpm, it rapidly converges within 10 ms, with the greatest error amounting to 21.7% of the SMO. While the reaction time of the EKF is comparable to that of the MHE, the average estimation error of the EKF is approximately 1.3 rpm, which is 2.8 times higher than that of the MHE. Although the average steady-state estimation error of SMO is less than that of EKF, it is important to note that SMO has a longer response time in the event of a sudden change in reference load torque. Furthermore, when SMO is employed, the estimation error increases during dynamic perturbations, indicating that SMO has weaker robustness compared to EKF and MHE.
Figure 12 and
Figure 13 present the recorded measurements of rotor position as observed by three distinct individuals. The estimation error of MHE is observed to be within a range of ±0.5 rad and exhibits a progressive convergence as time progresses. As indicated in
Table 5, the RMSE of MHE method is 46.5% more convergent than that of EKF and 59.2% more convergent than that of SMO.
The experimental results demonstrate that when a disturbance occurs in the control system, this results in a significant increase in the tracking delay in the SMO. Under Condition I, EKF is more effective in speed estimation, although the tracking sensitivity decreases slightly under Condition II. Both experimental conditions demonstrate the robustness of MHE, with its estimation errors being smaller than those of EKF and SMO.
- D.
The impact of varying horizon N on the precision of estimation
It can be demonstrated that alterations in the horizon will lead to modifications in the outcomes of MHE estimation. An increase in the horizon will enhance the precision of the estimation, yet it will also result in a slower response time due to the necessity to process a greater quantity of data. Conversely, reducing the horizon will expedite the calculation but will also result in a reduction in the accuracy of the estimate. In order to enhance the efficiency of comprehensive estimation and to explore the optimal horizon of MHE, experiments were conducted under condition II using N = 3, 5, 10.
Figure 14,
Figure 15 and
Figure 16 illustrates that the estimation accuracy of MHE(
N = 5) exceeds that of
N = 3 as a consequence of the utilization of a greater quantity of historical data, which results in a more precise noise probability distribution density. In this scenario, the efficiency of MHE improves as the length of the horizon increases.
Nevertheless, when the value of
N is set to 10, the improvement in estimating accuracy will not be significant despite the expansion of the horizon. This finding aligns with prior study conducted by Rao et al. [
29]. The optimal value for the horizon is equal to twice the order of the system, resulting in a reduced computing load while maintaining estimation accuracy.
- E.
The impact of MRAS on the estimation outcome
MRAS has been the primary subject of research in the field of servo industrial systems. The design of the MHE observer is inextricably linked to the internal parameters of the SPMSM. During the operation of the SPMSM, the internal parameters undergo changes. If the MHE continues to utilize the parameters established at the step of initialization, it will inevitably result in a decline in estimation accuracy.
This section presents a comparison between the MHE with MRAS and the ordinary estimator. The experiments are conducted under Condition II. During the operation of the SPMSM, the values of
R,
L, and
φ are subject to change. The adaptive rate setting for the MRAS is displayed in
Table 6.
Figure 17 and
Figure 18 illustrate the outcomes of speed and rotor position estimation using MHE with MRAS parameter identification in comparison to the conventional MHE.
Figure 19 presents the RMSE values for two distinct techniques. The RMSE of the estimation error in MHE without parameter identification is approximately 12.3 times higher than that of MHE utilizing MRAS. Furthermore, the error of position estimation is also approximately 17 times higher. Consequently, in real-world scenarios, the parameter identification of the SPMSM control system is of paramount importance to the observer, since the precision of parameter estimation directly impacts the control accuracy.
Figure 20 illustrates the projected outcomes of the SPMSM’s characteristics as estimated using the MRAS.
- F.
Optimization of computation
Figure 21 and
Figure 22 illustrate the speed and rotor position estimation achieved by the general MHE and optimized MHE methods, respectively, utilizing the Hessian matrix and gradient vector. The estimation error and computation time are presented in
Table 7. By utilizing the Hessian inverse matrix as the search length for optimization, the step size is adjusted in each iteration, thereby reducing the average estimation error of speed and rotor position to below 20% when compared to the original technique. By retaining the accuracy of the estimation, the computation time has been reduced from 181.13 s to 70.44 s, resulting in a 61.13% decrease in the quantity of calculation. The optimization of computation offers significant advantages in practice, allowing the processor to reduce memory usage and effectively satisfy the demands of the SPMSM fast control system.