#### Abstract

A fuzzy multiresolution wavelet neural network (FMWNN) controller with dynamic compensation (DC) is proposed to address the complexities of the electric load simulator (ELS). The FMWNN acts as a main torque tracking controller, which takes full advantage of the merits of an ideal sliding mode, fuzzy rules, and multiresolution WNN. The fuzzy algorithm is used to dynamically adjust the weights of the WNN and effectively accelerate the convergence rate. In addition, the DC controller is designed to greatly decrease the effect of the approximation error and guarantee the system stability in the sense of the Lyapunov theory. Finally, the proposed algorithms are carried out on the semiphysical simulation platform, the precision and superiority of which are comparatively verified based on the simulation results.

#### 1. Introduction

During the past few years, load simulators are widely applied to the guns, aircrafts, ships, and so forth, which provide great help for simulating the real-time variable loads. On the basis of different load types, the load simulators can be mainly divided into electrohydraulic load simulators [1–7] and electrical load simulators (ELS) [5–7]. The former are usually used in the heavy load systems and the latter with the merits of high reliability, low noise and pollution, and easy maintenance are applied to the light load systems. However, the complexities of the ELS are significant, like friction, backlash, and self-coupling, which lead to the nonlinearity and uncertainty and being difficult to guarantee the control precision and stability. Easy and simple control algorithms (such as PID [5]) usually cannot meet the control requirements. In order to solve this problem, intelligent controllers are becoming important tools to achieve predominant control performance and robust fault-tolerant ability [8–12].

Neural networks (NN) have the advantages of parallel computation, approximation, self-learning, and fault tolerance [13, 14], which have been considerable interests in the nonlinear and uncertain control system [15–18]. However, the learning algorithms of the NN belong to an integral-type form, which can be trapped into the local minimum easily and make the low convergence rate of the network parameters. The excitation functions and weights of the networks play crucial roles in the approximation performance and adaptive neurons [14] and variable structures [18] are usually carried out to optimize the networks. As a common adaptive method, the wavelet neural networks (WNN) are mainly divided into the wavelet, scaling, and orthogonal wavelet function with different excitation functions [19–21]. The latter also called multiresolution WNN (MWNN) has the advantages of multiresolution analysis in time and frequency domain [21–23]. Since the real signals are represented by different resolution intervals, some features of the subseries can be more clearly reflected than the single resolution. Moreover, the weights of MWNN must be self-adaptive for improving the convergence rate, and the adjustments of weights follow the fuzzy rules proposed by many scholars [24–27]. Therefore, the fuzzy WNN emerges at the right moment and becomes a hot research topic [26, 27]. However, the adjustment of the range and convergence rate in [26, 27] is less than the fuzzy MWNN (FMWNN) comparatively. In order to further guarantee the stability and robustness, the sliding mode control (SMC) is used as an effective approach for nonlinear and uncertain control systems [28, 29], whereas the chattering problem in the SMC and the dead zone existing in the ELS lead to a finite steady state error [30, 31]. Many scholars adopt different kinds of compensation schemes, such as the mechanical structure adjustment [9], the friction and backlash disturbance model compensation [4, 31, 32], and the intelligent compensation algorithm [18, 33, 34]. However, the first two schemes only theoretically meet the control requirements. The intelligent compensation algorithm in accordance with the characteristics of the control system shows great superiority, which takes advantages of the input sliding mode and is introduced to dynamically decrease the effect of approximation error without exact models. In addition, the control system stability is guaranteed in the sense of the Lyapunov theory [18].

With the above-mentioned motivations, this paper proposes a fuzzy multiresolution wavelet neural network controller with dynamic compensation (DCFMWNN) to address the complexities of the ELS. Section 1 briefly introduces the background of the ELS and some control strategies. In Section 2, the thorny problem existing in the ELS is put forward, and an ideal controller is designed. In Section 3, the description of the proposed controller is clarified in combination with the ideal controller in detail. To verify the precision and superiority of the proposed algorithms, comparative simulation results are given out in Section 4. Finally, Section 5 concludes the paper.

#### 2. Problem Statement

The AC permanent magnet synchronous motor (PMSM) is applied to the ELS for the gun control system. Though there are many merits in the PMSM, like the high ratio of the torque and inertia, the rapid and precise response, the uncertainties, and self-coupling disturbance result in negative impacts. In addition, the relationship between the control current and the output torque in PMSM is also not simple linear, which is different from the direct loading style. In combination with the working principle and practical working conditions of the ELS, the time-varying nonlinear system of the ELS can be simply described [35]:where and are the state vector and the input of the control system, respectively; and are the dynamic variables, , ; is the viscous frication coefficient of the motor; is the inertia constant of the motor; is the stator resistance of the motor; is the coefficient of the electromagnetic torque; is the coefficient of the counter electromotive force; is the amplifier gain; and mainly includes the system external disturbance, which guarantees that is less than , where is a positive constant.

According to the existing problem, the control objective is to find a control law so that the state trajectory can track a desired reference command ; thus, a tracking error is defined as

And a sliding surface is defined as follows:where is a positive constant. Consider the candidate Lyapunov function in the following form:

In combination with (2) and (3), differentiating (4) with respect to time obtains

If the system parameters in (1) are known, an ideal controller can be designed as [18]where is a positive constant. The following equation is obtained when in (5) is replaced by in (6):

Since is negative semidefinite, . It implies that and are realized as , which are bounded [36]. Finally, the stability of the ideal controller can be guaranteed in the sense of the Lyapunov theory.

#### 3. Design of Fuzzy Multiresolution WNN with Dynamic Compensation

The ideal controller can asymptomatically stabilize the system. However, some nonlinear variables in cannot be obtained exactly, and the external disturbance is uncertain in particular. In order to address this problem, the proposed DCFMWNN controller shown in Figure 1 is designed aswhere is the FMWNN controller and is a DC controller. The former is a main controller to mimic the ideal controller, and the latter based on a sliding surface compensates for the difference between the ideal controller and the former. The inputs of MWNN controller are torque errors and the derivation of torque errors and sliding surfaces. The input torque error is the difference between the reference command and torque sensor value.

##### 3.1. Wavelet Multiresolution Analysis

By virtue of different resolutions, the multiresolution analysis (MRA) can decompose a signal into components spanned by the scaling and wavelet basis functions. Any finite energy function can be represented as [21]where is the scaling function; is the mother wavelet function; and are the expansion coefficients at the scaling levels and , respectively. A higher or finer resolution function including more complete information of is achieved with the addition of the scaling level . The choice of the scaling and mother wavelet is application dependent; a popular mother wavelet is the Daubechies wavelet family defined as , where represents the order. is orthogonal with regularity and compact support, which has been widely applied to various applications of wavelets.

##### 3.2. Takagi-Sugeno-Kang Fuzzy System

With the advantages of easy computation and analysis, the fuzzy controllers with many adaptive and intelligent rules have been widely applied to complex nonlinear systems. Considering the multi-input single output (MISO) system, Takagi and Sugeno provide that the output of fuzzy rules is obtained by the linear combination of the inputs [37]. The following rules can be achieved [27]:where is the th fuzzy rule; is the link weight; is a constant; and represent the input torque error and fuzzy sets. Then, the system output with rules iswhere denotes the basis function and usually is chosen as and is the number of the fuzzy rules. And is the Gaussian membership function and and are the center and variance of the membership function related to the th fuzzy rule, which are adjusted based on the gradient descent method.

##### 3.3. Fuzzy Wavelet Multiresolution Analysis

The orthogonal wavelet function is usually used as the excitation function of neurons in the neural network, and the wavelet decomposition is used to analyse the data. The networks are trained step by step on the basis of multiresolution analysis. The output of FMWNN controller can be represented aswhere and are the number of the inputs and locations on the grid at the resolution , respectively [26]; and are the dilation and translation parameters, respectively; and are the Gaussian scaling and wavelet functions, respectively. The coefficients and are derived based on a gradient descent algorithm and aim to minimize for achieving fast convergence [18], and the number of fuzzy rules depends on the summation bounds of and that can be determined from the time supports of both the output of FMWNN controller and the Gaussian scaling and wavelet functions. The higher level that adds finer resolution to the signal can be chosen as larger than as possible provided that the computational effort is not a concern, and several other criteria for the determination of are given in [22]. In combination with the characteristics of db wavelets and simulation results, the lower level is defined as and is set to be 2, where is the round-up integer with and is the length of sampled data [23]. The MRA scaling can be set as and , and , , and in (12) are chosen as , , and . The proposed FMWNN is shown in Figure 2.

##### 3.4. Dynamic Compensation Controller

According to the property of the universal function approximation, it implies that there exists an expansion of (6), which can approximate a nonlinear function as follows [38]:where is the minimum reconstructed error, , , and , , , and are the ideal values, which can not be obtained precisely. Since these optimized parameters are unobtainable to guarantee best approximation, we adopt the online adaptive methods based on the offline learning. An online evaluation is used to estimate the optimized , and (8) can be rewritten aswhere and are the estimation values of and , respectively. An estimation error by subtracting (16) from (15) is defined as [18]where and . Moreover, the linearization technique is employed to transform the wavelet function into a partially linear form. The expansion of in Taylor series can be obtained as [39]where is the number of nodes in the product layer and is a vector of higher-order terms. and are defined as

Substituting (18) into (17) yields

Then, the derivative of with (1) and (6) can be expressed aswhere . In case of the existing , consider a specified tracking performance [40]where , , and are positive learning constants, is a prescribed attenuation constant. If the system starts with zero, tracking performance can be rewritten as

To prove the stability of the DCFMWNN controller, define a Lyapunov function candidate in the following form [18]:

Taking the derivative of the Lyapunov function yields

In order to further simplify , the adaptive learning laws must be guaranteed as follows:where plays a great effect on the coefficients of and and the value of is set to be too small to enhance the influences of and , which leads to the low convergence rate of the control system. and are related to the dilation and translation parameters, which are set to be too big or small to achieve the high convergence rate of the control system. is used in the DC controller; the output of DC is too little to reduce the approximation error when the value of is set to be more than 2. However, the value of is set to be too small; there exists an obvious overshoot.

Thus, substituting (26) into (25) yields the following:

Assume and . Integrating the above equation from to yields

Since is positive semidefinite, the above inequality is as follows:

In combination with (23), the following inequality can be obtained:

As a result, the stability of the control system can be guaranteed.

#### 4. Semiphysical Simulation

In order to demonstrate the feasibility and effectiveness of the DCFMWNN controller, the designed reference commands, with different algorithms, like the convergence analysis of the MWNN and FMWNN, the step response of the FMWNN and DCFMWNN, and the sinusoidal tracking of the FMWNN and DCFMWNN, are applied to the simulation platform of the ELS shown in Figure 3. The host control computer with the proposed algorithm to achieve torque tracking control of the ELS mainly analyses and calculates the feedback torque of the torque sensor, the compensation torque of inertia disks, and the actual torque required. The signal conditioning center is mainly used for processing signals from the sensors and the configuration settings needed for the hardware switches. According to the output of the host control computer, the output of drive provides the appropriate current to drive the torque motor. The torque sensor is used to collect the output of the torque motor, which is fed back to the host control computer to form the closed-loop control for the loading torque. The function of the resolver is gathering the angle position of the gear reducer, which can be used to calculate the real-time command torque for the torque motor. The function of the angular velocity sensor is gathering the angular velocity of the gear reducer to provide more actual values for the identification methods and the control strategies. The angular acceleration sensor collects the angular acceleration at the end of the gear reducer to compute the inertia moment produced by the inertia disks. The number of inertia disks depends on the actual demand of the gun control system, which provides various rotational inertia values to simulate the inertia torque.

The following simulations are carried out in an Intel Core i5 CPU with 3.2 GHz rate, 4 GB RAM, and 64-bit operating system. The parameters of the actual gun control system are as follows: the rotary inertia of the turret is 7000 kg·m^{2}, the total friction torque is less than 1200 N·m, the center position of gravity is located in 0.35 m away from the rotation center of the turret, and the reduction ratio is 360. The controller parameters are selected as , , and . By analysing the simulation results, the control period is 5 ms and the sampling frequency is 10 kHz, and the important torque motor parameters are shown in Table 1.

##### 4.1. Convergence Analysis

The superiority between the proposed MWNN and FMWNN controller is illustrated by analysing the convergence epochs, so the absolute error () of the training data is adopted to evaluate the MWNN and FMWNN controller. The simulation results are shown in Figure 4, which show that the convergence epochs of the MWNN and FMWNN are 65 and 46 when the absolute error is close to 0.01 N·m. In general, a larger absolute error is set, which contributes to the acceleration of the convergence process. However, if a higher precision needs to be guaranteed, the absolute error must be set to be smaller comparatively. Meanwhile, the convergence process will be slower because of the computing load brought.

##### 4.2. Step Response

The step response with external disturbance is evaluated in Figure 5, which further indicates the rapidity and stability of the FMWNN and DCFMWNN controller in the ELS. From Figure 5, it is clear that the FMWNN controller is 30 ms slower than the DCFMWNN when the step response of the reference command is set to be 8 N·m at the initial stage. At the time of 170 ms, an external disturbance −2 N·m lasting 5 ms is added to the control system; the latter performs better than the former, which proves that the addition of DC improves the robustness of the control system to some extent.

##### 4.3. Sinusoidal Tracking

In order to compare the superiority of the FMWNN and DCFMWNN, the reference command of the torque motor is usually chosen as in view of practical working conditions, when the load motor is working in sinusoidal position motion . The outputs of the FMWNN and DCFMWNN controller are and shown in Figure 6.

Figure 6 once again proves that the performance of the DCFMWNN controller is better than the FMWNN controller from the mean tracking errors of the amplitude and phase. The mean tracking error of the FMWNN even exceeds 9%, which is far greater than the DCFMWNN.

In order to further analyse the stability and precision of the desired outputs with different frequencies and amplitude, the reference commands of the torque motor are selected as , , , and , and the simulation results are presented in Figures 7–10, respectively. The dynamic simulation results of the sinusoidal tracking are shown in detail in Table 2, in which the negative values of the mean phase error mean that the real outputs lag behind the reference command. Considerwhere is the sum number of the output in certain control time; and are the real and ideal output amplitude; and are the real and ideal output phase.

The mean amplitude and mean phase errors are the mean absolute values and angle deviations between the desired reference command and the real simulation outputs, which show that the smaller the reference command amplitudes and the higher the reference command frequencies (within certain limits), the worse the control performance. However, what we need is to remember that the control effectiveness is relatively poorer when the direction of the torque motor is changed, which plays a negative effect on the overall performance and needs to be delved into in the future.

#### 5. Conclusion

This paper has successfully investigated the ELS via DCFMWNN controller on the simulation platform of the ELS. The FMWNN controller has salient merits of free model, effective search, and computation ability with few chattering phenomena, and the DC controller is introduced to eliminate the effect of the approximation error and guarantee the system stability in the sense of Lyapunov theory. Furthermore, the simulation results are promising and reveal that the proposed controller is able to successfully damp the interarea nonlinearities and maintain system precision and robustness.

#### Conflict of Interests

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

#### Acknowledgments

The authors are grateful to the reviewers for their valuable comments. The authors appreciate the partial financial support from the National Science Foundation of China under Grant 51305205.