DCDC buck converter discrete sliding mode control algorithm based on improved fuzzy neural network
By improving the fuzzy neural network to optimize the parameters and initial network parameters of the discrete sliding mode controller, the problems of chattering and parameter dependence of the DC-DC converter in the discrete sliding mode control are solved, and more efficient output voltage tracking and System stability.
Patent Information
- Application Number
- CN202410469896.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-08-23
AI Technical Summary
In the discrete sliding mode control of the DC-DC converter, the state variables are difficult to converge to the equilibrium point. Repeatedly crossing the sliding mode surface causes chattering. Moreover, the fuzzy RBF neural network has strong dependence on the initial parameters and is easy to fall into the local optimum, lacking reasonable control. Fuzzy rule determination method.
An improved fuzzy neural network is used to design a discrete sliding mode controller, the discrete reaching law parameters β and ε are optimized through the fuzzy RBF neural network, and the initial network parameters are optimized using an improved genetic algorithm to build a 4-layer network structure to improve control accuracy and stability.
It effectively overcomes the chattering problem in discrete sliding mode control, improves the convergence speed and control accuracy of the neural network by optimizing the initial parameters, and ensures system stability and output voltage tracking performance.
Smart Images

Figure CN118534774A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of electrical automation equipment, and in particular to a discrete sliding mode control algorithm of a DCDC buck converter based on an improved fuzzy neural network. Background Art
[0002] Due to its advantages of high reliability, high efficiency, low cost and simple structure, DC-DC converters have been widely used in aerospace, automobile manufacturing, telecommunications equipment and other industrial fields. As a typical switching nonlinear system, DC-DC converters have high requirements on the performance and robustness of the voltage tracking controller.
[0003] Discrete sliding mode control is a special nonlinear digital control algorithm that achieves the control target by controlling the state quantity to move along a specific trajectory. It has the advantages of simple physical implementation and strong robustness, and is often used to construct the output voltage tracking controller of the DC-DC converter. However, due to the switching of the control quantity, the discrete sliding mode control makes it difficult for the system state to converge to the equilibrium point after reaching the sliding surface, and it will repeatedly cross the sliding surface, thereby generating chattering and affecting the control performance. In addition, although the fuzzy RBF (Radial Basis Function) neural network has the advantages of both fuzzy logic and RBF neural network, and can handle nonlinear optimization and fuzzy problems well, its performance is highly dependent on the initial network parameters. Improper selection of the initial network parameters will cause the neural network to converge slowly, easily fall into the local optimum, and there is no reasonable method to determine the fuzzy rules. Summary of the invention
[0004] The object of the present invention is to provide a discrete sliding mode control algorithm for a DCDC buck converter based on an improved fuzzy neural network to solve the problems in the background technology.
[0005] To solve the above technical problems, the present invention provides a discrete sliding mode control algorithm for a DCDC buck converter based on an improved fuzzy neural network, comprising the following steps:
[0006] Step 1: Build a DCDC buck converter voltage tracking error system;
[0007] Step 2: Design a discrete sliding mode controller based on fuzzy neural network;
[0008] Step 3: Optimize RBF neural network parameters based on improved genetic algorithm.
[0009] In one embodiment, step 1 comprises:
[0010] For the DCDC buck converter, the state averaging method is used to construct the following ideal state space equation:
[0011]
[0012] where v o ,i L They are the average output voltage and the average inductor current, v in is the input voltage value, R is the load resistance value, L is the inductance value, C is the capacitance value, and the duty cycle μ∈[0,1] is the control quantity of the system, which is used to drive the signal;
[0013] The expected output voltage is v r The output voltage tracking error is expressed as e1 = v o -v r ; In order to facilitate calculation, a new error state quantity is defined The error system is constructed as follows:
[0014]
[0015] in Respectively represent v r The first and second derivatives of .
[0016] In one embodiment, before step 2, the method further includes: discretizing the system;
[0017] Through Euler discretization, system (2) is transformed into the following discretized system:
[0018] e(k+1)=Ae(k)+Bu(k) (3)
[0019] in h is the sampling period.
[0020] In one embodiment, step 2 comprises:
[0021] The traditional Gao discrete reaching law is:
[0022] s(k+1)=(1-qh)s(k)-εhsgn(s(k)) (4)
[0023] Where ε>0, q>0 and qh<1, h is the sampling period; in order to overcome the insufficient steady-state performance of formula (4), the following discrete reaching law is adopted:
[0024] s(k+1)=(1-qh)s(k)-α(s(k))εhsgn(s(k)) (5)
[0025] Where α(s(k)) is an adaptive term, 0<β<1;
[0026]
[0027] From formula (6), we can get: When , the improved discrete reaching law is the traditional reaching law (4), which has good dynamic performance;
[0028] when When , the improved reaching law is:
[0029] s(k+1)=βs(k) (7)
[0030] Formula (7) shows that the reaching law formula (6) reaches the switching surface After the neighborhood, the sliding mode motion trajectory becomes a motion with decreasing amplitude, which does not cross and infinitely approaches the switching surface, and the system is stable at the origin.
[0031] In one embodiment, a fuzzy RBF neural network is used to dynamically optimize the parameters β and ε of the discrete reaching law in equation (5);
[0032] The fuzzy RBF neural network consists of a 4-layer network structure, namely input layer, fuzzification layer, fuzzy reasoning layer, and output layer; the number of network nodes selected is 2, 7, 49, and 2 respectively; the network has two input quantities, namely e1(k) and e2(k), and the output quantities are β(k) and ε(k);
[0033] The first layer: the input layer has 2 nodes, which are responsible for outputting the received input e1(k), e2(k) to the next layer. The output of this layer is:
[0034] f i|1 (k)=ei(k) (8)
[0035] Where i∈{1,2} represents the input node;
[0036] The second layer: the fuzzification layer, which has 7 nodes, is responsible for fuzzifying the determined quantity and then calculating the corresponding membership degree. The output of this layer is:
[0037]
[0038] Where i represents the input node, j∈{1,2,3,4,5,6,7} represents the node of the fuzzification layer, and b ij ,c ij represent the standard deviation and mean of the membership function respectively;
[0039] The third layer: fuzzy reasoning layer, has 49 nodes, responsible for implementing fuzzy rules through fuzzy operations. The output of each node is:
[0040]
[0041] Where n∈N={1,2,3,…49} represents the nodes of the fuzzy reasoning layer, j1,j2∈j and j1≠j2 represent the nodes of the fuzzification layer;
[0042] The fourth layer: output layer, has 2 nodes, responsible for clarifying the blur amount, the output of each node is:
[0043]
[0044] Where m∈{1,2} represents the output layer node, w nm (k) represents the connection weight between the fuzzy inference layer node n and the output layer m.
[0045] In one embodiment, the parameters that need to be updated in the fuzzy RBF neural network include the weight matrix w nm (k), standard deviation and mean b of the membership function ij (k),c ij (k), the incremental learning rule is used for adjustment, and the objective function is:
[0046]
[0047] According to the gradient optimization algorithm, the updated weight matrix w is obtained nm (k+1), standard deviation and mean b of the membership function ij (k+1),c ij (k+1) is:
[0048]
[0049]
[0050]
[0051] Where k is the moment in the discrete state, η∈[0,1] is the learning rate, and γ∈[0,1] is the inertia coefficient;
[0052] Use a linear switching function:
[0053] s(k)=Ce(k) (16)
[0054] From (16), we can obtain:
[0055] s(k+1)=Ce(k+1) (17)
[0056] Substituting (3) into (17), we obtain:
[0057] s(k+1)=CAe(k)+CBu(k) (18)
[0058] Combining equations (5) and (18), the sliding mode control law is:
[0059] u(k)=(CB) -1 [(1-qh)s(k)-α(s(k))ε(k)hsgn(s(k))-CAe(k)] (19)
[0060] According to the above analysis, the algorithm steps of using fuzzy RBF neural network to optimize discrete reaching law parameters β(k) and ε(k) are as follows:
[0061] Step 2.1: Set the number of nodes in each layer of the fuzzy RBF neural network and initialize the parameters η, γ, w nm (0), b ij (0), c ij (0);
[0062] Step 2.2: Calculate the input and output of each layer of the fuzzy RBF neural network;
[0063] Step 2.3: Calculate the output e1(k), e2(k) of the discrete error system (3) at time k and the objective function value E(k) of the fuzzy RBF neural network, calculate the control variable u(k), and update the state variables of the discrete error system (3);
[0064] Step 2.4: Update the parameter w according to equations (13), (14), and (15) nm (k+1),b ij (k+1),c ij (k+1);
[0065] Step 2.5: At iteration time k=k+1, if the error accuracy meets the requirement or the number of loop iterations meets the requirement, the results β(k) and ε(k) are output, otherwise return to Step 2.2 to perform calculation at the next moment.
[0066] In one embodiment, step 3 comprises:
[0067] Using improved genetic algorithm to optimize the initial value w of the fuzzy RBF neural network structure parameters nm (0),b ij (0),c ij (0) to improve the generalization ability and accuracy of the model;
[0068] The traditional genetic algorithm is improved by using the chaos algorithm, and the individuals with small fitness values are optimized by chaos. The process of improving the genetic algorithm is as follows:
[0069] Step 3.1: Initialization operation: Initialize the population size to M, the chaotic optimization step length control factor to φ, and the maximum number of iterations to G; randomly generate the initial population and encode the individuals using real number coding;
[0070] Step 3.2: Determine whether an individual is precocious: Calculate the fitness function values of all individuals, and determine whether they are precocious based on the fitness function values. The determination is based on the following:
[0071] Θ=f k max -f k ave (20)
[0072] where f k max 、f k ave Respectively represent the maximum and mean values of the fitness function of the k-th generation population;
[0073] Step 3.3: Determine whether the individual should be optimized by chaos: When the number of evolutions exceeds G / 2, the population is optimized by chaos; otherwise, jump to Step 3.4 for individual selection;
[0074] Step 3.4: Individual selection: Combined with chaos optimization, the selection operation is performed. The calculation expression of the new individual is:
[0075] X' n =(1-ξλ)X n +(-1) n ξλX n / ||X n || (21)
[0076] Where ξ is the artificial degradation factor, λ is the chaos perturbation operator, and X n is the individual to be optimized;
[0077] Step 3.5: Crossover mutation: In the crossover mutation operation, improve the adaptive crossover probability P c And the mutation probability P m as follows:
[0078]
[0079]
[0080] Where P c max , P c min represent the maximum and minimum values of the crossover operator, respectively. Respectively represent the maximum and minimum values of the mutation operator, fmax 、f ave Respectively represent the maximum and average values of the population fitness function; crossover and mutation operations are expressed as follows:
[0081]
[0082] X″ n =(1-δ2)X n +(-1) n δ2X n / ||X n || (25)
[0083] Among them, δ1 and δ2 represent the random numbers generated by the genetic algorithm and the chaotic algorithm respectively, and X′ n+1 Represents the new individual generated in the next iteration, X″ n Represents the new individuals generated after two chaotic optimizations;
[0084] Step 3.6: Continue iterating and optimizing until the maximum number of generations is reached or the fitness function value is less than the set value, then the optimal individual is obtained; otherwise, go to Step 3.2;
[0085] Step 3.7: Decompose the optimal individual into the initial value w of the fuzzy RBF neural network structure parameter nm (0),b ij (0),c ij (0).
[0086] The present invention provides a DCDCbuck converter discrete sliding mode control algorithm based on an improved fuzzy neural network, which tracks and controls the desired output voltage and has the following beneficial effects:
[0087] (1) In view of the problem that the state quantity of the discrete sliding mode control system is difficult to converge to the equilibrium point after reaching the sliding mode surface, and will repeatedly cross the sliding mode surface, thereby generating chattering and affecting the control performance, the present invention can effectively overcome the chattering of the switching part of the traditional discrete sliding mode control by dynamically optimizing the parameters of the discrete sliding mode reaching law using a fuzzy RBF neural network;
[0088] (2) Considering that the fuzzy RBF neural network is highly dependent on the initial network parameters, improper selection of the initial network parameters may lead to slow convergence of the neural network, easy to fall into the local optimum, and no reasonable determination method for fuzzy rules. In this paper, an improved genetic algorithm is used to iteratively optimize the initial network parameters of the fuzzy RBF neural network to ensure control accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0089] Figure 1 This is a schematic diagram of a DC-DC buck converter circuit.
[0090] Figure 2 It is a flowchart of improving genetic algorithm to optimize RBF fuzzy neural network.
[0091] Figure 3 It is a control algorithm framework diagram proposed by the present invention. DETAILED DESCRIPTION
[0092] The following is a further detailed description of a discrete sliding mode control algorithm for a DCDCbuck converter based on an improved fuzzy neural network proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
[0093] The present invention provides a discrete sliding mode control algorithm for a DCDC buck converter based on an improved fuzzy neural network, comprising the following steps:
[0094] Step 1: Construction of the voltage tracking error system for the DCDC buck converter
[0095] For example Figure 1 For the DCDC buck converter shown in the figure, the following ideal state space equation can be constructed using the state averaging method:
[0096]
[0097] where v o ,i L They are the average output voltage and the average inductor current, v in is the input voltage value, R is the load resistance value, L is the inductance value, C is the capacitance value, and the duty cycle μ∈[0,1] is the control quantity of the system, which is used to drive the signal.
[0098] The expected output voltage is v r Then the output voltage tracking error can be expressed as e1 = v o -v r In order to facilitate calculation, a new error state quantity is defined: From this, the error system can be constructed as follows:
[0099]
[0100] in Respectively represent v r The first and second derivatives of .
[0101] In order to facilitate the design of discrete sliding mode controller, the system needs to be discretized first. Through Euler discretization, system (2) can be converted into the following discretized system:
[0102] e(k+1)=Ae(k)+Bu(k)(3)
[0103] in h is the sampling period.
[0104] Step 2: Design of discrete sliding mode controller based on fuzzy neural network
[0105] The traditional Gao discrete reaching law is:
[0106] s(k+1)=(1-qh)s(k)-εhsgn(s(k)) (4)
[0107] Where ε>0, q>0 and qh<1. Although equation (4) has good dynamic performance, its steady-state performance is obviously insufficient and needs to be improved. In order to overcome this deficiency, the following discrete reaching law is adopted:
[0108] s(k+1)=(1-qh)s(k)-α(s(k))εhsgn(s(k)) (5)
[0109] Where α(s(k)) is an adaptive term, 0<β<1.
[0110]
[0111] From formula (6), we can get: When , the improved discrete reaching law is the traditional reaching law (4), which has good dynamic performance. When , the improved reaching law is:
[0112] s(k+1)=βs(k) (7)
[0113] Formula (7) shows that the reaching law formula (6) reaches the switching surface After the neighborhood, the sliding mode motion trajectory becomes a motion with decreasing amplitude, which does not cross and infinitely approaches the switching surface. The system can be stable at the origin, and has both good dynamic performance of the traditional discrete reaching law and steady-state performance that is better than the traditional discrete reaching law.
[0114] For the discrete reaching law in formula (5), its parameters β and ε are usually fixed constants, and it is difficult to ensure the control accuracy at each moment. The fuzzy RBF neural network combines the logical reasoning ability of fuzzy control and the learning ability of neural network, which can effectively solve the optimization problem of multivariable and nonlinear complex systems. For this reason, the fuzzy RBF neural network is used to dynamically optimize the parameters β and ε of the discrete reaching law in formula (5).
[0115] The fuzzy RBF neural network used in the present invention is composed of a 4-layer network structure, namely an input layer, a fuzzification layer, a fuzzy reasoning layer, and an output layer. The number of network nodes selected is 2, 7, 49, and 2, respectively. The network has two input quantities, namely e1(k) and e2(k), and the output quantities are β(k) and ε(k).
[0116] The first layer: the input layer, which has 2 nodes, is responsible for outputting the received input e1(k), e2(k) to the next layer. The output of this layer is:
[0117] f i|1 (k) = e i (k) (8)
[0118] Where i∈{1,2} represents the input node.
[0119] The second layer: the fuzzification layer, which has 7 nodes, is responsible for fuzzifying the determined quantity and then calculating the corresponding membership degree. The output of this layer is:
[0120]
[0121] Where i represents the input node, j∈{1,2,3,4,5,6,7} represents the node of the fuzzification layer, and b ij ,c ij represent the standard deviation and mean of the membership function respectively.
[0122] The third layer: fuzzy reasoning layer, has 49 nodes, responsible for implementing fuzzy rules through fuzzy operations. The output of each node is:
[0123]
[0124] Where n∈N={1,2,3,…49} represents the nodes of the fuzzy reasoning layer, j1,j2∈j and j1≠j2 represent the nodes of the fuzzification layer.
[0125] The fourth layer: output layer, has 2 nodes, responsible for clarifying the blur amount, the output of each node is:
[0126]
[0127] Where m∈{1,2} represents the output layer node, w nm (k) represents the connection weight between the fuzzy inference layer node n and the output layer m.
[0128] The parameters that need to be updated in the fuzzy RBF neural network include the weight matrix w nm (k), standard deviation and mean b of the membership function ij (k),c ij (k), the incremental learning rule is used for adjustment, and the objective function is:
[0129]
[0130] According to the gradient optimization algorithm, the updated weight matrix w can be obtained nm (k+1), standard deviation and mean b of the membership function ij (k+1),c ij (k+1) is:
[0131]
[0132]
[0133]
[0134] Where k is the moment in the discrete state, η∈[0,1] is the learning rate, and γ∈[0,1] is the inertia coefficient.
[0135] Use a linear switching function:
[0136] s(k)=Ce(k) (16)
[0137] From (16), we can get:
[0138] s(k+1)=Ce(k+1) (17)
[0139] Substituting (3) into (17) we get:
[0140] s(k+1)=CAe(k)+CBu(k) (18)
[0141] Combining equations (5) and (18), we can obtain the sliding mode control law:
[0142] u(k)=(CB) -1 [(1-qh)s(k)-α(s(k))ε(k)hsgn(s(k))-CAe(k)] (19)
[0143] Based on the above analysis, the algorithm steps of using fuzzy RBF neural network to optimize discrete reaching law parameters β(k) and ε(k) are as follows:
[0144] Step 2.1: Set the number of nodes in each layer of the fuzzy RBF neural network and initialize the parameters η, γ, w nm (0), b ij (0), c ij (0);
[0145] Step 2.2: Calculate the input and output of each layer of the fuzzy RBF neural network;
[0146] Step 2.3: Calculate the output e1(k), e2(k) of the discrete error system (3) at time k and the objective function value E(k) of the fuzzy RBF neural network, calculate the control variable u(k), and update the state variables of the discrete error system (3);
[0147] Step 2.4: Update the parameter w according to equations (13), (14), and (15) nm (k+1),b ij (k+1),c ij (k+1);
[0148] Step 2.5: At iteration time k=k+1, if the error accuracy meets the requirement or the number of loop iterations meets the requirement, the results β(k) and ε(k) are output, otherwise return to Step 2.2 to perform calculation at the next moment.
[0149] Step 3: Optimize RBF neural network parameters based on improved genetic algorithm
[0150] In the specific implementation of the fuzzy RBF neural network, its structural parameter w nm (k),b ij (k),c ij (k) It is highly dependent on initial conditions. Improper selection of initial conditions may cause the neural network to converge slowly, fall into local optimality, and have no reasonable determination method for fuzzy rules, which may lead to redundant rules and limit its application. Therefore, an improved genetic algorithm is used to optimize the initial value w of the structural parameters of the fuzzy RBF neural network. nm (0),b ij (0),c ij (0) This improves the generalization ability and accuracy of the model. The algorithm flow is as follows: Figure 2 shown.
[0151] In view of the problem that the traditional genetic algorithm has a reduced search ability in the later stage and leads to premature convergence, the traditional genetic algorithm is improved by using a chaos algorithm. Chaotic optimization of individuals with small fitness values can not only enrich the population, but also reduce the number of evolutions, thereby speeding up the optimization process. The improved genetic algorithm process is as follows:
[0152] Step 3.1: Initialization operation: Initialize the population size to M, the chaos optimization step length control factor to φ, and the maximum number of iterations to G. Generate the initial population randomly, and encode the individuals using real number coding.
[0153] Step 3.2: Determine whether an individual is precocious: Calculate the fitness function values of all individuals, and determine whether they are precocious based on the fitness function values. The determination is based on the following:
[0154]
[0155] where f k max 、f k ave They represent the maximum and mean values of the fitness function of the kth generation population respectively.
[0156] Step 3.3: Determine whether the individual should be subjected to chaotic optimization: When the number of evolutions exceeds G / 2, the population is subjected to chaotic optimization; otherwise, jump to Step 3.4 for individual selection.
[0157] Step 3.4: Individual selection: Combined with chaos optimization, the selection operation is performed. The calculation expression of the new individual is:
[0158] X' n =(1-ξλ)X n +(-1) n ξλX n / ||X n || (21)
[0159] Where ξ is the artificial degradation factor, λ is the chaos perturbation operator, and X n is the individual to be optimized.
[0160] Step 3.5: Crossover mutation: In the crossover mutation operation, the present invention improves the adaptive crossover probability P c And the mutation probability P m as follows:
[0161]
[0162]
[0163] Where P c max , P c min represent the maximum and minimum values of the crossover operator, respectively. Respectively represent the maximum and minimum values of the mutation operator, f max 、f ave Respectively represent the maximum and average values of the population fitness function. The crossover and mutation operations can be expressed as follows:
[0164]
[0165] X″ n =(1-δ2)X n +(-1) n δ2X n / ||X n || (25)
[0166] Among them, δ1 and δ2 represent the random numbers generated by the genetic algorithm and the chaotic algorithm respectively, and X′ n+1 Represents the new individual generated in the next iteration, X″ n Represents the new individuals generated after two chaotic optimizations.
[0167] Step 3.6: Continue iterating and optimizing until the maximum number of generations is reached or the fitness function value is less than the set value, then the optimal individual can be obtained. Otherwise, go to Step 3.2.
[0168] Step 3.7: Decompose the optimal individual into the initial value w of the fuzzy RBF neural network structure parameter nm (0),b ij (0),c ij (0).
[0169] Combining steps 1, 2 and 3, the discrete sliding mode control algorithm of the DCDCbuck converter based on the improved fuzzy neural network proposed by the present invention can be obtained. The specific framework diagram is as follows: Figure 3 shown.
[0170] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A discrete sliding mode control algorithm for DCDC buck converter based on improved fuzzy neural network, characterized in that: The steps include: Step 1: Build a DCDC buck converter voltage tracking error system; Step 2: Design a discrete sliding mode controller based on fuzzy neural network; Step 3: Optimize RBF neural network parameters based on improved genetic algorithm.
2. The DCDC buck converter discrete sliding mode control algorithm based on improved fuzzy neural network as claimed in claim 1, characterized in that: The step 1 comprises: For the DCDC buck converter, the state averaging method is used to construct the following ideal state space equation: where v o ,i L They are the average output voltage and the average inductor current, v in is the input voltage value, R is the load resistance value, L is the inductance value, C is the capacitance value, and the duty cycle μ∈[0,1] is the control quantity of the system, which is used to drive the signal; The expected output voltage is v r The output voltage tracking error is expressed as e1 = v o -v r ; In order to facilitate calculation, a new error state quantity is defined The error system is constructed as follows: in Respectively represent v r The first and second derivatives of .
3. The DCDCbuck converter discrete sliding mode control algorithm based on improved fuzzy neural network as claimed in claim 2 is characterized in that: Before step 2, the method further includes: discretizing the system; Through Euler discretization, system (2) is transformed into the following discretized system: e(k+1)=Ae(k)+Bu(k)(3) in h is the sampling period.
4. The DCDCbuck converter discrete sliding mode control algorithm based on improved fuzzy neural network as claimed in claim 3 is characterized in that: The step 2 comprises: The traditional Gao discrete reaching law is: s(k+1)=(1-qh)s(k)-εhsgn(s(k)) (4) Where ε>0, q>0 and qh<1, h is the sampling period; in order to overcome the insufficient steady-state performance of equation (4), the following discrete reaching law is adopted: s(k+1)=(1-qh)s(k)-α(s(k))εhsgn(s(k)) (5) Where α(s(k)) is an adaptive term, 0<β<1; From formula (6), we can get: When , the improved discrete reaching law is the traditional reaching law (4), which has good dynamic performance; when When , the improved reaching law is: s(k+1)=βs(k) (7) Formula (7) shows that the reaching law formula (6) reaches the switching surface After the neighborhood, the sliding mode motion trajectory becomes a motion with decreasing amplitude, which does not cross and infinitely approaches the switching surface, and the system is stable at the origin.
5. The DCDCbuck converter discrete sliding mode control algorithm based on improved fuzzy neural network as claimed in claim 4 is characterized in that: The fuzzy RBF neural network is used to dynamically optimize the parameters β and ε of the discrete reaching law in equation (5); The fuzzy RBF neural network consists of a 4-layer network structure, namely input layer, fuzzification layer, fuzzy reasoning layer, and output layer; the number of network nodes selected is 2, 7, 49, and 2 respectively; the network has two input quantities, namely e1(k) and e2(k), and the output quantities are β(k) and ε(k); The first layer: the input layer has 2 nodes, which are responsible for outputting the received input e1(k), e2(k) to the next layer. The output of this layer is: f i|1 (k)=e i (k) (8) Where i∈{1,2} represents the input node; The second layer: the fuzzification layer, which has 7 nodes, is responsible for fuzzifying the determined quantity and then calculating the corresponding membership degree. The output of this layer is: Where i represents the input node, j∈{1,2,3,4,5,6,7} represents the node of the fuzzification layer, and b ij ,c ij represent the standard deviation and mean of the membership function respectively; The third layer: fuzzy reasoning layer, has 49 nodes, responsible for implementing fuzzy rules through fuzzy operations. The output of each node is: Where n∈N={1,2,3,...49} represents the nodes of the fuzzy reasoning layer, j1,j2∈j and j1≠j2 represent the nodes of the fuzzification layer; The fourth layer: output layer, has 2 nodes, responsible for clarifying the blur amount, the output of each node is: Where m∈{1,2} represents the output layer node, w nm (k) represents the connection weight between the fuzzy inference layer node n and the output layer m.
6. The DCDCbuck converter discrete sliding mode control algorithm based on improved fuzzy neural network as claimed in claim 5, characterized in that: The parameters that need to be updated in the fuzzy RBF neural network include the weight matrix w nm (k), standard deviation and mean b of the membership function ij (k),c ij (k), the incremental learning rule is used for adjustment, and the objective function is: According to the gradient optimization algorithm, the updated weight matrix w is obtained nm (k+1), standard deviation and mean b of the membership function ij (k+1),c ij (k+1) is: Where k is the moment in the discrete state, η∈[0,1] is the learning rate, and γ∈[0,1] is the inertia coefficient; Use a linear switching function: s(k)=Ce(k) (16) From (16), we can obtain: s(k+1)=Ce(k+1) (17) Substituting (3) into (17), we obtain: s(k+1)=CAe(k)+CBu(k) (18) Combining equations (5) and (18), the sliding mode control law is: u(k)=(CB) -1 [(1-qh)s(k)-α(s(k))ε(k)hsgn(s(k))-CAe(k)] (19) According to the above analysis, the algorithm steps of using fuzzy RBF neural network to optimize discrete reaching law parameters β(k) and ε(k) are as follows: Step 2.1: Set the number of nodes in each layer of the fuzzy RBF neural network and initialize the parameters η, γ, w nm (0), b ij (0), c ij (0); Step 2.2: Calculate the input and output of each layer of the fuzzy RBF neural network; Step 2.3: Calculate the output e1(k), e2(k) of the discrete error system (3) at time k and the objective function value E(k) of the fuzzy RBF neural network, calculate the control variable u(k), and update the state variables of the discrete error system (3); Step 2.4: Update the parameter w according to equations (13), (14), and (15) nm (k+1),b ij (k+1),c ij (k+1); Step 2.5: At iteration time k=k+1, if the error accuracy meets the requirement or the number of loop iterations meets the requirement, the results β(k) and ε(k) are output, otherwise return to Step 2.2 to perform calculation at the next moment.
7. The DCDCbuck converter discrete sliding mode control algorithm based on improved fuzzy neural network as claimed in claim 6, characterized in that: The step 3 comprises: Using improved genetic algorithm to optimize the initial value w of the fuzzy RBF neural network structure parameters nm (0),b ij (0),c ij (0) to improve the generalization ability and accuracy of the model; The traditional genetic algorithm is improved by using the chaos algorithm, and the individuals with small fitness values are optimized by chaos. The process of improving the genetic algorithm is as follows: Step 3.1: Initialization operation: Initialize the population size to M, the chaotic optimization step length control factor to φ, and the maximum number of iterations to G; randomly generate the initial population and encode the individuals using real number coding; Step 3.2: Determine whether an individual is precocious: Calculate the fitness function values of all individuals, and determine whether they are precocious based on the fitness function values. The determination is based on the following: where f k max 、f k ave Respectively represent the maximum and mean values of the fitness function of the k-th generation population; Step 3.3: Determine whether the individual should be optimized by chaos: When the number of evolutions exceeds G / 2, the population is optimized by chaos; otherwise, jump to Step 3.4 for individual selection; Step 3.4: Individual selection: Combined with chaos optimization, the selection operation is performed. The calculation expression of the new individual is: X' n =(1-xλ)X n +(-1) n xλX n / ||X n || (21) Where ξ is the artificial degradation factor, λ is the chaos perturbation operator, and X n is the individual to be optimized; Step 3.5: Crossover mutation: In the crossover mutation operation, improve the adaptive crossover probability P c And the mutation probability P m as follows: Where P c max , P c min represent the maximum and minimum values of the crossover operator, respectively. Respectively represent the maximum and minimum values of the mutation operator, f max 、f ave Respectively represent the maximum and average values of the population fitness function; crossover and mutation operations are expressed as follows: X″ n =(1-δ2)X n +(-1) n δ2X n / ||X n || (25) Among them, δ1 and δ2 represent the random numbers generated by the genetic algorithm and the chaotic algorithm respectively, and X′ n+1 Represents the new individual generated in the next iteration, X″ n Shows the new individuals generated after two chaotic optimizations; Step 3.6: Continue iterating and optimizing until the maximum number of generations is reached or the fitness function value is less than the set value, then the optimal individual is obtained; otherwise, go to Step 3.2; Step 3.7: Decompose the optimal individual into the initial value w of the fuzzy RBF neural network structure parameter nm (0),b ij (0),c ij (0).
