A dual-cylinder control method and system based on fuzzy neural network PID algorithm
Through the dual-cylinder control method based on fuzzy neural network and BP neural network, the problems of long response time and low simulation accuracy of the straddle-type monorail train test bench are solved, and high-precision and high-stability dual-cylinder control is achieved, which satisfies the requirements for Accurate simulation requirements for different working conditions.
Patent Information
- Application Number
- CN202410890650.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-04
AI Technical Summary
When the excitation source inputs a step signal in the existing straddle-type monorail train test bench, the traditional PID control method results in a long response time of the dual hydraulic cylinder system, large overshoot, poor simulation accuracy and stability, and cannot accurately simulate different tasks. Vibration and impact requirements caused by track irregularities.
A dual-cylinder synchronous control module based on fuzzy neural network is used to adjust the displacement deviation parameters of the hydraulic cylinder, and the output of the single cylinder is adjusted through the BP neural network algorithm to improve the response speed and steady-state recovery speed. A fuzzy neural network-based Dual-cylinder control method of network PID algorithm.
It significantly improves the accuracy and stability of dual-cylinder control, meets the requirements for accurately simulating vibration and impact caused by track irregularities under different working conditions, and improves the simulation accuracy and stability of the straddle-type monorail train test bench.
Smart Images

Figure CN118426296B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic control, and in particular to a dual-cylinder control method and system based on a fuzzy neural network PID algorithm. Background Art
[0002] With the rapid development of rail trains, the requirements for the operating conditions of rail trains are also increasing. In order to ensure that rail trains can operate normally under various operating conditions during operation, trains must be tested on test benches during the design and factory stage, especially straddle-type monorail trains. Due to their structural characteristics, the verification of their operating conditions requires more precision and stability.
[0003] The existing straddle-type monorail train test bench uses dual hydraulic cylinders to simulate the excitation output of a single train wheel to meet the output force required for the straddle-type monorail train working condition test. However, when the excitation source inputs a step signal, the traditional PID control method will have problems such as unstable control performance and poor followability, resulting in a long response time and large overshoot of the dual hydraulic cylinder system. This makes the test bench have low simulation accuracy and poor simulation stability, and cannot meet the requirements of accurately simulating the vibration and impact caused by track unevenness under different working conditions.
[0004] Therefore, how to design a synchronous control method for the dual hydraulic cylinders of the test bench to improve the accuracy and stability of the test bench simulation has become an urgent problem to be solved. Summary of the Invention
[0005] Based on this, the purpose of the present invention is to provide a dual-cylinder control method and system based on a fuzzy neural network PID algorithm. By designing a dual-cylinder synchronous control module based on a fuzzy neural network, the displacement deviation parameters of the two cross-coupled hydraulic cylinders are error-adjusted, thereby further reducing the deviation of the dual-cylinder synchronous output and greatly improving the synchronization control accuracy. A single-cylinder output control module based on a BP neural network algorithm is also designed to adjust the output of each individual hydraulic cylinder so that the corresponding hydraulic cylinder can quickly restore the steady-state output state, further improving the response speed of the output adjustment and the steady-state recovery speed, greatly improving the efficiency and stability of the single-cylinder control, and solving the problem of not being able to meet the requirements of accurate simulation of vibration and impact caused by track unevenness under different working conditions. The present invention greatly improves the simulation accuracy and stability of the straddle-type monorail train test bench.
[0006] The present invention proposes a dual-cylinder control method based on a fuzzy neural network PID algorithm, comprising:
[0007] Obtain the displacement deviation parameters of the two hydraulic cylinders and perform deviation judgment;
[0008] If it is determined that the displacement deviation parameter is greater than a preset deviation threshold, performing dual-cylinder error adjustment on the displacement deviation parameter according to a fuzzy neural network algorithm to obtain an error adjustment parameter;
[0009] Single-cylinder output adjustment is performed on the expected output parameter, actual output parameter and the error adjustment parameter of each hydraulic cylinder according to the BP neural network algorithm to obtain the single-cylinder output first control parameter, and the output of the corresponding hydraulic cylinder is adjusted according to the single-cylinder output first control parameter.
[0010] In summary, according to the above-mentioned dual-cylinder control method based on the fuzzy neural network PID algorithm, by designing a dual-cylinder synchronous control module based on the fuzzy neural network, the displacement deviation parameters of the two cross-coupled hydraulic cylinders are adjusted for error, thereby further reducing the deviation of the dual-cylinder synchronous output and greatly improving the synchronization control accuracy. A single-cylinder output control module based on the BP neural network algorithm is also designed to adjust the output of each individual hydraulic cylinder so that the corresponding hydraulic cylinder can quickly restore the steady-state output state, further improving the response speed of the output adjustment and the steady-state recovery speed, greatly improving the efficiency and stability of the single-cylinder control, and solving the problem of not being able to meet the requirements of accurate simulation of vibration and impact caused by track unevenness under different working conditions. The present invention greatly improves the simulation accuracy and stability of the straddle-type monorail train test bench. Specifically, the displacement deviation parameters of the two hydraulic cylinders are obtained and the deviation judgment is performed, and the degree of deviation of the dual-cylinder output is effectively judged to quickly respond to the deviation adjustment of the dual-cylinder output. If it is determined that the displacement deviation parameter is greater than the preset deviation threshold, the displacement deviation parameter is subjected to dual-cylinder error adjustment according to the fuzzy neural network algorithm to obtain the error adjustment parameter, further reducing the deviation of the dual-cylinder synchronous output and greatly improving the synchronous control accuracy. The expected output parameter, actual output parameter and the error adjustment parameter of each hydraulic cylinder are subjected to single-cylinder output adjustment according to the BP neural network algorithm to obtain the single-cylinder output first control parameter, and the output of the corresponding hydraulic cylinder is adjusted according to the single-cylinder output first control parameter, further improving the response speed of the output adjustment and the steady-state recovery speed, greatly improving the efficiency and stability of the single-cylinder control, and solving the problem of not being able to meet the requirements of accurate simulation of vibration and impact caused by track unevenness under different working conditions. The present invention greatly improves the simulation accuracy and stability of the straddle-type monorail train test bench.
[0011] Furthermore, the method further comprises:
[0012] If it is determined that the displacement deviation parameter is less than or equal to the preset deviation threshold, the expected output parameter, actual output parameter and the displacement deviation parameter of each hydraulic cylinder are adjusted for single-cylinder output according to the BP neural network algorithm to obtain the second control parameter of the single-cylinder output, and the output of the corresponding hydraulic cylinder is adjusted according to the second control parameter of the single-cylinder output.
[0013] Furthermore, the fuzzy neural network specifically includes:
[0014] The fuzzy neural network includes an input layer, a fuzzification layer, a fuzzy reasoning layer and an output layer. The input layer is provided with two neuron nodes corresponding to displacement deviation parameters, the fuzzification layer is provided with fourteen neuron nodes corresponding to membership values, the fuzzy reasoning layer is provided with forty-nine neuron nodes corresponding to fuzzy rules, and the output layer is provided with three neuron nodes corresponding to parameter changes.
[0015] Furthermore, the fuzzy neural network algorithm specifically includes:
[0016] The fuzzy neural network input layer obtains the displacement deviation in the displacement deviation parameter and displacement deviation rate , the input layer is defined as follows:
[0017]
[0018] in, I represents the input of the network layer, O represents the output of the network layer, Represents the input value of the input layer, the input value includes the displacement deviation in the displacement deviation parameter and displacement deviation rate , i represents the input node, i =1,2, (·) indicates the network layer;
[0019] Fuzzy neural network fuzzification layer for displacement deviation and displacement deviation rate Perform fuzzification processing, and the fuzzification layer is defined as follows:
[0020]
[0021] in, j The fuzzy set identifier representing the output value of the computing node, represents the exponential function for calculating the membership function, represents the center of the membership function, Indicates the width of the membership function;
[0022] The fuzzy reasoning layer of the fuzzy neural network performs fuzzy rule matching, and the fuzzy reasoning layer is defined as follows:
[0023]
[0024] in, l =1,2,3,...,49, Indicates the applicability of fuzzy rules;
[0025] The fuzzy neural network output layer solves the fuzzy quantity, and the output layer is defined as follows:
[0026]
[0027] in, h =1,2,3, Represents the network output, Represents the connection weight between the fuzzification layer and the output layer;
[0028] To obtain the error adjustment parameter, the error adjustment parameter is defined as follows:
[0029]
[0030] in, represents the proportional gain parameter, represents the integral gain parameter, Represents the differential gain parameter.
[0031] Furthermore, after the step of obtaining the error adjustment parameter, the following steps are further included:
[0032] The fuzzy neural network weight optimization is performed, and the error cost function of the weight optimization is as follows:
[0033]
[0034] in, E Indicates the error value, Represents a given output value, Indicates the actual output value, k represents the time step;
[0035] To adjust the parameters of the fuzzy layer, the parameter adjustment is defined as follows:
[0036]
[0037] in, represents the central value of the membership function, Represents the learning rate that controls the update speed.
[0038] Furthermore, the BP neural network specifically includes:
[0039] The BP neural network includes an input layer, a hidden layer, and an output layer. The input layer is provided with three neuron nodes, the hidden layer is provided with five neuron nodes, and the output layer is provided with three neuron nodes. The input layer is defined as follows:
[0040]
[0041] in, O represents the output of the network layer, (·) represents the network layer, j represents a discrete time point, x Represents the signal value at different time points, k represents the time step;
[0042] The hidden layer is defined as follows:
[0043]
[0044]
[0045]
[0046] in, net Indicates weighted processing of the input signal. i represents the neuron number, represents the hidden layer activation function, represents the weight coefficient of the hidden layer;
[0047] The output layer is defined as follows:
[0048]
[0049]
[0050]
[0051] in, represents the output layer excitation function, Represents the output layer weight coefficient;
[0052] To obtain the final output of the BP neural network, the final output includes the first control parameter of the single-cylinder output and the second control parameter of the single-cylinder output. The final output is defined as follows:
[0053]
[0054] in, Indicates the parameter ratio of adjusting the hydraulic cylinder PID controller, Indicates the parameter integral of the hydraulic cylinder PID controller. Represents the differential of the parameters for adjusting the hydraulic cylinder PID controller.
[0055] Furthermore, after the step of obtaining the first control parameter of the single-cylinder output, the method further includes:
[0056] The weight coefficients of the BP neural network are adjusted and optimized according to the performance index function, and the performance index function is as follows:
[0057]
[0058] in, J represents the loss function, represents the input signal, Represents the output signal, z Represents a prediction signal;
[0059] The adjustment optimization formula is as follows:
[0060]
[0061] in, represents the weight coefficient adjustment rate, represents the smoothing factor;
[0062] Obtain the weight coefficient adjustment optimization function of the hidden layer and output layer of the BP neural network to adjust and optimize the hidden layer and output layer of the BP neural network. The adjustment optimization function of the hidden layer is as follows:
[0063]
[0064] in, represents the error term of the neuron;
[0065] The adjustment optimization function of the output layer is as follows:
[0066]
[0067] in, Indicates the The error in step time, u represents the net input, represents the derivative of the activation function.
[0068] The present invention proposes a dual-cylinder control system based on a fuzzy neural network PID algorithm, comprising:
[0069] A judgment module is used to obtain the displacement deviation parameters of the two hydraulic cylinders and perform deviation judgment;
[0070] a dual-cylinder synchronization control module, configured to perform dual-cylinder error adjustment on the displacement deviation parameter according to a fuzzy neural network algorithm to obtain an error adjustment parameter if it is determined that the displacement deviation parameter is greater than a preset deviation threshold;
[0071] The single-cylinder output control module is used to adjust the single-cylinder output of each hydraulic cylinder based on the expected output parameter, actual output parameter and the error adjustment parameter according to the BP neural network algorithm to obtain the first control parameter of the single-cylinder output, and adjust the output of the corresponding hydraulic cylinder according to the first control parameter of the single-cylinder output.
[0072] The present invention also provides a storage medium storing one or more programs, which, when executed by a processor, implement the above-mentioned dual-cylinder control method based on the fuzzy neural network PID algorithm.
[0073] The present invention further provides a computer device, comprising a memory and a processor, wherein:
[0074] The memory is used to store computer programs;
[0075] When the processor is used to execute the computer program stored in the memory, the dual-cylinder control method based on the fuzzy neural network PID algorithm as described above is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] Figure 1 This is a flow chart of a dual-cylinder control method based on a fuzzy neural network PID algorithm proposed in the first embodiment of the present invention;
[0077] Figure 2 This is a flow chart of a dual-cylinder control method based on a fuzzy neural network PID algorithm proposed in the second embodiment of the present invention;
[0078] Figure 3 This is a structural diagram of a dual-cylinder control system based on a fuzzy neural network PID algorithm proposed in the third embodiment of the present invention.
[0079] The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0080] To facilitate understanding of the present invention, the present invention will be described more fully below with reference to the accompanying drawings. The drawings illustrate several embodiments of the present invention. However, the present invention may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and comprehensive understanding of the present invention.
[0081] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be an intermediate element. When an element is referred to as being "connected to" another element, it may be directly connected to the other element or there may be an intermediate element. The terms "vertical," "horizontal," "left," "right," and similar expressions used herein are for illustrative purposes only.
[0082] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one skilled in the art to which this invention pertains. The terms used in this specification of the present invention are for the purpose of describing specific embodiments only and are not intended to limit the present invention. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0083] See also Figure 1 , which is a flow chart of a two-cylinder control method based on a fuzzy neural network PID algorithm according to a first embodiment of the present invention, the two-cylinder control method based on a fuzzy neural network PID algorithm includes steps S01 to S03, wherein:
[0084] Step S01: Obtain the displacement deviation parameters of the two hydraulic cylinders and perform deviation judgment;
[0085] It should be noted that the displacement deviation data in this embodiment includes a displacement deviation value and a displacement deviation rate. The two hydraulic cylinders in this embodiment adopt a cross-coupling setting.
[0086] Step S02: If it is determined that the displacement deviation parameter is greater than a preset deviation threshold, dual-cylinder error adjustment is performed on the displacement deviation parameter according to a fuzzy neural network algorithm to obtain an error adjustment parameter;
[0087] It should be noted that the preset deviation threshold in this embodiment adopts the standard simulation error value of the straddle-type monorail train test bench to maintain the stability of the test bench simulation results. The fuzzy neural network in this embodiment includes an input layer, a fuzzification layer, a fuzzy inference layer, and an output layer. The input layer is provided with two neuron nodes corresponding to the displacement deviation parameter, the fuzzification layer is provided with fourteen neuron nodes corresponding to the membership value, the fuzzy inference layer is provided with forty-nine neuron nodes corresponding to the fuzzy rules, and the output layer is provided with three neuron nodes corresponding to the parameter variation. The fuzzy neural network algorithm in this embodiment is specifically as follows:
[0088] The fuzzy neural network input layer obtains the displacement deviation in the displacement deviation parameter and displacement deviation rate , the input layer is defined as follows:
[0089]
[0090] in, I represents the input of the network layer, O represents the output of the network layer, Represents the input value of the input layer, the input value includes the displacement deviation in the displacement deviation parameter and displacement deviation rate , irepresents the input node, i =1,2, (·) indicates the network layer;
[0091] Fuzzy neural network fuzzification layer for displacement deviation and displacement deviation rate Perform fuzzification processing, and the fuzzification layer is defined as follows:
[0092]
[0093] in, j The fuzzy set identifier representing the output value of the computing node, represents the exponential function for calculating the membership function, represents the center of the membership function, Indicates the width of the membership function;
[0094] The fuzzy reasoning layer of the fuzzy neural network performs fuzzy rule matching, and the fuzzy reasoning layer is defined as follows:
[0095]
[0096] in, l =1,2,3,...,49, Indicates the applicability of fuzzy rules;
[0097] The fuzzy neural network output layer solves the fuzzy quantity, and the output layer is defined as follows:
[0098]
[0099] in, h =1,2,3, Represents the network output, Represents the connection weight between the fuzzification layer and the output layer;
[0100] To obtain the error adjustment parameter, the error adjustment parameter is defined as follows:
[0101]
[0102] in, represents the proportional gain parameter, represents the integral gain parameter, Denotes the differential gain parameter. After obtaining the error adjustment parameter, the fuzzy neural network weight is optimized. The error cost function of the weight optimization is as follows:
[0103]
[0104] in, E Indicates the error value, Represents a given output value, Indicates the actual output value, k represents the time step;
[0105] To adjust the parameters of the fuzzy layer, the parameter adjustment is defined as follows:
[0106]
[0107] in, represents the central value of the membership function, Represents the learning rate that controls the update speed.
[0108] Step S03: performing single-cylinder output adjustment on the expected output parameter, actual output parameter, and error adjustment parameter of each hydraulic cylinder according to the BP neural network algorithm to obtain a first single-cylinder output control parameter, and adjusting the output of the corresponding hydraulic cylinder according to the first single-cylinder output control parameter;
[0109] It should be noted that in this embodiment, each hydraulic cylinder in the dual cylinders is independently output controlled, and the BP neural network is specifically:
[0110] The BP neural network includes an input layer, a hidden layer, and an output layer. The input layer is provided with three neuron nodes, the hidden layer is provided with five neuron nodes, and the output layer is provided with three neuron nodes. The input layer is defined as follows:
[0111]
[0112] in, O represents the output of the network layer, (·) represents the network layer, j represents a discrete time point, x Represents the signal value at different time points, k represents the time step;
[0113] The hidden layer is defined as follows:
[0114]
[0115]
[0116]
[0117] in, net Indicates weighted processing of the input signal. i represents the neuron number, represents the hidden layer activation function, represents the weight coefficient of the hidden layer;
[0118] The output layer is defined as follows:
[0119]
[0120]
[0121]
[0122] in, represents the output layer excitation function, Represents the output layer weight coefficient;
[0123] To obtain the final output of the BP neural network, the final output includes the first control parameter of the single-cylinder output and the second control parameter of the single-cylinder output. The final output is defined as follows:
[0124]
[0125] in, Indicates the parameter ratio of adjusting the hydraulic cylinder PID controller, Indicates the parameter integral of the hydraulic cylinder PID controller. It represents the parameter differential of adjusting the hydraulic cylinder PID controller, and then adjusting and optimizing the weight coefficient of the BP neural network according to the performance index function. The performance index function is as follows:
[0126]
[0127] in, J represents the loss function, represents the input signal, Represents the output signal, z Represents a prediction signal;
[0128] The adjustment optimization formula is as follows:
[0129]
[0130] in, represents the weight coefficient adjustment rate, represents the smoothing factor;
[0131] Obtain the weight coefficient adjustment optimization function of the hidden layer and output layer of the BP neural network to adjust and optimize the hidden layer and output layer of the BP neural network. The adjustment optimization function of the hidden layer is as follows:
[0132]
[0133] in, represents the error term of the neuron;
[0134] The adjustment optimization function of the output layer is as follows:
[0135]
[0136] in, Indicates the The error in step time, u represents the net input, represents the derivative of the activation function.
[0137] In summary, according to the above-mentioned dual-cylinder control method based on the fuzzy neural network PID algorithm, by designing a dual-cylinder synchronous control module based on the fuzzy neural network, the displacement deviation parameters of the two cross-coupled hydraulic cylinders are adjusted for error, thereby further reducing the deviation of the dual-cylinder synchronous output and greatly improving the synchronization control accuracy. A single-cylinder output control module based on the BP neural network algorithm is also designed to adjust the output of each individual hydraulic cylinder so that the corresponding hydraulic cylinder can quickly restore the steady-state output state, further improving the response speed of the output adjustment and the steady-state recovery speed, greatly improving the efficiency and stability of the single-cylinder control, and solving the problem of not being able to meet the requirements of accurate simulation of vibration and impact caused by track unevenness under different working conditions. The present invention greatly improves the simulation accuracy and stability of the straddle-type monorail train test bench. Specifically, the displacement deviation parameters of the two hydraulic cylinders are obtained and the deviation judgment is performed, and the degree of deviation of the dual-cylinder output is effectively judged to quickly respond to the deviation adjustment of the dual-cylinder output. If it is determined that the displacement deviation parameter is greater than the preset deviation threshold, the displacement deviation parameter is subjected to dual-cylinder error adjustment according to the fuzzy neural network algorithm to obtain the error adjustment parameter, further reducing the deviation of the dual-cylinder synchronous output and greatly improving the synchronous control accuracy. The expected output parameter, actual output parameter and the error adjustment parameter of each hydraulic cylinder are subjected to single-cylinder output adjustment according to the BP neural network algorithm to obtain the single-cylinder output first control parameter, and the output of the corresponding hydraulic cylinder is adjusted according to the single-cylinder output first control parameter, further improving the response speed of the output adjustment and the steady-state recovery speed, greatly improving the efficiency and stability of the single-cylinder control, and solving the problem of not being able to meet the requirements of accurate simulation of vibration and impact caused by track unevenness under different working conditions. The present invention greatly improves the simulation accuracy and stability of the straddle-type monorail train test bench.
[0138] See also Figure 2 , which is a flow chart of a two-cylinder control method based on a fuzzy neural network PID algorithm according to a second embodiment of the present invention, the two-cylinder control method based on a fuzzy neural network PID algorithm includes steps S11 to S12, wherein:
[0139] Step S11: obtaining the displacement deviation parameters of the two hydraulic cylinders and performing deviation judgment;
[0140] Step S12: If it is determined that the displacement deviation parameter is less than or equal to the preset deviation threshold, the expected output parameter, actual output parameter and displacement deviation parameter of each hydraulic cylinder are adjusted according to the BP neural network algorithm to obtain the second control parameter of the single-cylinder output, and the output of the corresponding hydraulic cylinder is adjusted according to the second control parameter of the single-cylinder output.
[0141] In summary, according to the above-mentioned dual-cylinder control method based on the fuzzy neural network PID algorithm, by designing a dual-cylinder synchronous control module based on the fuzzy neural network, the displacement deviation parameters of the two cross-coupled hydraulic cylinders are adjusted for error, thereby further reducing the deviation of the dual-cylinder synchronous output and greatly improving the synchronization control accuracy. A single-cylinder output control module based on the BP neural network algorithm is also designed to adjust the output of each individual hydraulic cylinder so that the corresponding hydraulic cylinder can quickly restore the steady-state output state, further improving the response speed of the output adjustment and the steady-state recovery speed, greatly improving the efficiency and stability of the single-cylinder control, and solving the problem of not being able to meet the requirements of accurate simulation of vibration and impact caused by track unevenness under different working conditions. The present invention greatly improves the simulation accuracy and stability of the straddle-type monorail train test bench. Specifically, the displacement deviation parameters of the two hydraulic cylinders are obtained and the deviation judgment is performed, and the degree of deviation of the dual-cylinder output is effectively judged to quickly respond to the deviation adjustment of the dual-cylinder output. If it is determined that the displacement deviation parameter is greater than the preset deviation threshold, the displacement deviation parameter is subjected to dual-cylinder error adjustment according to the fuzzy neural network algorithm to obtain the error adjustment parameter, further reducing the deviation of the dual-cylinder synchronous output and greatly improving the synchronous control accuracy. The expected output parameter, actual output parameter and the error adjustment parameter of each hydraulic cylinder are subjected to single-cylinder output adjustment according to the BP neural network algorithm to obtain the single-cylinder output first control parameter, and the output of the corresponding hydraulic cylinder is adjusted according to the single-cylinder output first control parameter, further improving the response speed of the output adjustment and the steady-state recovery speed, greatly improving the efficiency and stability of the single-cylinder control, and solving the problem of not being able to meet the requirements of accurate simulation of vibration and impact caused by track unevenness under different working conditions. The present invention greatly improves the simulation accuracy and stability of the straddle-type monorail train test bench.
[0142] See also Figure 3 , which is a schematic structural diagram of a dual-cylinder control system based on a fuzzy neural network PID algorithm proposed in the third embodiment of the present invention, the system includes:
[0143] The judgment module 10 is used to obtain the displacement deviation parameters of the two hydraulic cylinders and perform deviation judgment;
[0144] The dual-cylinder synchronization control module 20 is configured to perform dual-cylinder error adjustment on the displacement deviation parameter according to a fuzzy neural network algorithm to obtain an error adjustment parameter if it is determined that the displacement deviation parameter is greater than a preset deviation threshold;
[0145] The single-cylinder output control module 30 is used to perform single-cylinder output adjustment on the expected output parameter, actual output parameter and the error adjustment parameter of each hydraulic cylinder according to the BP neural network algorithm to obtain the first control parameter of the single-cylinder output, and adjust the output of the corresponding hydraulic cylinder according to the first control parameter of the single-cylinder output.
[0146] The present invention also proposes a computer storage medium on which one or more programs are stored. When the programs are executed by a processor, the dual-cylinder control method based on the fuzzy neural network PID algorithm is implemented.
[0147] The present invention also proposes a computer device comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the above-mentioned dual-cylinder control method based on the fuzzy neural network PID algorithm.
[0148] Those skilled in the art will appreciate that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device), or in conjunction with such instruction execution system, apparatus, or device. For purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transmit a program for use by an instruction execution system, apparatus, or device, or in conjunction with such instruction execution system, apparatus, or device.
[0149] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting, or processing it in another suitable manner as necessary, and then storing it in a computer memory.
[0150] It should be understood that various components of the present invention may be implemented using hardware, software, firmware, or a combination thereof. In the aforementioned embodiments, multiple steps or methods may be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one or a combination of the following technologies known in the art may be used: a discrete logic circuit having logic gate circuits for implementing logic functions on data signals, an application-specific integrated circuit having suitable combinational logic gate circuits, a programmable gate array (PGA), a field-programmable gate array (FPGA), etc.
[0151] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0152] The above-described embodiments merely illustrate several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A dual-cylinder control method based on fuzzy neural network PID algorithm, It is characterized in that include: Obtain the displacement deviation parameters of the two hydraulic cylinders and make deviation judgment; If it is determined that the displacement deviation parameter is greater than a preset deviation threshold, performing dual-cylinder error adjustment on the displacement deviation parameter according to a fuzzy neural network algorithm to obtain an error adjustment parameter; The fuzzy neural network specifically comprises: The fuzzy neural network includes an input layer, a fuzzification layer, a fuzzy reasoning layer and an output layer, wherein the input layer is provided with two neuron nodes corresponding to displacement deviation parameters, the fuzzification layer is provided with fourteen neuron nodes corresponding to membership values, the fuzzy reasoning layer is provided with forty-nine neuron nodes corresponding to fuzzy rules, and the output layer is provided with three neuron nodes corresponding to parameter variation; The fuzzy neural network algorithm specifically includes: The fuzzy neural network input layer obtains the displacement deviation in the displacement deviation parameter and displacement deviation rate , the input layer is defined as follows: in, I represents the input of the network layer, O represents the output of the network layer, represents the input value of the input layer, the input value includes the displacement deviation in the displacement deviation parameter and displacement deviation rate , i represents the input node, i =1,2, (·) indicates the network layer; Fuzzy neural network fuzzification layer for displacement deviation and displacement deviation rate Fuzzy processing is performed, and the fuzzy layer is defined as follows: in, j The fuzzy set identifier representing the output value of the computing node, represents the exponential function for calculating the membership function, represents the center of the membership function, Indicates the width of the membership function; The fuzzy neural network fuzzy reasoning layer performs fuzzy rule matching, and the fuzzy reasoning layer is defined as follows: in, l =1,2,3,...,49, Indicates the applicability of fuzzy rules; The fuzzy neural network output layer solves the fuzzy quantity, and the output layer is defined as follows: in, h =1,2,3, Represents the network output, Represents the connection weight between the fuzzification layer and the output layer; To obtain the error adjustment parameter, the error adjustment parameter is defined as follows: in, represents the proportional gain parameter, represents the integral gain parameter, represents the differential gain parameter; After the step of obtaining the error adjustment parameter, the following steps are further included: The fuzzy neural network weight optimization is performed, and the error cost function of the weight optimization is as follows: in, E represents the error value, Represents a given output value, Indicates the actual output value, k represents the time step; To adjust the parameters of the fuzzy layer, the parameter adjustment is defined as follows: in, represents the central value of the membership function, Represents the learning rate that controls the update speed; Performing single-cylinder output adjustment on the expected output parameter, the actual output parameter and the error adjustment parameter of each hydraulic cylinder according to the BP neural network algorithm to obtain a single-cylinder output first control parameter, and adjusting the output of the corresponding hydraulic cylinder according to the single-cylinder output first control parameter; The BP neural network specifically includes: The BP neural network includes an input layer, a hidden layer and an output layer. The input layer is provided with three neuron nodes, the hidden layer is provided with five neuron nodes, and the output layer is provided with three neuron nodes. The input layer is defined as follows: in, O represents the output of the network layer, (·) represents the network layer, j represents discrete time points, x represents the signal value at different time points, k represents the time step; The hidden layer is defined as follows: in, net represents the weighted processing of the input signal, i represents the neuron number, represents the hidden layer activation function, Represents the weight coefficient of the hidden layer; The output layer is defined as follows: in, represents the output layer excitation function, Represents the weight coefficient of the output layer; To obtain the final output of the BP neural network, the final output includes the first control parameter of the single cylinder output and the second control parameter of the single cylinder output, and the final output is defined as follows: in, Indicates the parameter ratio of adjusting the hydraulic cylinder PID controller, Indicates the parameter integral of adjusting the hydraulic cylinder PID controller, It represents the differential of the parameters for adjusting the hydraulic cylinder PID controller; After the step of obtaining the first control parameter of the single cylinder output, the following step is further included: The weight coefficients of the BP neural network are adjusted and optimized according to the performance index function, and the performance index function is as follows: in, J represents the loss function, represents the input signal, Represents the output signal, z Represents a prediction signal; The adjustment optimization formula is as follows: in, represents the weight coefficient adjustment rate, represents the smoothing factor; Obtain the weight coefficient adjustment optimization function of the hidden layer and output layer of the BP neural network to adjust and optimize the hidden layer and output layer of the BP neural network. The adjustment optimization function of the hidden layer is as follows: in, represents the error term of the neuron; The adjustment optimization function of the output layer is as follows: in, Indicates The error in step time, u represents the net input, represents the derivative of the activation function.
2. The dual-cylinder control method based on fuzzy neural network PID algorithm according to claim 1, It is characterized in that The method further comprises: If it is determined that the displacement deviation parameter is less than or equal to the preset deviation threshold, the expected output parameter, actual output parameter and the displacement deviation parameter of each hydraulic cylinder are adjusted for single-cylinder output according to the BP neural network algorithm to obtain the single-cylinder output second control parameter, and the output of the corresponding hydraulic cylinder is adjusted according to the single-cylinder output second control parameter.
3. A dual-cylinder control system based on fuzzy neural network PID algorithm, It is characterized in that include: A judgment module, used to obtain displacement deviation parameters of two hydraulic cylinders and perform deviation judgment; A dual-cylinder synchronous control module is used to perform dual-cylinder error adjustment on the displacement deviation parameter according to a fuzzy neural network algorithm to obtain an error adjustment parameter if it is determined that the displacement deviation parameter is greater than a preset deviation threshold; The fuzzy neural network specifically comprises: The fuzzy neural network includes an input layer, a fuzzification layer, a fuzzy reasoning layer and an output layer, wherein the input layer is provided with two neuron nodes corresponding to displacement deviation parameters, the fuzzification layer is provided with fourteen neuron nodes corresponding to membership values, the fuzzy reasoning layer is provided with forty-nine neuron nodes corresponding to fuzzy rules, and the output layer is provided with three neuron nodes corresponding to parameter variation; The fuzzy neural network algorithm specifically includes: The fuzzy neural network input layer obtains the displacement deviation in the displacement deviation parameter and displacement deviation rate , the input layer is defined as follows: in, I represents the input of the network layer, O represents the output of the network layer, represents the input value of the input layer, the input value includes the displacement deviation in the displacement deviation parameter and displacement deviation rate , i represents the input node, i =1,2, (·) indicates the network layer; Fuzzy neural network fuzzification layer for displacement deviation and displacement deviation rate Fuzzy processing is performed, and the fuzzy layer is defined as follows: in, j The fuzzy set identifier representing the output value of the computing node, represents the exponential function for calculating the membership function, represents the center of the membership function, Indicates the width of the membership function; The fuzzy neural network fuzzy reasoning layer performs fuzzy rule matching, and the fuzzy reasoning layer is defined as follows: in, l =1,2,3,...,49, Indicates the applicability of fuzzy rules; The fuzzy neural network output layer solves the fuzzy quantity, and the output layer is defined as follows: in, h =1,2,3, Represents the network output, Represents the connection weight between the fuzzification layer and the output layer; To obtain the error adjustment parameter, the error adjustment parameter is defined as follows: in, represents the proportional gain parameter, represents the integral gain parameter, represents the differential gain parameter; After the step of obtaining the error adjustment parameter, the following steps are further included: The fuzzy neural network weight optimization is performed, and the error cost function of the weight optimization is as follows: in, E represents the error value, Represents a given output value, Indicates the actual output value, k represents the time step; To adjust the parameters of the fuzzy layer, the parameter adjustment is defined as follows: in, represents the central value of the membership function, Represents the learning rate that controls the update speed; A single cylinder output control module, used to perform single cylinder output adjustment on the expected output parameter, actual output parameter and the error adjustment parameter of each hydraulic cylinder according to the BP neural network algorithm to obtain a single cylinder output first control parameter, and adjust the output of the corresponding hydraulic cylinder according to the single cylinder output first control parameter; The BP neural network specifically includes: The BP neural network includes an input layer, a hidden layer and an output layer. The input layer is provided with three neuron nodes, the hidden layer is provided with five neuron nodes, and the output layer is provided with three neuron nodes. The input layer is defined as follows: in, O represents the output of the network layer, (·) represents the network layer, j represents discrete time points, x represents the signal value at different time points, k represents the time step; The hidden layer is defined as follows: in, net represents the weighted processing of the input signal, i represents the neuron number, represents the hidden layer activation function, Represents the weight coefficient of the hidden layer; The output layer is defined as follows: in, represents the output layer excitation function, Represents the weight coefficient of the output layer; To obtain the final output of the BP neural network, the final output includes the first control parameter of the single cylinder output and the second control parameter of the single cylinder output, and the final output is defined as follows: in, Indicates the parameter ratio of adjusting the hydraulic cylinder PID controller, Indicates the parameter integral of adjusting the hydraulic cylinder PID controller, It represents the differential of the parameters for adjusting the hydraulic cylinder PID controller; After the step of obtaining the first control parameter of the single cylinder output, the following step is further included: The weight coefficients of the BP neural network are adjusted and optimized according to the performance index function, and the performance index function is as follows: in, J represents the loss function, represents the input signal, Represents the output signal, z Represents a prediction signal; The adjustment optimization formula is as follows: in, represents the weight coefficient adjustment rate, represents the smoothing factor; Obtain the weight coefficient adjustment optimization function of the hidden layer and output layer of the BP neural network to adjust and optimize the hidden layer and output layer of the BP neural network. The adjustment optimization function of the hidden layer is as follows: in, represents the error term of the neuron; The adjustment optimization function of the output layer is as follows: in, Indicates The error in step time, u represents the net input, represents the derivative of the activation function.
4. A storage medium, It is characterized in that The storage medium stores one or more programs, which, when executed by the processor, implement the dual-cylinder control method based on the fuzzy neural network PID algorithm as described in any one of claims 1-2.
5. A computer device, It is characterized in that The computer device comprises a memory and a processor, wherein: The memory is used to store computer programs; When the processor is used to execute the computer program stored in the memory, the dual-cylinder control method based on the fuzzy neural network PID algorithm described in any one of claims 1-2 is implemented.
