Alternating Positive and Negative Feedback Control Model Based on Catastrophe Theories

In automatic control systems, negative feedback control has the advantage of maintaining a steady state, while positive feedback control can enhance some activities of the control system. How to design a controller with both control modes is an interesting and challenging problem. Motivated by it, on the basis idea of catastrophe theories, taking positive feedback and negative feedback as two different states of the system, an adaptive alternating positive and negative feedback (APNF) control model with the advantages of two states is proposed. By adaptively adjusting the relevant parameters of the constructed symmetric catastrophe function and the learning rule based on error and forward weight, the two states can be switched in the form of catastrophe. Through the Lyapunov stability theory, the convergence of the proposed adaptive APNF control model is proven, which indicates that system convergence can be guaranteed by selecting appropriate parameters. Moreover, we present theoretical proof that the negative feedback system with negative parameters can be equivalent to the positive feedback system with positive parameters. Finally, the results of the simulation example show that APNF control has satisfactory performance in response speed and overshoot.


Introduction
In the process of actual control, the control target and its environment are very complex, and its parameters are changed by various internal and external factors. Therefore, it is an important part of the control theory to research the change of the state law of the system. The system develops in stages; that is, it has a relatively stable transient state. Han et al. [1] suggest that there may be a critical point in a complex dynamic system at which an abrupt transition in the direction of the opposite dynamic mechanism may occur. Generally speaking, the natural ecosystem will have two or more alternative stable states [2]. The catastrophe theory studies the transformation of a nonlinear system from an unstable state to another stable state in the form of a catastrophe. Under the action of a small accidental perturbation, the stable state can still keep the original state, whereas the unstable state can leave the original state catastrophically once disturbed, and the stable and unstable states are interlaced with each other [3][4][5]. Wright and Deacon used catastrophe theory to predict the behavior of robots driven by fences [6]. Zhao et al. considered the role of catastrophe behavior in the control of an uncertain supercavitating vehicle [7]. According to the phenomenon in which some system state changes in the actual material system often exist from quantitative change to qualitative change or from a stable stage to another stable stage, Yan proposed some elements of the multi-scale positive and negative feedback alternation theory [8], and described the action state mathematically, according to the dynamic evolution rule of the idea, which achieved good results in the task of nonlinear time series prediction [9]. These studies show that it is feasible to use mutation to adjust the system state to achieve the desired dynamic behavior.
A certain state of the system can often be represented by several parameters and equations, and the state equations can be used to describe the causal relationship between the internal and input variables. When the changes in the system parameters fluctuate within a small range, the state of the system changes smoothly; when the changes in the system parameters accumulate to a certain extent, the dynamic properties of the system at the critical point become unstable. At this time, under the joint action of the external and internal drives, a small disturbance will push the system into another domain of attraction. With the rapid changes in the state parameters, the state of the system changes dramatically, and the state of the system shows obviously different dynamic characteristics with the occurrence of a drastic change; at this time, the system enters into a different steady state. Angeli [10] proposed the theory of continuous state feedback to realize the stability of the multiple-stable-point system. Ornik et al. [11] used small perturbations to learn the system dynamics around system states to avoid serious fault.
In relation to the control theory, feedback control is a very important research field [12][13][14]. The negative feedback control system is an automatic control system established on the basis of the negative feedback principle. The system adjusts itself by using deviation [15][16][17][18] to make the automatic control system change according to the given reference input. In the automatic control system, negative feedback is used in most cases. Positive feedback control can promote some activities of the control system [19], and the expansion of feedback information will have a great impact on the re-output of the system, which plays an important role in suppressing the vibration control of flexible structures [20][21][22]. Many important achievements have been made in feedback control, but most of the existing control models are based on feedback control in a single direction. The models have the advantages of only one control mode, and cannot obtain excellent performance in multiple modes at all the time. Can we find a control strategy to make the system switch between different states adaptively when it is working to obtain the advantages of negative feedback (maintaining a steady state) and positive feedback (enhancing part of the activities)? Inspired by the aforementioned challenges, we focus on an APNF control model with excellent characteristics of both positive and negative feedback.
It is assumed that positive and negative feedback are two states of the APNF system. When drastic changes occur, the amount of state changes presents catastrophe changes. When the parameters of the relevant system catastrophe from negative to positive, a critical transition occurs, which is equivalent to positive feedback that will push the system through a phase of direction change (negative feedback state). Conversely, when the parameters of the system catastrophe from positive to negative, the negative feedback system changes into a positive feedback system. Three related parameters are mainly involved in APNF, among which the parameter with the most dramatic change is taken as the maximum impact factor of the system, and the rest are the secondary impact factors. The maximum impact factor plays the most important role in regulating the system: that of an attractor that pushes the system to another attraction domain to achieve critical transitions. The drastic change of the secondary impact factors is smaller than that of the maximum impact factor, which is an important part of the system. Under the joint action of the maximum impact factor and the secondary impact factors, the system can dynamically adjust the relevant parameters in real time and continuously carry out critical control transition. The changes of the parameter values of the impact factors are mapped by the symmetric catastrophe function. The symmetric catastrophe function is a function whose independent variables are two kinds of impact factors and can satisfy the mutation property, which can simulate the occurrence of a catastrophe. In the symmetric catastrophe function, the variables with absolute values are the secondary impact factors, and the variables without absolute values are the maximum impact factors. The main contributions of this paper can be summarized below.
(1) The basic idea of catastrophe theories is combined into the control system, and on the basis of this, an adaptive APNF control model is proposed; (2) In APNF, a special symmetric catastrophe function with a mutation property is designed, so that the relevant parameters can mutate under a small perturbation and finally lead to state transition so as to realize adaptive state change; (3) According to the Lyapunov stability theory, the convergence of the APNF model is proven and shown that APNF converges as long as appropriate parameters are selected. Meanwhile, theoretical and experimental proofs that the negative feedback system with negative parameters is equivalent to the positive feedback system with positive parameters are given.

Related Theories and Ideas
This section mainly introduces catastrophe theory and symmetric catastrophe function.

Catastrophe Theory
Thom called the jump of the internal state of the system a catastrophe [23], which is characterized by a continuous process and discontinuous results. Catastrophe theory is based on the concept of topology, and takes the stability of system structure as the research object to explore the catastrophe critical point to describe the potential law of system catastrophe. The theory shows that the continuous change of a certain factor may lead to a sudden change in the situation of the whole system. Quantitative change causes qualitative change, the key to the qualitative change of things is whether the intermediate state is stable, and instability will catastrophe. Catastrophe theory contains two parameters: state variables, and control variables. The state variable represents the behavior state of the system, and the control variable refers to various factors affecting the state variable. Catastrophe theory has the characteristics of catastrophe, divergence, and multimodal. Catastrophe means that the system will exceed the critical point to reach another state when the control parameters are changed. Divergence means that the state variable will change greatly with a small disturbance of the control variable, and multimodal means that the system exists in more than one state. The catastrophe theory is a vivid mathematical model describing the process of qualitative change caused by the sudden interruption of continuous action, which can be used to recognize and predict the behavior of a complex system. The system catastrophe is described by (1) as: where F is the state of the former system, G is the state of the latter system, and δF is a small perturbation in F. When the energy in F continuously accumulates to a certain value, δF makes the system change from F state to G state.

Symmetric Catastrophe Function
We construct a function with catastrophe properties in a broad sense (satisfying the condition of (1) but not the conventional potential function of seven catastrophe models [23]), namely symmetric catastrophe function. In the critical point, the function can realize the transition of a large value by changing the small perturbation. The symmetric catastrophe function (Sc f (·)) constructed in this study has four control variables, and each variable is a real number with dimension 1. Sc f (·) is described by (2)-(4): where ξ is the condition parameter, ξ ∈ {ϑ, τ, φ}, ψ, and ϕ are constants and ψ + ϕ = 1, ϑ is the maximum impact factors, and the components with absolute values τ and φ are the secondary impact factors.
We used the meshgrid and slice function of MATLAB to draw a four-dimensional figure of symmetric catastrophe function (ξ = ϑ, similar results can be obtained when ξ is the other two values). The three coordinate axes represent control variables, and the size of the value is expressed by a color bar. In the meshgrid function, a mesh is created using uniformly distributed coordinates. Figure 1a,b shows the value range of the symmetrical catastrophe function with uniformly distributed interval steps of 0.201 and 0.2, respectively. It can be seen in Figure 1 that the symmetric catastrophe function has critical points. After a small perturbation (δF = 0.001), that is, the control variables change slightly, and the order of magnitude of the value near the critical point changes from 10 1 to 10 15 . There is a huge difference between the values before and after Sc f (·), and it is considered that it meets the requirements of catastrophe, divergence, and multimodality. According to (1), we regard this as the catastrophe in the system in this case.
where is the condition parameter, ∈ { , , }, , and are constants and + = 1, is the maximum impact factors, and the components with absolute values and are the secondary impact factors.
We used the meshgrid and slice function of MATLAB to draw a four-dimensional figure of symmetric catastrophe function ( = , similar results can be obtained when is the other two values). The three coordinate axes represent control variables, and the size of the value is expressed by a color bar. In the meshgrid function, a mesh is created using uniformly distributed coordinates. Figure 1a,b shows the value range of the symmetrical catastrophe function with uniformly distributed interval steps of 0.201 and 0.2, respectively. It can be seen in Figure 1 that the symmetric catastrophe function has critical points. After a small perturbation ( = 0.001), that is, the control variables change slightly, and the order of magnitude of the value near the critical point changes from 10 1 to 10 15 . There is a huge difference between the values before and after (•), and it is considered that it meets the requirements of catastrophe, divergence, and multimodality. According to (1), we regard this as the catastrophe in the system in this case. According to catastrophe theory, we construct a special symmetric catastrophe function to simulate the occurrence of a catastrophe. In APNF, under the action of the symmetric catastrophe function, the values of the maximum and secondary impact factors will show a big difference before and after (i.e., the occurrence of a catastrophe). The change of the two values will eventually lead to the critical transitions of the positive and negative feedback. The foregoing are the relevant theoretical bases and core ideas of APNF. The control strategy of the APNF model will then be introduced.

APNF Control Strategy
This section mainly introduces the APNF control strategy and the update rules of its corresponding parameters.

APNF Control Algorithm
For the third-order system with the form of a transfer function, the incremental control principle is adopted to describe the algorithm of the APNF model, which can be obtained according to the recursion scheme as shown below: According to catastrophe theory, we construct a special symmetric catastrophe function to simulate the occurrence of a catastrophe. In APNF, under the action of the symmetric catastrophe function, the values of the maximum and secondary impact factors will show a big difference before and after (i.e., the occurrence of a catastrophe). The change of the two values will eventually lead to the critical transitions of the positive and negative feedback. The foregoing are the relevant theoretical bases and core ideas of APNF. The control strategy of the APNF model will then be introduced.

APNF Control Strategy
This section mainly introduces the APNF control strategy and the update rules of its corresponding parameters.

APNF Control Algorithm
For the third-order system with the form of a transfer function, the incremental control principle is adopted to describe the algorithm of the APNF model, which can be obtained according to the recursion scheme as shown below: where u(k) is the output control quantity of the system at time k, ∆u(k) is the increment of the output control quantity of the system at time k, P is the proportionality coefficient, y d (k) is the output response of the system, y(k) is the input set value of the system, e(k) is the error feedback, and w(k . w ϑ (k), w τ (k) and w φ (k) can be obtained from (2)-(4) as: where w ϑ (k), w τ (k) and w φ (k) are the control variables of w(k), and the specific solution method is given in Section 3.2.

Learning Rules Based on Error and Forward Weight
According to (8)- (12), it is necessary to know w ϑ (k), w τ (k) and w φ (k) before solving w(k), and the solutions of the three should be calculated on the basis of the set error and forward weight value learning rules. The basic idea of the calculation based on the set error and forward weight value learning rules is as follows: when investigating the object, we should focus on inspecting the object comprehensively and accurately in terms of the interrelation, interaction, and restriction between the whole interior and the parts (elements), and between the whole and the external environment. Here, the forward weight is regarded as an internal factor, and the error is regarded as an external factor. The two are linearly combined to update the parameters, as shown in (13)-(15) as: where α, β, γ, η ϑ , η τ , η φ is the set learning rate. Because α, β, γ, η ϑ , η τ , η φ is an arbitrary can be regarded as a whole, and (13)- (15) are rewritten as shown below: We show the specific algorithm of APNF in Algorithm 1.

Stability Analysis
In this section, the stability of the APNF model is analyzed on the basis of the Lyapunov stability theory. For the stability of the APNF system, the theorems below were established. Theorem 1. The stability of the APNF model is guaranteed if the learning rate satisfies Proof. First of all, define a discrete Lyapunov function as: During the training process of the Lyapunov function, ∆V(k) changes to (21): Take the weight vector The expression of ∆e(k) can be obtained from (23) and (24), as shown in (25) as: At the same time, we can know the equivalent expression of (21), as shown below: Substitute (25) into (26) to get the below: According to the Lyapunov stability theorem, the system is stable if ∆V(k) ≤ 0 at any sampling time. It can be seen from (27) that η, e 2 (k), and ∂e(k) are all numbers greater than 0, so a sufficient condition for ∆V(k) < 0 is: is described as follows: . The other variable is The convergence of the APNF model is guaranteed if the learning rate satisfies Proof. From the chain rule: (24) and (25) to get: (26) to get: According to (10), we can know the following: It can be obtained from (35)-(37): According to (9), the maximum impact factor of the symmetric catastrophe function is w ϑ (k), which can be obtained as shown below: The corresponding derivative can be obtained from (39): The meaning of (40) is that the symmetric catastrophe functions w ϑ (k), w τ (k) and w φ (k) are used to derive w ϑ (k), w τ (k), and w φ (k), respectively, in four cases (corresponding to the four cases of (39): κ ∈ {++, +−, −+, −−}). According to (40), when ∂w ϑ (k) can be written as: In the same way, we can obtain other formulas, as shown below: is a high-order infinitesimal of y, as shown in Figures 2a and 3a, the value of f (x, y) tends to infinity, and no limit exists. As shown in Figures 2b and 3b, when x, y ∈ (ε, ∞), ε is a small finite quantity such as 1, f (x, y) has the supremum. Here, we assume that the minimum values of ( ) and ( ) in the experiment are limited; that is, . That is to say: Meanwhile, let another variable, ≥ 0, be the supremum of ‖ . We can obtain: From (34), (46), and (47), the inequality relation below can be obtained: Here, we assume that the minimum values of ( ) and ( ) in the experiment are limited; that is, . That is to say: Meanwhile, let another variable, ≥ 0, be the supremum of ‖  Here, we assume that the minimum values of sc f wa (k) and sc f wb (k) in the experiment are limited; that is, . That is to say: . We can obtain: When ∆V(k) ≤ 0, η satisfies:

Equivalent Positive Feedback
Positive feedback is used in APNF. The simplest idea to realize the combination of the two control modes in the model is to establish the framework of the two control modes in the controller, and then use different frameworks for control at different times through condition judgment. However, in practical research, knowing how to make condition judgment is very difficult. Here, we get inspiration from the equivalence of positive feedback and negative feedback. In a single framework, we do not need to make conditional judgment, and only realize the state transition through the change of parameters. According to the control theory, when the system is a negative feedback system, e(k) = y d (k) − y(k), and when the system is a positive feedback system, e(k) = y d (k) + y(k). The PID controller can be cited as an example here to introduce how negative feedback is equivalent to positive feedback, which is related to the realization of positive feedback in APNF. In this section, a theoretical proof of equivalent positive feedback is given.
The PID controller is controlled by three adjustable parameters, which determine the performance of the controller: the proportional gain (K P ), integral gain (K I ), and differential gain (K d ). The PID controller works by continuously monitoring the difference between the set value and the measured process variable. The three aforementioned components are used to calculate the control quantity and to control the target work. The generalized PID control strategy can be expressed by (50): where the three parameters K P , K i , and K d are all non-negative, and e(k) is the error between the set value and the actual feedback value. Some systems may need to keep only some parameters and set the other parameters to 0 to provide appropriate control, such as the PI, PD, and P controllers.
Proof. When w ϑ (k) < 0, the negative feedback proportional gain can be equivalent to the following: where Y(k) = y d (k) − y(k) is the small difference between y(k) and y d (k), and w ϑ (k) is the proportional gain of the equivalent positive feedback. When lim k→k 0 w ϑ (k 0 ) exists, according to (51), the −w ϑ (k) gain under negative feedback can be transformed into w ϑ (k) gain under positive feedback. The updated formula is shown below: Meanwhile, according to the positive feedback control principle, y d (k) increases with time, so when time t tends to infinity, w ϑ (k) converges to w ϑ (k). That is: When w τ (k), w φ (k) is negative, the integral and differential gains of negative feedback are equivalent, as follows: where 2y(k)k ∑ k i=0 Y(i) + 1 is a number greater than 1, and w τ (k) and w φ (k) are the integral and differential gains of the equivalent positive feedback, respectively. Through (54) and (55), the −w τ (k) and −w φ (k) gained under negative feedback can be transformed into w τ (k) and w φ (k) gained under positive feedback. Below are the updated formulas: Similar to (53), when time k tends to infinity, w τ (k) also converges to w τ (k) while w φ (k) is different from w ϑ (k) and w τ (k), and its value is always consistent with that of w φ (k).

Simulation Results
To verify the feasibility and effectiveness of the proposed APNF control model, we consider a numerical simulation, take a common third-order system as an example to simulate the control, and analyze its control performance.
The control object of the experiment is the third-order control system described in [24], and the transfer function of the controlled object is shown in (59): G(s) = 208.75 s 3 +14.31s 2 +447.53s+208.75 (59) First, the step response of the system is considered, and the step signal with a 0.02 M amplitude is inputted into the system described by (59) to test the step response of the system. Figure 4 shows the step response of the system. It can be seen that the system finally reaches a stable state without overshoot. However, the disadvantage is that the response to the input signal is very slow, as shown in Figure 4: the time for the system to reach the stable state is about 12 s, which represents a serious lag, and cannot meet the actual requirements of rapid response of the system. amplitude is inputted into the system described by (59) to test the step response of the system. Figure 4 shows the step response of the system. It can be seen that the system finally reaches a stable state without overshoot. However, the disadvantage is that the response to the input signal is very slow, as shown in Figure 4: the time for the system to reach the stable state is about 12 s, which represents a serious lag, and cannot meet the actual requirements of rapid response of the system. Step response of ( ) with a 0.02 M input.
How to realize positive feedback is the key of the APNF control model. Due to the existence of a symmetric catastrophe function, a small perturbation will cause the positive parameters to change to negative parameters. According to Theorem 3, the negative feedback system with negative parameters is equivalent to positive feedback. It is necessary to further understand Theorem 3, which is of great significance for understanding the nature of APNF. Therefore, before simulating the APNF control model, we performed the equivalent experiment of negative feedback.

Example 1.
In addition to proving Theorem 3 theoretically, we also set up two experiments to verify the relevant conclusions. The controlled object is the system described by (59). In order to show that the positive feedback proposed above can enhance some activities, the consistency of the two strategies is shown when the output is infinite. One of the experimental control strategies is the PID control, described in (50), [24] gives a set of PID control parameters with good effect for (59). Here, we take the opposite number as the control parameters, and the parameter selection is  Figure 5 shows the comparison curve of PID control with negative gain and the corresponding equivalent positive feedback step response according to Theorem 3. The purple solid line represents the step response of the PID control strategy in the case of negative parameters, and the dotted line represents the step response of equivalent positive feedback. It can be seen in Figure 5 that the two curves coincide, which indicates that the output result of the negative parameter system under negative feedback is consistent with that of the set positive feedback. The conclusion of Theorem 3 was verified theoretically and experimentally. Meanwhile, from the change of the slope of the output curve, we can see that the positive feedback control can enhance some activities of the system, and speed up the process of some activities. Figure 6a shows the time-varying curve of ̂ in the How to realize positive feedback is the key of the APNF control model. Due to the existence of a symmetric catastrophe function, a small perturbation will cause the positive parameters to change to negative parameters. According to Theorem 3, the negative feedback system with negative parameters is equivalent to positive feedback. It is necessary to further understand Theorem 3, which is of great significance for understanding the nature of APNF. Therefore, before simulating the APNF control model, we performed the equivalent experiment of negative feedback.

Example 1.
In addition to proving Theorem 3 theoretically, we also set up two experiments to verify the relevant conclusions. The controlled object is the system described by (59). In order to show that the positive feedback proposed above can enhance some activities, the consistency of the two strategies is shown when the output is infinite. One of the experimental control strategies is the PID control, described in (50), [24] gives a set of PID control parameters with good effect for (59). Here, we take the opposite number as the control parameters, and the parameter selection is k p = −4.0, k i = −10.0, k d = −0.001, which represents the influence of negative parameters on the system under the condition of negative feedback. The control strategy of another experiment is where u(t) is a positive feedback control and w ϑ (t), w τ (t) and w φ (t) are updated iteratively according to (52), (56), and (57), in which the initial parameters are w ϑ (t) = 4.0, w τ (t) = 10.0, w φ (t) = 0.001. Figure 5 shows the comparison curve of PID control with negative gain and the corresponding equivalent positive feedback step response according to Theorem 3. The purple solid line represents the step response of the PID control strategy in the case of negative parameters, and the dotted line represents the step response of equivalent positive feedback. It can be seen in Figure 5 that the two curves coincide, which indicates that the output result of the negative parameter system under negative feedback is consistent with that of the set positive feedback. The conclusion of Theorem 3 was verified theoretically and experimentally. Meanwhile, from the change of the slope of the output curve, we can see that the positive feedback control can enhance some activities of the system, and speed up the process of some activities. Figure 6a shows the time-varying curve of w ϑ in the corresponding positive feedback control strategy. The large graph shows the parameter variation of 10 s, and the subgraph shows the parameter variation of 2-8 s. It can be seen in the graph that, according to the adaptive tuning of (52), w ϑ finally converges to 4.0. Figure 6b shows the time-varying curve of w τ in the corresponding positive feedback control strategy. It can be seen in the said figure that w τ finally converges to 10.0 according to the adaptive tuning of (57), and w φ remained unchanged during the training (0.001).
corresponding positive feedback control strategy. The large graph shows the parameter variation of 10 s, and the subgraph shows the parameter variation of 2-8 s. It can be seen in the graph that, according to the adaptive tuning of (52), ̂ finally converges to 4.0. Figure 6b shows the time-varying curve of ̂ in the corresponding positive feedback control strategy. It can be seen in the said figure that ̂ finally converges to 10.0 according to the adaptive tuning of (57), and ̂ remained unchanged during the training (0.001). Through example 1, we have proven the correctness of Theorem 3 in the experimental aspect. Now, we further simulate and analyze the APNF control model to verify the effectiveness of the proposed model. Example 2. The APNF control model proposed in this paper is simulated, and the control object is still the control system described by (59). The simulation results are compared and analyzed with the results of other control strategies.
We deal with the APNF control strategy in a discrete way, and the sampling time is 0.01 s. Table 1 shows the parameter settings in the APNF control system. According to the data in Table 1, the APNF model is established and added to the system for control. The 0.02 M step signal is inputted into the system as the input signal. The performance response curve is shown in Figures 7a, 8a and 9a. The error curve of the APNF performance response output and input with time is shown in Figures 7b, 8b and 9b. The response speed and overshoot of the system are important criteria to judge the performance of the variation of 10 s, and the subgraph shows the parameter variation of 2-8 s. It can be seen in the graph that, according to the adaptive tuning of (52), ̂ finally converges to 4.0. Figure 6b shows the time-varying curve of ̂ in the corresponding positive feedback control strategy. It can be seen in the said figure that ̂ finally converges to 10.0 according to the adaptive tuning of (57), and ̂ remained unchanged during the training (0.001). Through example 1, we have proven the correctness of Theorem 3 in the experimental aspect. Now, we further simulate and analyze the APNF control model to verify the effectiveness of the proposed model. Example 2. The APNF control model proposed in this paper is simulated, and the control object is still the control system described by (59). The simulation results are compared and analyzed with the results of other control strategies.
We deal with the APNF control strategy in a discrete way, and the sampling time is 0.01 s. Table 1 shows the parameter settings in the APNF control system. According to the data in Table 1, the APNF model is established and added to the system for control. The 0.02 M step signal is inputted into the system as the input signal. The performance response curve is shown in Figures 7a, 8a and 9a. The error curve of the APNF performance response output and input with time is shown in Figures 7b, 8b and 9b. The response speed and overshoot of the system are important criteria to judge the performance of the Through example 1, we have proven the correctness of Theorem 3 in the experimental aspect. Now, we further simulate and analyze the APNF control model to verify the effectiveness of the proposed model. Example 2. The APNF control model proposed in this paper is simulated, and the control object is still the control system described by (59). The simulation results are compared and analyzed with the results of other control strategies.
We deal with the APNF control strategy in a discrete way, and the sampling time is 0.01 s. Table 1 shows the parameter settings in the APNF control system. According to the data in Table 1, the APNF model is established and added to the system for control. The 0.02 M step signal is inputted into the system as the input signal. The performance response curve is shown in Figures 7a, 8a and 9a. The error curve of the APNF performance response output and input with time is shown in Figures 7b, 8b and 9b. The response speed and overshoot of the system are important criteria to judge the performance of the controller. It can be seen in Figure 7 that APNF has a satisfactory control effect. The system converges to the desired position in a short time and reaches a stable state at about 1.3 s. Compared with 12 s, the response speed of the system is greatly improved, and there is no overshoot in the system, both of which meets the design requirements. In order to show the superiority of APNF model, we also performed some comparative experiments of the general controller. The PID control model was established according to (50), and appropriate relevant parameters were selected for simulation, in which the k p value was 4.0, the k i value was 10.0, and the k d value was 0.001. Figure 8 shows the response performance comparison curve of the APNF and other control models (PID, the genetic algorithm based PID (GA-PID), and the particle swarm optimization algorithm based PID (PSO-PID) under the same sampling time and input signal, and Figure 9 shows the response performance output and input error comparison curve of the APNF and other control models under the same sampling time and input signal. As can be seen from Figures 8 and 9, in terms of response speed, under the PID control strategy, the system needs more than 5.5 s to converge to the desired position, GA-PID needs about 1.8 s, and PSO-PID needs approximately 5 s. Although it also shortens the time to reach the stable state compared with 12 s without control, the response speed is still lower than APNF. In terms of overshoot, the three controllers have overshoot in varying degrees, among which PID overshoot is the largest, approximately 35%, GA-PID is approximately 5%, and PSO-PID is approximately 4.8%. In [24], fuzzy control is proposed for the system. The control object is the same as that in this paper, which can effectively improve the response speed, but 2.2 s is still needed for the system to reach the stable state, and the overshoot is 0. Readers interested in fuzzy control can read [24]. A comparison of the output results of the four models reveals that the APNF model not only has a faster system response speed, but also has no overshoot, which obviously has an effect and effectively saves time consumption. Table 2 shows the comparison results of five control strategies. controller. It can be seen in Figure 7 that APNF has a satisfactory control effect. The system converges to the desired position in a short time and reaches a stable state at about 1.3 s. Compared with 12 s, the response speed of the system is greatly improved, and there is no overshoot in the system, both of which meets the design requirements. In order to show the superiority of APNF model, we also performed some comparative experiments of the general controller. The PID control model was established according to (50), and appropriate relevant parameters were selected for simulation, in which the value was 4.0, the value was 10.0, and the value was 0.001. Figure 8 shows the response performance comparison curve of the APNF and other control models (PID, the genetic algorithm based PID (GA-PID), and the particle swarm optimization algorithm based PID (PSO-PID)) under the same sampling time and input signal, and Figure 9 shows the response performance output and input error comparison curve of the APNF and other control models under the same sampling time and input signal. As can be seen from Figures  8 and 9, in terms of response speed, under the PID control strategy, the system needs more than 5.5 s to converge to the desired position, GA-PID needs about 1.8 s, and PSO-PID needs approximately 5 s. Although it also shortens the time to reach the stable state compared with 12 s without control, the response speed is still lower than APNF. In terms of overshoot, the three controllers have overshoot in varying degrees, among which PID overshoot is the largest, approximately 35%, GA-PID is approximately 5%, and PSO-PID is approximately 4.8%. In [24], fuzzy control is proposed for the system. The control object is the same as that in this paper, which can effectively improve the response speed, but 2.2 s is still needed for the system to reach the stable state, and the overshoot is 0. Readers interested in fuzzy control can read [24]. A comparison of the output results of the four models reveals that the APNF model not only has a faster system response speed, but also has no overshoot, which obviously has an effect and effectively saves time consumption. Table 2 shows the comparison results of five control strategies.   controller. It can be seen in Figure 7 that APNF has a satisfactory control effect. The system converges to the desired position in a short time and reaches a stable state at about 1.3 s. Compared with 12 s, the response speed of the system is greatly improved, and there is no overshoot in the system, both of which meets the design requirements. In order to show the superiority of APNF model, we also performed some comparative experiments of the general controller. The PID control model was established according to (50), and appropriate relevant parameters were selected for simulation, in which the value was 4.0, the value was 10.0, and the value was 0.001. Figure 8 shows the response performance comparison curve of the APNF and other control models (PID, the genetic algorithm based PID (GA-PID), and the particle swarm optimization algorithm based PID (PSO-PID)) under the same sampling time and input signal, and Figure 9 shows the response performance output and input error comparison curve of the APNF and other control models under the same sampling time and input signal. As can be seen from Figures  8 and 9, in terms of response speed, under the PID control strategy, the system needs more than 5.5 s to converge to the desired position, GA-PID needs about 1.8 s, and PSO-PID needs approximately 5 s. Although it also shortens the time to reach the stable state compared with 12 s without control, the response speed is still lower than APNF. In terms of overshoot, the three controllers have overshoot in varying degrees, among which PID overshoot is the largest, approximately 35%, GA-PID is approximately 5%, and PSO-PID is approximately 4.8%. In [24], fuzzy control is proposed for the system. The control object is the same as that in this paper, which can effectively improve the response speed, but 2.2 s is still needed for the system to reach the stable state, and the overshoot is 0. Readers interested in fuzzy control can read [24]. A comparison of the output results of the four models reveals that the APNF model not only has a faster system response speed, but also has no overshoot, which obviously has an effect and effectively saves time consumption. Table 2 shows the comparison results of five control strategies.

The Control Method
Time to Steady State/s Overshoot Amount % PID control 5.5 35.0 GA-PID [25] 1.8 5.0 PSO-PID [26] 5.0 4.8 Fuzzy PID control [24] 2.2 0 APNF 1.3 0 Figure 10a shows the curve of ( ) changing with the system time in the APN model, in which the big picture is the parameter change within 8 s system training. T show the internal change rule more clearly, the subgraph of parameter change within 1 is added. After carefully study of Figure 10a, it was found that the change of the maximu impact factor ( ) does not rise or fall steadily, and does not converge to a certain valu when the system reaches a stable state. A sudden catastrophe occurs at every other tim period, however, showing a law of continuous rise of positive and negative absolute va ues. Figure 10b shows the parameter curve of ( ) with time within 1.2 s and 8 s, an Figure 10c shows the parameter curve of ( ) with time within 0.8 s and 8 s. At th same time, it can be seen in Figure 10 that ( ) and ( ) in (8) and (9) are bo numbers greater than a certain limited value, so it can be inferred that the hypothesis an conclusion mentioned in (46) are reasonable. Figure 11 shows the parameter curve ̂( ),̂( ),̂( ) with a time within 0.5 s and 8 s respectively. After careful study Figure 11, it was found that the value of parameter ̂( ) is always greater than 0, whi parameters ̂( ) and ̂( ) oscillate up and down around the 0-axis. This law can clearly observed from Figure 11b, but Figure 11c has some difficulties; therefore, we al display sign (̂( )) and sign (̂( )). Figure 12 shows the curve of sign (̂( )) and sig (̂( )) changing with the system time. The solid line represents sign (̂( )), and th dotted line represents sign (̂( )). It can be seen in Figure 12 that the two curves coincid   Figure 10a shows the curve of w ϑ (k) changing with the system time in the APNF model, in which the big picture is the parameter change within 8 s system training. To show the internal change rule more clearly, the subgraph of parameter change within 1 s is added. After carefully study of Figure 10a, it was found that the change of the maximum impact factor w ϑ (k) does not rise or fall steadily, and does not converge to a certain value when the system reaches a stable state. A sudden catastrophe occurs at every other time period, however, showing a law of continuous rise of positive and negative absolute values. Figure 10b shows the parameter curve of w τ (k) with time within 1.2 s and 8 s, and Figure 10c shows the parameter curve of w φ (k) with time within 0.8 s and 8 s. At the same time, it can be seen in Figure 10 that sc f wa (k) and sc f wb (k) in (8) and (9) are both numbers greater than a certain limited value, so it can be inferred that the hypothesis and conclusion mentioned in (46) are reasonable. Figure 11 shows the parameter curve of w ϑ (k), w τ (k), w φ (k) with a time within 0.5 s and 8 s respectively. After careful study of Figure 11, it was found that the value of parameter w ϑ (k) is always greater than 0, while parameters w τ (k) and w φ (k) oscillate up and down around the 0-axis. This law can be clearly observed from Figure 11b, but Figure 11c has some difficulties; therefore, we also display sign ( w τ (k)) and sign ( w φ (k)). Figure 12 shows the curve of sign ( w τ (k)) and sign ( w φ (k)) changing with the system time. The solid line represents sign ( w τ (k)), and the dotted line represents sign ( w φ (k)). It can be seen in Figure 12 that the two curves coincide, which indicates that the change law of the two curves at the same moment is the same. From Theorem 3 and its generalization, we successfully achieve the equivalence of positive and negative feedback by changing the parameters in only one framework, in which the negative feedback system with negative parameters is equivalent to the positive feedback system with positive parameters. Therefore, according to the change of parameters, under the action of the symmetric catastrophe function, the APNF model realizes the continuous alternating operation of positive and negative feedback, and acts on the control system. When the parameters w τ (k) and w φ (k) are positive, the system is a negative feedback system, and when the parameters are negative, the system is a positive feedback system. the negative feedback system with negative parameters is equivalent to the positive feedback system with positive parameters. Therefore, according to the change of parameters, under the action of the symmetric catastrophe function, the APNF model realizes the continuous alternating operation of positive and negative feedback, and acts on the control system. When the parameters ̂( ) and ̂( ) are positive, the system is a negative feedback system, and when the parameters are negative, the system is a positive feedback system.    The simulation results show that the APNF control scheme proposed in this pap can effectively improve the control efficiency of the system, and can make the system spond faster. The experiment also verified that the negative parameter system could equivalent to the positive feedback under the negative feedback. Hence, the simulat results confirm the effectiveness of the proposed scheme. The simulation results show that the APNF control scheme proposed in this paper can effectively improve the control efficiency of the system, and can make the system respond faster. The experiment also verified that the negative parameter system could be equivalent to the positive feedback under the negative feedback. Hence, the simulation results confirm the effectiveness of the proposed scheme.

Discussion
Through theory and experiments, we prove that the system with two different feedback modes, as a tunable motif, shows different states, and is stable when the relevant parameters change. Specifically, when the positive and negative conversion of relevant parameters occurs, the system will experience the transformation of negative feedback state and positive feedback state. As shown in Figure 12, the symbol changes of w τ (k) and w φ (k) are synchronous after 0.05 s, indicating that the system state is in one of the two states at a certain time, and becomes the other at the next time. In summary, the system with different feedback modes is a tunable motif such that the desirable dynamic behavior can be realized by tuning the system state.
We explain the equivalent form of positive feedback and negative feedback. At present, many researchers focus on a single feedback mode when setting up the control system, ignoring the possibility of the combination of positive feedback and negative feedback. Positive feedback quickly reaches the desired dynamic behavior, but does not maintain a steady state and the output goes to infinite, while negative feedback remains steady, but lags significantly. Compared with other general control methods, the focus of this paper is to use positive feedback to quickly reach the desired behavior, use negative feedback to suppress the uncontrollability of the output, and realize the adaptive transformation of the two states simultaneously. Our research shows that it is feasible for a controller to integrate multiple feedback methods, which is not limited to single direction control, and hopefully this work can bring some different inspiration to other researchers in related fields.
Note that the traditional controller based on optimization algorithm is based on stochastic process, which means that the system may require many times and a longer time to reach the optimal value or the controller is sometimes fail to converge on the basis of experience, relying on the researchers' prior knowledge, access to adequate and effective prior knowledge is a complex work for researchers, but APNF algorithm automatically adjusts relevant parameters by considering the current response of the system, and only needs to set appropriate initialization parameters. There are only two kinds of states involved in the APNF model: positive and negative feedback; however, we will research whether there are other states, such as states in between, in an attempt to improve the model so that the system can realize transitions in more than two states in the future. In addition, we also intend to extend the model to other fields, such as researching its effect on nonlinear systems.

Conclusions
This paper analyzes a control strategy that could lead the system realize different state transitions adaptively. On the basis idea of catastrophe theories' elements, the model of how to realize APNF in the control system was examined. In the APNF model, a symmetric catastrophe function is constructed to realize the critical transitions of negative and positive feedback. Meanwhile, a learning rule based on error and forward weight is established to calculate the impact factor. In addition, the convergence of APNF is proven according to the Lyapunov stability theory, and how the negative feedback system with negative parameters is equivalent to the positive feedback system is also proven. Two simulation examples show the effectiveness of the APNF model.