Abstract

This paper presents an improved whale optimization algorithm (IWOA) for optimizing the model predictive torque control (MPTC) of brushless DC motor (BLDCM) to further reduce the problems of strong torque pulsation and high ripple caused by the special structure of BLDCM. IWOA adds a randomized convergence factor strategy to the original algorithm, enabling the parameter weights to be adjusted in time. The relative error between the training set and the predicted values is reduced, and a suitable interval is selected for the target. The proposed method takes into account the switching frequency loss factor in the MPTC system of BLDCM, discarding the traditional trial-and-error method and choosing to control the parameter adjustment by the degree of deviation. The IWOA is compared with the popular whale optimization algorithm (WOA), dragonfly algorithm (DA), ant colony optimization (ACO) algorithm, and grey wolf optimization (GWO) algorithm on the MATLAB SIMULINK platform to verify the effectiveness of the method in dealing with improved chain tracking, reduced torque pulsation, and reduced speed error. The simulation results show that IWOA performs well, with an efficiency of 94.32%.

1. Introduction

The BLDC motor body’s stator winding is typically divided into multiple phases (three-phase, four-phase, and five-phase varies). The rotor consists of permanent magnets in a certain number of pole pairs [14]. When a phase of the stator winding is energized, the magnetic field generated by the current interacts with the magnetic field generated by the poles to drive the rotor, and then the position sensor converts the rotor position into an electrical signal to control the inverter so that each phase of the stator winding is energized in a certain order and the stator phase current changes phases in a certain order with the rotor position [5, 6].

It is very meaningful to reduce speed error and torque pulsation in brushless DC motors. Due to the influence of factors such as nonideal counterpotential waveform, tooth groove structure, and current commutation, leading to more obvious torque pulsation in BLDCM, which makes the motor operation noise and vibration increase and reduce the motor load carrying capacity and cannot be applied in the field of high-performance servo control, it is crucial to improve the torque dynamic response control performance of BLDCM for the popularization of the use of this motor; similarly, in the conventional speed control system of BLDCM, the conventional controller will make the speed overshoot too much, which will lead to the oscillation problem. Therefore, eliminating the speed overshoot problem of the speed controller plays a very crucial role in realizing the fast response of the motor speed and the minimization of the steady-state error, both of which are of great significance for the prospect of a simple and easy engineering application of BLDCM.

The continuous improvement of the research content of BLDC motors has prompted the reinvestigation of electric vehicles in BLDC motors. BLDC motors have a good response to the static and dynamic responses of the industry, prompting them to have a long-term impact on industry production, such as electric crank windows in cars, inverter washing machines, inverter air conditioners, small motors in optical drives, and many other BLDC devices [710].

However, BLDC motors can produce large torque fluctuations due to their own cogging structure, phase change currents, nonideal counterelectromotive force waveforms, and other factors. The presence of torque pulsation has limited the application of BLDC in servo systems, especially in direct drive applications where torque pulsation deteriorates the motor speed control characteristics, thus, suppressing or eliminating torque pulsation has become the key to improving the performance of servo systems [11, 12].

A common issue with direct torque strategy in motors is large torque fluctuations at low speeds. Many advanced controllers have been proposed to solve this problem, with model torque prediction control (MPTC) strategies being the most prominent and incorporating advanced algorithms that are emerging into our vision. MPTC is generally used to accurately track the magnetic chain by weighing the chain and using torque weights to reduce torque ripple [1316]. However, in practical conditions, the overreliance on empirical methods for the target weights does not provide much certainty about the actual errors that occur [17]. Also, the majority of MPTC is used in permanent magnet synchronous motor (PMSM), with little research done in BLDC motors.

The whale optimization algorithm was proposed by Mirjalili and Lewis in 2016, and they mentioned in the literature [18] that the algorithm was developed based on the unique bubble net foraging behavior of humpback whales. It has a strong search ability for multiobjective problems in terms of errors and can deal well with target-weighting interests. This is why it was chosen as the base algorithm for the optimization of MPTC systems in this paper.

The intention of this paper is to propose an IWOA to improve the MPTC of BLDC motor. The method adjusts the weighting parameter coefficients in a timely manner and analyzes the average switching frequency losses of the inverter to minimize torque ripple and accurately track flux performance.

This article has the following three main contributions: (a) IWOA is a modification of the WOA, incorporating the idea of simulated perturbations and using a random adjustment of the convergence factor strategy to reduce the relative error between the predicted and actual values. The proposed method is compared and analyzed on the MATLAB platform with advanced algorithms from recent years. (b) The traditional trial-and-error method of weighting in MPTC has been replaced by the advanced IWOA, which can quickly and accurately find the right interval for the target weights. The proposed method also takes into account the switching frequency losses of BLDC motor. (c) Considering the special structure of the BLDCM, the results are analyzed using speed and torque in two different cases, and the proposed method is able to cope with the different situations, combining the target weights to give a suitable output.

The remainder of the paper is organized as follows: Section 2 summarizes research reports from recent years, and in Section 3 the mathematical model of BLDCM is analyzed and the DTC and MPTC strategies are elaborated. In Section 4, the WOA is briefly described, and measures to improve the WOA are discussed in detail. The application of the algorithm to the MPTC of the BLDCM is presented in Section 5. Simulation results are given in Section 6 and are discussed and investigated in relation to the simulation results. Finally, the conclusions are presented.

2. A Brief Summary of Recent Research Reports

In terms of advanced control strategies, a diagonal recurrent neural network (QRNN) strategy based on the Q-learning algorithm was proposed in the literature [19], and the Q-learning algorithm was improved to optimize the weight momentum factor, which was accurately verified at different operating conditions and speeds of the BLDCM. Kommula et al. in the literature [20] show that with the help of a fractional order PID based on an improved firefly algorithm and a particle swarm algorithm controller based on a modified firefly algorithm and a particle swarm algorithm, the uncertainty due to load variations is reduced and the torque fluctuations are greatly reduced. Not coincidentally, in the literature [21], a fuzzy parametric adaptive PI controller was proposed using reference speed and feedback speed as input and deviation, and the steady-state error, overshoot, was analyzed under different speed reference responses to demonstrate the strong robustness brought by the method. The literature [22] uses the idea of neural networks on this basis, and in the results, better control can be achieved. In the literature [23], the Coyote algorithm is designed for controller parameter rectification, and control precision is improved through low-speed operation experiments. In the literature [24], generalized predictive fractional order PI control was combined with lion swarm optimization to enable the optimal signal to come into the system, and an experimental platform was built to verify the feasibility. A new copper loss minimizing DTC was proposed in the literature [25] to achieve BLDCM in DTC while achieving high efficiency and high torque fine reading, using a three-phase conduction voltage vector meter to achieve tracking control of the magnetic chain, cutting out the torque pulsation caused by the back EMF and nonideal phase change in the conventional two-phase conduction voltage vector meter DTC, and improving control accuracy. Cao et al. [26] produced a reflection on the BLDCM braking case and proposed a smooth torque control strategy for the BLDCM that corresponds to the direct torque control performance in different speed ranges according to different modulation methods to achieve controllability of the braking torque and also reduce the phase change torque. The literature [27] uses numerical analysis ideas in the optimization of MPTC systems to linearize the torque function and current constraints, eliminating gain tuning according to the characteristics of the control strategy. Choi et al. focuses attention on the complex weighting factors in MPTC, and proposes an online adjustment of the weighting factors in the literature [28] to keep the error within a certain range. Guazzelli et al. [29] propose the nondominant sorting genetic algorithm (NSGA-II), which lists torque, chain performance, and average switching frequency as the three target values from which the best value is selected. These algorithms have some differences, with different convergence and accuracy, in that they all improve on the traditional DTC, but it is an important challenge to accurately track the magnetic chain and improve torque ripple using MPTC on a BLDCM, a motor with a special structure. In the literature [30], WOA is applied for the first time to optimize a hyperparameter problem, comparing it with a neural network algorithm and a random search method, two traditional algorithms that demonstrate the high accuracy of WOA. In the literature [31], the WOA algorithm was combined with adaptive convergence and Levi’s characteristics to solve the problem of easily falling into local optima, reflecting good global search capabilities. Got et al. combined the WOA with a multiobjective problem in the literature [32], introducing the population profile whale optimization algorithm (GPAWOA), combining GPAWOA with the multiobjective particle swarm optimization (MOPSO) algorithm, decomposing the multiobjective evolutionary algorithm (MOEA/D), and using the multiobjective grey wolf optimization (MOGWO) algorithm for comparing results analysis. GPAWOA achieved good performance in convergence and population diversity and literature [33] proposed to combine WOA with a hybrid grey wolf optimization algorithm to eliminate the optimization error in the observer and the uncertainty of external disturbances in mechanical systems. In dealing with the inability to generate maximum power in BLDCM-based battery-free PV systems, the literature [34] combines WOA with conventional perturbation observation (P&O). In the literature [35], Nadimi-Shahraki et al. focus their attention on the problem of improving the WOA search capability by introducing two different motion strategies to enhance the WOA capability and validated by simulation.

3. BLDCM Mathematical Model and Traditional Control Strategy

3.1. BLDCM Mathematical Model

BLDCM is so named because it eliminates the need for a mechanical phase commutator and brushes and relies on an inverter to convert the DC current into a square wave motor. Figure 1 shows what a three-phase full-bridge inverter with a BLDCM looks like in terms of its circuit.

Here,  ∼  are six switches, where , , and are the stator three-phase winding voltages; , , and are the three-phase winding induced electromotive forces; and are the stator currents in phases A, B, and C, respectively. is the DC bus voltage, and is the capacitance at DC. The voltage balance equation for the three-phase stator winding can be written as follows:where is the stator winding, is the self-inductance of each phase winding, is the phase-to-phase mutual inductance, and is the differential operator.

Due to the inherent characteristics of brushless DC motors, the control frequently takes the form of a two-by-two conduction, as opposed to the sine wave magnetic field of three-phase asynchronous motors and permanent magnet synchronous motors. On the same bridge arm, the next two switching elements are 1 for on and 0 for off. Therefore, the six nonzero voltage vectors are represented in turn as (100001), (001001), (011000), (010010), (000110), and (100100). Figure 2(a) represents the switching tube state corresponding to each nonzero voltage vector in space, and Figure 2(b) represents each nonzero voltage vector in space schematically.

3.2. Conventional DTC for BLDCM

In a conventional DTC, a magnetic chain observer is required to calculate the stator magnetic chain, whereas the conventional method basically takes the stator terminal voltage and phase current as well as the stator resistance to calculate it. However, at low-speed operation, the stator voltage decreases, the stator side resistance is measured incorrectly, and the calculation has to go through the operation of integration, which can lead to distortion of the magnetic chain observation. Therefore, the magnetic chain estimation link is only used to estimate the current stator magnetic chain position; (2) and (3) are the u-i model equations, where the amplitude and amplitude angle of the stator magnetic chain are obtained from (4) and (5), respectively.where , , , , , and are the stator magnetic chain, stator current components, and stator voltage in the - stationary coordinate system, respectively. is the stator winding resistance.

Since the flux density of the BLDCM is distributed in a trapezoidal wave, the torque calculation in the DTC of asynchronous and permanent magnet synchronous motors are no longer used. Because the BLDCM stator resistance is very small and the effect of higher harmonics in the magnetic chain on the torque can be ignored, the electromagnetic torque is rewritten as given in the following equation. The space can be divided into six sectors according to the value of .where is the rotor position angle, are the stator magnetic chain, the component of the stator current on the two-phase rotating coordinate system (d-q), and is the number of pole pairs of the motor.

To produce constant electromagnetic torque, a square wave stator current input is required, or when the stator current is square wave, the counterelectromotive force waveform is required to be a trapezoidal waveform. The duration of the square wave current is electrical angles per half cycle, and either the flat top part of the trapezoidal counterelectromotive force is also electrical angles, and the two should be strictly synchronized. At any given moment, only two phases of the stator are on.

The voltage equation for the three-phase winding of the BLDCM stator can be written in the form of an equation of state, as shown in the following equation:

The basic idea of DTC is to divide the magnetic chain rotation space into 6 stages, set the tolerance of the magnetic chain and torque hysteresis loop according to the torque control requirements, compare the observed value of the torque with the given value, combine the stages of the stator magnetic chain, select the appropriate voltage vector, control the inverter directly, and output the corresponding space voltage vector to control the output torque of the motor. Figure 3 shows the basic schematic of the DTC.

3.3. BLDCM Conventional MPTC

MPTC is often based on the stator current, electromagnetic torque as the controlled object, and online rolling to solve for the optimal output quantity, which often requires a value function to evaluate the motor’s operating state during this period. Rolling optimization is an important core part of MPTC, where the predicted model state at the kth moment in a control cycle is used to predict the output state for k +1. The state quantity is compared with the reference quantity output trajectory, and the value function is used to determine the optimal voltage vector. The above MPTC is not performed offline; it is an online prediction of the control quantities of the system. However, there are external disturbances, and the predicted value and the actual desired value often have unavoidable deviations. MPTC can usually be divided into finite-set predictive torque control (FCS-MPTC) and continuous-set predictive torque control (CCS-MPTC); this paper adopts FCS-MPTC. FCS-MPTC is easier to implement by substituting the voltage vector into the value function in turn and selecting the best quality by the value function’s minimization constraint, but the degree of freedom of regulation is underground, which will lead to unstable switching frequency and overreliance on the motor’s fixed parameters, making accurate control difficult. How to solve the switching frequency instability in the control strategy, where the system is overly dependent on parameters, is the focus of this thesis research.

In conventional FCS-MPTC, the prediction of the next cycle electromagnetic torque and stator magnetic chain is essential. The mathematical model of the stator magnetic chain is shown in the following equation, as the stator current prediction model is shown in (9) and the electromagnetic torque prediction model is shown in (10).where is the unit matrix, is , and is the d-q axis stator voltage in the motor. stands for , where are the d-q axis stator and rotor magnetic chains, respectively, is , where are the d-q axis stator voltages of the motor, respectively, and is a control cycle, where is equal to because the motor in this paper is a BLDCM, where , , and are the currents on the stator d-q axis in the motor.

The above three equations then predict the future states of the stator magnetic chain, current, and torque of the FCS-MPTC control system.

Conventional FCS-MPTC tends to select the stator electromagnetic torque and magnetic chain as evaluation conditions. The weight coefficients of the value function will have a moderating effect on the evaluation results and play a large part in the system’s choice of the optimum value. However, in online prediction, errors as well as errors due to deviations can occur. So the focus of this paper’s research is on how to deal with the impact of errors and biases online and how the weight coefficients should be adjusted.

The traditional value function is shown in the following equation. The schematic diagram of the traditional MPTC is shown in Figure 4.where and are the weighting factors for regulating torque and stator chain errors, respectively.

4. Optimization Algorithm

4.1. WOA

WOA simulates the unique bubble foraging method of whales. According to the literature [23], the algorithm is divided into three stages: encirclement foraging, spiral updating, and searching for prey. The algorithm obtains relevant information by searching for solutions, keeps approaching the solution set through constant encirclement and a spiral approach, and eventually finds the final solution, i.e., the optimal solution. The two most important variables of the algorithm are the optimal solution and the range of approaches to the optimal set of solutions.

In the encircling feeding phase, whales need to be informed of the specific location of their prey through group communication and keep approaching it. In the algorithm, let the whale population size be , the search space dimension be and the -th value whale position be denoted as . Simulating the predation phase, the mathematical model is as follows:where is the current number of iterations; is the individual position vector; is the prey position vector (the current optimal solution); and and are the coefficient vectors, respectively, and are related in the following way:where and are random numbers of [0, 1], respectively; is a control parameter that decreases linearly from 1 to 0 as the number of iterations increases, i.e.,where is the maximum number of iterations.

Once the location of the prey is known, the whale will often adopt a spiral approach in order to ensure a successful capture, mathematically modelled as follows:where is a constant used to bound the shape of the logarithmic spiral; is a random number of [−1, 1].

The traditional WOA frequently introduces probabilities to discriminate which location update is performed by an individual whale, ranging from 0 to 1, and segments the mathematical model according to , as shown in the following equation:

The algorithm often requires a value to determine which stage it is at; here, it is necessary to determine whether it is the prey search stage or the encircling predation stage. Here, it is proposed that when  > 1, the whale is unable to obtain valid information about the prey, and then it needs to keep trying to search for cue information through random methods. Here, it is the equivalent of an insurance measure for unsuccessful predation. The mathematical model is as follows:where is a randomly selected vector of individual positions from the current population. Figure 5 shows a three-dimensional plot of the baseline function for the WOA run.

4.2. IWOA

For the population iteration of the population intelligence optimization algorithm, the good or bad quality of the initial population affects the search efficiency of the algorithm and the diversity of the population, both of which help a lot to improve the global convergence speed and the quality of the solution of the algorithm. In traditional WOA for solving optimization problems, there is no a priori knowledge system for the global optimal solution of the problem, which is unevenly distributed and poorly diversified in the solution space and cannot effectively extract the useful information from the solution space, which affects the search efficiency of the algorithm to some degree. The global and local search abilities of the WOA algorithm depend heavily on the value of the parameter A, which, according to (13), changes with the Convergence factor a; equivalently, the global and local search abilities of WOA depend on adjusting the convergence factor a. In the basic WOA, the convergence factor a decreases linearly to 0 with the number of evolutionary iterations from the set parameter, i.e., ideally the WOA can explore a larger and broader search area in the initial exploration because the initial value a is set very large, and as the algorithm advances, a gradually becomes smaller, which satisfies the local accurate search of the algorithm. However, WOA is nonlinearly changing in the evolutionary search process, and the linearly decreasing convergence factor a cannot fully reflect the actual optimization of the algorithm’s search process, so this paper introduces a random convergence factor so that the convergence factor changes nonlinearly and dynamically with the increase in the number of iterations in order to balance the traditional global search and local search capabilities. The degree of deviation in (19) is the vector gradient of the convergence factor a. In this MPTC paper, the IWOA directly adjusts the weight coefficients of the objective function and outputs the optimal vector by equating the predicted value and the reference value of the objective function as the measured value and the estimated value, calculating the degree of deviation from its mathematical expectation, and iterating continuously.

WOA often takes a random initialization approach when dealing with initialized populations, which can lead to a high degree of randomness in the method, which is not conducive to reducing search time and does not guarantee population diversity. In this paper, we propose a backward learning improvement method to ensure population diversity and reduce computing time. The improvement method is to generate the reverse solution of the feasible solution, evaluate the reverse solution, and select a better candidate solution. In general, the opposite number is closer to the optimal solution than a random number. The mathematical model is as follows:where is the individual feasible solution, is its inverse solution, and and are the upper and lower bounds of the solution.

WOA is prone to local optimality as well as premature convergence during and after local development, and when perturbed, the algorithm can create the problem of difficulty in reaching an optimal solution. In this paper, we propose a random adjustment of the convergence factor strategy to simulate the perturbation operation on the population and produce more individuals to deal with the impact of sudden deviations and errors. The mathematical model is shown in the following equation:where and are the initial and termination values of the convergence factor, respectively. is used to simulate the perturbation, and is used to measure the deviation of the random variable from its mathematical expectation. The IWOA flowchart is shown in Figure 6. The pseudocode of IWOA is listed in Table 1.

5. MPTC with IWOA

The cost function of the conventional MPTC does not take into account the number of switches and is generally controlled by the relative error rate of the magnetic chain and the torque error rate, omitting the setting of the weighting factor, which does not correspond to the actual operating conditions, expressed as follows: is the stator magnetic chain at moment k. is the torque reference at moment k.

However, in actuality, the switching frequency of the inverter is not constant at low speeds, and the loss increases. MPTC applies the idea of optimization to solve the value function in real time, in order to get the ideal voltage vector for the inverter. In reality, however, the low-speed state will cause the inverter switching frequency to fluctuate and the loss to rise, which will also cause the controller settings to be challenging to modify and the dynamic performance to suffer. It is crucial to take the average switching frequency loss into account in order to avoid this circumstance. Similar to how the inverter increases the harmonic content of the output and decreases the overall efficiency of the entire drive system due to the numerous switching devices, the difficulty of the midpoint voltage balance, and the high cost of the system, the switching frequency constraints are added to the value function to achieve the presentation of the optimal control effect in the following work simulation.

Torque and flux performance, as well as average switching frequency minimum losses, are prioritized in this paper. The average switching frequency considers the period differently from the first two, so the number of switches is generally used instead of the average switching frequency, taking into account the following cost function for the number of switches.where , , and represent the weighting factors of the three objective functions, respectively; is the number of switching operations caused by the voltage vector applied at this point.

The cost function needs to be adjusted to achieve different control effects by setting different weighting factors to adjust the relative importance of each target. In this paper, the IWOA is used to adjust the parameters in due course to determine the weighting coefficients according to the variation of the magnetic chain, torque, and average switching frequency under different weights. In this paper, the relative importance of the target is seen by defining the square root error of torque pulsation, the square root error of chain pulsation, and the average switching frequency, and they are denoted in the following, respectively. Also, the evaluation function of the MPTC modified by IWOA is as follows:

WOA is essentially the reduction of the relative error between the training set and the prediction finger, while IWOA in this study employs a random adjustment of the convergence factor strategy to generate simulated perturbations and increase the number of predictions, taking into account a variety of situations to measure the degree of deviation from the target random variable by . The for the situations that exist for different target values is different.

represents the weighting factor for torque, which is often the most important in a BLDCM, and because of the special structure of the BLDCM and the drive method, factor is set at 5–25, and its requirement is also the lowest, with being the most important value to consider, set at 0.02–0.05 in this study. is the weighting factor for flux and is usually limited to 2–10; will be larger than for torque and is usually set to 0.2–0.6. is the average switching frequency weighting factor, an excessive increase will distort the current, usually set to 0.01–0.04 and 1.0–1.6 for . is the least preferred value in the simulation, a conjecture that will be demonstrated in the next section.

Because the upper and lower limits are different for each target in the IWOA, the BLDCM requires an upper limit of 10 N.m. The upper limit for electromagnetic flux ripple is 0.05 V.s. The average switching frequency is set between 2 and 7 kHz, depending on the actual inverter specification. The IWOA development parameters are shown in Table 2.

6. Results and Discussion

In order to test the effectiveness of the MPTC with the IWOA control algorithm in BLDCM, the simulation was carried out in MATLAB on a PC with 16 GB of memory and the simulation software MATLAB 2020b. The motor parameters in the simulation are listed in Table 3.

To highlight the superiority of IWOA, IWOA, WOA, DA, ACO, and GWO were simulated in the same environment using the same test functions as in the previous section, and their final fitness values were , respectively.

Here, we can see from Figure 7 that IWOA converges the fastest. IWOA is roughly similar to WOA, so the convergence rate is similar. It is observed that the final fitness values of DA, ACO, GWO, and WOA are all larger than IWOA because the other algorithms tend to fall into local optima compared to IWOA, resulting in large fitness values. Figure 8 shows the iteration times of the five algorithms, which show the high efficiency of IWOA in processing functions.

In previous work, MPTC has often used a trial-and-error approach by gradually increasing the weights, identifying the optimum weighting factor based on the variation of different weights. This is unrealistic in practical engineering and can seriously affect the lifetime of the motor. In this study, IWOA is used to generate simulated perturbations using a unique random adjustment convergence factor strategy to measure the degree of deviation from the target by , which greatly reduces the time to run the motor to stability. Figure 9 shows the relationship between the three targets (root mean square error of torque pulsation, root mean square error of flux pulsation, and average switching frequency) and their weighting factors for the simulation 0–2 s, respectively.

Here, it can be observed that the root mean square error of torque pulsation and the root mean square error of flux pulsation both find their lowest values in the running time, verifying the high efficiency of IWOA as just described. In Figure 9(c), we find that the average switching frequency tends to decrease significantly as the weighting factor increases, and we cannot see the optimum value through the relationship. By confirming the optimum position of the weighting factor for torque and flux, the evaluation function is put together with the average switching frequency, and by applying a disturbance and changing the load torque to simulate light and heavy loads, it is observed whether the average switching frequency will have a large effect on the value function and how the weighting factor for the average switching frequency is taken.

As seen in both cases of Figures 10(a) and 10(b), the average switching frequency values are different for different loads, showing a decrease with increasing load. However, in both cases, the weighting factors of the average switching frequency coefficients corresponding to the inflection points of the evaluation function differ very little, so the average switching frequency coefficients are set to [0.02, 0.03] in the following simulations.

The corresponding to the root mean square error of torque pulsation and the root mean square error of flux pulsation are shown in Figures 11(a) and 11(b), respectively. It can be seen that the deviation of both targets appears to be the lowest point in the same simulation time, and the deviation under the optimal weighting factor verified above is also the smallest, verifying the feasibility of the IWOA random adjustment of the convergence factor strategy.

The current, speed, electromagnetic torque, and counterelectromotive force of the BLDCM are studied and simulated to compare the MPTC system under advanced algorithms. Since BLDCM is nowadays widely used in the scenario of electric vehicles, the proposed performance is studied under two conditions, the constant torque condition and the variable torque condition, to show the superiority of the algorithm by comparing the popular algorithms today. Figure 12 shows the flux capability of the proposed MPTC system under IWOA to control the BLDCM, and when the simulation reaches stability, the stator flux space vector trajectory controlled by the optimum switching frequency is plotted, and it can be clearly seen that IWOA has approximately 40% less high ripple than the original unadded MPTC system. As the BLDCM is a counterelectromotive force trapezoidal waveform, the stator flux trajectory position is dodecagonal.

Under constant torque conditions, the speed and torque performance, current waveforms, torque and speed errors, and rotor angular position are studied. Figures 13 and 14 show the reference speed and torque, respectively.

Figure 15 shows the current analysis of the BLDCM, which reaches a maximum of 28 A at 0.08 s and floats between −10 A and 10 A in the interval from 0.10 s to 0.4 s. A second maximum of 11A is reached in 0.4s and then floats steadily in the interval from −6 A to 6 A. Figure 16 shows the speed comparison analysis between the IWOA proposed in this paper and the advanced algorithm under the MPTC system. It can be seen that under the IWOA, the speed reaches the fastest 1006 rpm at 0.635 s and reaches stability at 0.64 s, while the WOA reaches the fastest 1008 rpm at 0.637 s, and at 0.647 s. The speeds in the MPTC system under these advanced algorithms oscillated to 995 rpm, 997 rpm, 998 rpm, and 1006 rpm, respectively, before gradually converging to the reference speed of 1000 rpm. Figure 17 shows the process from stabilization to stopping of the motor under each algorithm. It can be seen that IWOA stabilizes at 0 in 0.64 s, and the error control of the remaining algorithms is not very effective. Figure 18 shows the comparative analysis of each algorithm for torque. The torque reaches a peak of 53 N.m in the proposed IWOA at 0.08 s, drops to −40 N.m at 0.4 s, and then stabilizes at 6 N.m for the remainder of the time. The other algorithms are ineffective in dealing with the motor torque problem. Figure 19 shows a graph of the effectiveness of each algorithm in dealing with torque errors. From start to stable stop, IWOA controls the torque to 0 in only 0.4 s, verifying that IWOA has excellent performance in controlling torque with constant torque.

Table 4 shows a comparison of the error analysis of each technique in dealing with constant torque conditions for torque versus speed. The standard deviation reflects the degree of deviation of the results from the mean. A smaller standard deviation indicates a less discrete and more stable experimental result. It can be seen from the table that the standard deviation of torque and speed under IWOA is the lowest among the five algorithms, indicating that the experimental results are concentrated in a smaller range and the stability is the best compared to the other four algorithms. The mean value represents the convergence of the algorithms, and the IWOA mean value is also the smallest in both areas, indicating that the IWOA convergence accuracy is the most outstanding. Table 5 shows the motor performance of the MPTC system under the optimization of each algorithm to reach steady state. The cost analysis is based on the time required to reach motor steady state under the MPTC system without any algorithm as the standard value, and the superiority of IWOA can be seen from the performance indicators.

In the constant torque condition, the above demonstrates the superiority of the proposed IWOA. In response to the variable torque condition, the speed as well as the torque are observed and evaluated. In this case the speed remains the same as in the case above. Figure 20 shows the reference torque, which rises from a constant 6 N.m to 3 times 18 N.m in 1 s, and grayscales to 10 N.m in 1.5 s. Figure 21 shows the current waveform at IWOA, which reaches 43 A at 0.08 s, drops to −14 A at 0.42 s out, stabilizes in the −8 A–8 A interval from 0.4 s to 1.0 s, rapidly stabilizes to −18 A to 18 A at 1 s, drops from 18 A to 16 at 1.5 s, then stabilizes at −16 A to 16 A, verifying that the current increases as torque increases and decreases as it increases.

Figures 22 and 23 show the comparative speed analysis of each algorithm for the variable torque condition, respectively, obtaining the same results as for the constant torque condition. Figure 24 shows the comparative torque analysis. While the proposed algorithm reaches 10 N.m at 0.23 s, rises to 15 N.m at 1.00 s, drops to 9 N.m at 1.5 s, and gradually stabilizes, the rest of the algorithms are not very effective in dealing with variable torque, having a large amplitude phenomenon and strong jitter in the waveform. Table 6 shows the number of populations that reach the optimal solution for the solved model at five stages under the processing of variable torque problems. It can be observed that the IWOA shows a fast rising phase at 20%, 40%, and 60% stages with a continuous increasing number, and the IWOA does not lose its equilibrium in stability due to torque changes, but enters another stable phase very smoothly. ACO, GWO, and DA in response to torque changes, lost their original accuracy and did not achieve the desired stability. WOA also had an increasing number of optimal solutions in the early period, but the results were not very impressive in the later period due to the low convergence accuracy. Table 7 shows a comparison of the efficiency of each algorithm applied to the MPTC system to deal with the problem. The above tables and figures can fully demonstrate the high efficiency of IWOA in solving the problems of speed error and torque pulsation, with better dynamic and steady-state performance and robust performance, to realize the coordinated and optimized control of electromagnetic torque and stator magnetic chain.

7. Conclusions

This paper presents an improved MPTC system based on IWOA for BLDCM control. The algorithm simulation data has better convergence, higher accuracy, and greater stability than WOA, DA, ACO, and GWO. The proposed method takes into account the BLDCM switching frequency losses, incorporates the idea of simulated disturbances, explores the corresponding weighting relationships of torque pulsation, magnetic chain pulsation, and switching frequency in the MPTC system, and finds a suitable interval for the target. In order to investigate the effectiveness of IWOA in MPTC systems, the simulations are compared with WOA, DA, ACO, and GWO in two different cases, and the simulation results show that the proposed method can better reduce torque pulsation and magnetic chain ripple with an efficiency of 94.32%. In future work, we will combine big data to make the proposed method even better and apply it to more complex industrial production.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest regarding the publication of this study.

Acknowledgments

The paper was supported by the Jilin Provincial Development and Reform Commission (Grant: 2022C045-11).