An air pump control optimization method for a tree-climbing robot
By optimizing the PID closed-loop control algorithm of the air pump through the improved artificial original optimization algorithm, the problem of low air pressure control precision and poor adaptive ability of the pneumatic tree-climbing robot is solved, the work efficiency and stability of the tree-climbing robot are improved, and the problem of non-structural stability is ensured. stable climb in a chemical environment.
Patent Information
- Application Number
- CN202410850388.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing pneumatic tree-climbing robots have problems in air pressure control such as low control accuracy, high energy consumption, and poor adaptability of the arm, resulting in insufficient work efficiency and stability.
An improved artificial original optimization algorithm is used to optimize the air pump PID closed-loop control algorithm of the tree-climbing robot. Data is collected through the pressure sensor, the output air pressure of the air pump is adjusted, and the control accuracy and robustness of the arm are improved. Through the improved algorithm parameters and dynamics The adjustment mechanism improves the adaptability and convergence speed of the algorithm.
It significantly improves the control accuracy and reaction speed of the tree-climbing robot's force arm, enhances its stable climbing ability in unstructured environments, and improves the robot's adaptability and reliability in complex environments.
Smart Images

Figure CN118393901B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of air pump PID control, and in particular relates to an air pump control optimization method for a tree climbing robot. Background Art
[0002] Pneumatic tree-climbing robots combine soft materials, bionic structures, etc., which greatly improve the motion adaptability and adhesion reliability of rigid robots, enabling the robots to perform crawling operations in unstructured environments such as forests and pole-shaped equipment. They have broad application prospects in fields such as high-altitude forest surveys, resource exploration, and major disaster rescue. However, existing tree-climbing robots have problems such as low control accuracy and high energy consumption when controlling air pressure to achieve stable climbing and movement. Therefore, how to optimize air pressure control to improve the working efficiency and stability of tree-climbing robots is a technical problem that needs to be solved urgently.
[0003] The pneumatic tree-climbing robot mainly controls the four lever arms of the robot through the air pressure output by the air pump. The main difficulties are: ① The lever arm joints of the pneumatic tree-climbing robot are mainly made of elastic materials, and their deformation is easily affected by external loads, resulting in poor adaptability; ② The nonlinear control of the pneumatic tree-climbing robot makes dynamic modeling extremely difficult, resulting in poor control and positioning effects; ③ The passive deformation of the flexible material when it comes into contact with the grasping target also makes shape detection particularly difficult.
[0004] In the actual operation of a pneumatic tree-climbing robot, it is necessary to precisely control the air pump to maintain a stable air pressure, and to control the tree-climbing robot's arm through the air pressure, thereby ensuring its stable climbing. PID controllers are widely used in various tree-climbing robot controls because of their simplicity, ease of implementation and good control effects. However, the optimization of PID control parameters has always been a challenge, and the accuracy of the parameters affects the tree-climbing robot's arm control.
[0005] Artificial Proto-Optimization (APO) is a novel bionic meta-heuristic algorithm, which is inspired by protozoa in nature and simulates their foraging, dormancy and reproduction behaviors. The global search phase of the algorithm includes autotrophic mode and heterotrophic behavior; the local development phase of the algorithm includes sleep mode and reproduction behavior; Although the Artificial Proto-Optimization (APO) algorithm performs well in solving engineering optimization problems, it also has some defects, such as: difficulty in parameter adjustment and limited adaptability to large-scale problems, which affect the convergence accuracy and optimization efficiency of the algorithm. Summary of the invention
[0006] The purpose of the present invention is to: address the problems existing in the air pump control of the robot arm of the tree-climbing robot in the above-mentioned background technology. The present invention optimizes the PID closed-loop algorithm of the air pump control of the tree-climbing robot by using an improved artificial original optimization algorithm, and provides the robustness of the air pump PID closed-loop algorithm, thereby improving the control accuracy and response speed of the robot arm, and solving the problem of low working efficiency of the tree-climbing robot due to poor sensitivity and adaptability of the arm during operation.
[0007] In order to achieve the above-mentioned purpose, the present invention adopts the following technical scheme: an air pump control optimization method for a tree-climbing robot, including an air pump control system of the tree-climbing robot, using a pressure sensor to collect pressure data between the tree-climbing robot's arm and the tree, and adjusting the output air pressure of the air pump through a PID controller to improve the accuracy and robustness of the robot's arm's bending. The specific steps are as follows.
[0008] S1. Based on the relationship between air pressure, tree diameter and climbing speed, a mathematical model for air pump control of the tree climbing robot is established.
[0009] S2. Establish an air pump control system for the tree-climbing robot. The control system includes an air pump control unit and an execution unit.
[0010] S3. Improve the artificial original optimization algorithm. Use the improved artificial original optimization algorithm to optimize the air pump PID closed-loop control algorithm of the tree climbing robot. Improve the artificial original optimization algorithm. The specific steps are:
[0011] S31. Improve the ratio factor of dormancy and reproduction of artificial original population , adjust the population size of the local development phase of the artificial original optimization algorithm, and adjust the algorithm position update strategy in the local development phase and the global search phase;
[0012] S32. Based on the diversity of the artificial original population and the changes in the optimal solution of the artificial original position, the foraging factor of the artificial original optimization algorithm is improved by introducing a dynamic adjustment mechanism ;
[0013] S33. Using improved foraging factors Improvement of the mathematical model for position update in the global search phase of the artificial original optimization algorithm;
[0014] S34. A "uniform statistical search" initialization method is proposed to uniformly initialize the positions of the artificial original population, and the air pump PID closed-loop control algorithm of the tree climbing robot is optimized using the improved artificial original optimization algorithm;
[0015] S4. Use a pressure sensor to collect real-time pressure data P(t) between the tree-climbing robot arm and the tree, and calculate the error value e(t) between the target pressure value Pa between the tree-climbing robot arm and the tree and the real-time pressure data P(t).
[0016] S5. According to the error value e ( t ) and the parameters of the PID controller Kp , Ki , Kd , calculate the air pump PID control output value u ( t ), the output value u ( t ) is converted into a control signal for the air pump, which enables the air pump to adjust the gas output and control the robot's lever arm.
[0017] More specifically, the air pump control mathematical model of the tree climbing robot is:
[0018] (1);
[0019] In formula (1), Y(t) is the change degree of the tree climbing robot's force arm, m is the robot's mass (kg), g is the gravitational acceleration (9.81 m / s²), μ is the friction coefficient, W(t) is the tree diameter at different time periods, d(t) is the contact width between the robot arm and the tree at different time periods, k v is the speed, t is the time in seconds, and u(t) is the air pump PID control output value.
[0020] More specifically, the air pump control system of the tree climbing robot includes an air pump control unit and an execution unit, wherein the air pump control unit includes an air pump controller. The air pump controller adopts a PID closed-loop control algorithm to input the real-time pressure data difference e(t) between the force arm of the tree climbing robot and the tree into the air pump controller. Calculate the PID control output value of the air pump of the tree climbing robot u ( t ), the air pump PID control output value u ( t ) is input into the air pump control mathematical model of the tree-climbing robot, that is, formula (1), thereby changing the degree of change of the tree-climbing robot's force arm. At the same time, the pressure sensor collects the real-time pressure data P(t) between the tree-climbing robot's force arm and the tree, and returns to calculate the real-time pressure data difference e(t) between the tree-climbing robot's force arm and the tree until t reaches the maximum control time T, realizing the closed-loop control of the tree-climbing robot. The execution unit is a permanent magnet motor, which provides gas to drive the robot's force arm for the tree-climbing robot.
[0021] More specifically, the ratio factor of dormancy and reproduction of the artificial original population of the original artificial original optimization algorithm is The ratio of the number of individuals sleeping and reproducing in the artificial original population to the total population is determined by simple randomness and cannot respond to changes in the population state in a timely manner. The present invention dynamically adjusts the ratio of sleep and reproduction based on population diversity and fitness change rate, adjusts the population size of the sleep and reproduction stages of the artificial original optimization algorithm, makes the algorithm more flexible, can better balance exploration and development, and improves optimization efficiency and effect; wherein, population diversity is measured by calculating the distance between artificial original individuals, and the improved ratio factor of sleep and reproduction of artificial original population is The mathematical model is:
[0022] (2);
[0023] In formula (2), The ratio factor of dormancy and reproduction of the artificial original population improved for the iterth iteration, is the fitness ranking of the ith individual in the population, N is the maximum size of the artificial original, is the diversity of the current population at the iter iteration, is the diversity of the initial population. The population diversity index is used to adjust the overall dormancy and reproduction ratio to avoid premature convergence to the local optimal solution.
[0024] More specifically, based on the diversity of the artificial original population and the changes in the fitness of the artificial original position, the foraging factor of the artificial original optimization algorithm is improved by introducing a dynamic adjustment mechanism. , improved foraging factor The mathematical model is:
[0025] (3);
[0026] In formula (3), is the improved foraging factor for the iter-th iteration, is the minimum value of the improved foraging factor, which is 0. is the maximum value of the improved foraging factor, which is 2; is the current iteration number, is the maximum number of iterations, It is a dynamic adjustment mechanism.
[0027] More specifically, the dynamic adjustment mechanism Based on the change rate of the entropy value of the artificial original population and the change rate of the optimal solution, the mathematical model is:
[0028] (4);
[0029] In formula (4), is the entropy value of the artificial original population position at the iter+1th iteration, is the entropy value of the artificial original population position at the iter-th iteration, is the entropy value of the initial artificial original population position, is the fitness value of the optimal solution of the iter-th iteration population, is the fitness value of the previous population optimal solution, The value is 0.001, where the entropy value calculation formula of the artificial original population position is: , where N is the maximum population size, is the probability of the i-th artifact appearing, which is obtained by normalizing the position fitness value.
[0030] More specifically, compared with the original foraging factor, the improved dynamically adjusted foraging factor introduces the relationship between the population entropy value and the change of the optimal solution, making the adjustment of the foraging factor more complex and diversified; using the improved foraging factor Improvements to the mathematical model for position updates during the global search phase of the artificial original optimization algorithm enable the algorithm to dynamically adapt to changes during the search process, more effectively explore in the early stages and exploit in the later stages, accelerate the convergence process, and improve the adaptability of the tree-climbing robot in complex environments.
[0031] More specifically, using the improved foraging factor The position update mathematical model of the global search phase of the improved artificial original optimization algorithm is:
[0032] (5);
[0033] In formula (5), is the new position of the i-th artifact, is the position of the i-th artificial source in the iter-th iteration, Random for the iterth iteration The location of the artificial is the number of artificial original neighbor pairs, is a foraging mapping vector of size 1×dim, and the value in the vector is 1. is the weight of the autotrophic mode, is the weight of the heterotrophic mode, rand is a random number between 0 and 1, is a randomly selected artificial original position among the k-th paired neighbors, where k is greater than i, is the artificial original position randomly selected from the kth paired neighbors, where k is less than i; is the ikth artificial original position selected from the kth pairing neighbors, The i+kth artificial original position is selected from the kth pairing neighbors; is the dividing parameter between autotrophic and heterotrophic behavior, is the improved foraging factor for the iter-th iteration.
[0034] More specifically, when the improved artificial original optimization algorithm is used to optimize the air pump PID closed-loop control algorithm of the tree-climbing robot, it is necessary to design an objective function to guide the algorithm to optimize the air pump PID closed-loop control algorithm. The air pump control of the tree-climbing robot mainly considers controlling the air pump output value of the tree-climbing robot, thereby improving the accuracy of the change degree of the tree-climbing robot's force arm, so that the difference between the adjusted force arm radius and the radius of the tree is as small as possible, thereby making the tree-climbing robot work more stably. Therefore, the error value e(t) between the target pressure value Pa between the tree-climbing robot's force arm and the tree and the real-time pressure data P(t) and the change degree Y(t) of the tree-climbing robot's force arm are taken into consideration to design the objective function. The objective function The mathematical model is:
[0035] (6);
[0036] In formula (6), T is the maximum control time, is the weight of the degree of change Y(t) of the tree-climbing robot’s force arm, and Y(t) is the degree of change of the tree-climbing robot’s force arm.
[0037] More specifically, the improved artificial original optimization algorithm is used to optimize the air pump PID closed-loop control algorithm of the tree climbing robot. The proportional coefficient Kp, integral coefficient Ki, and differential coefficient Kd of the air pump PID closed-loop control algorithm of the tree climbing robot are adjusted by the improved artificial original optimization algorithm. The specific steps are:
[0038] Step 1: Set the artificial original scale N, the maximum number of iterations Max_iter, the problem dimension dim, the upper bound UB and the lower bound LB of the improved artificial original optimization algorithm;
[0039] Step 2: According to formula (7), the "uniform statistical search" initialization method is used to uniformly initialize the artificial original population, so that the artificial original individuals cover the entire search space of the improved artificial original optimization algorithm; the upper bound UB and lower bound LB of the search space of the improved artificial original optimization algorithm are restricted;
[0040] (7);
[0041] In formula (7), is the initialized position of the jth dimension of the ith artificial original individual, where ; , is the lower limit position of the artificial original individual, is the upper limit position of the artificial original individual, is the global best artificial original individual position of the last iteration, rand(0,1) is a random number between 0 and 1;
[0042] Step 3: Establish a three-dimensional mapping between the position of the artificial original individual in the search space and the vector composed of Kp, Ki, and Kd of the air pump PID closed-loop control algorithm of the tree-climbing robot;
[0043] Step 4: Use the objective function to calculate the position fitness value of each artificial original individual in the iter-th iteration artificial original population, and take the position of the artificial original individual corresponding to the smaller fitness value in the population as the best position of the current iteration;
[0044] Step 5: Establish a mathematical model for updating the population position of the improved artificial primitive optimization algorithm in the global search stage and the local development stage, and update the position of the artificial primitive individuals. The specific steps are as follows:
[0045] S351. Use formula (2) to calculate the proportional factor of dormancy and reproduction of the artificial original population improved in the iterth iteration , set the size to {[pf}^{,}(iter)\times N,N] If the i-th individual in the current iteration is within the population range, the position of the i-th individual is updated and executed in step S352; otherwise, step S353 is executed;
[0046] S352, modeling the dormancy and reproduction behavior of artificial atom, and establishing a mathematical model for the position update of artificial atom individuals in the local convergence stage of the algorithm according to formula (8);
[0047] (8);
[0048] In formula (8), is the new position of the i-th artifact, is the position of the ith artificial source in the iterth iteration, rand is a random number between 0 and 1, is the boundary parameter between dormancy and reproduction. When it is greater than rand, the mathematical model of the dormant position of the artificial source is updated, otherwise, the mathematical model of the reproductive position of the artificial source is updated;
[0049] S353, Modeling the Search Behavior of Artificial Protozoa, by Improving the Foraging Factor The mathematical model for updating the position of the artificial atom in the global search phase of the improved artificial atom optimization algorithm, that is, formula (5) establishes the mathematical model for the position of the artificial atom in the global search phase of the algorithm;
[0050] Step 6: Use the objective function again to calculate the position fitness value of each individual in the artificial original population after the position update, and take the individual position corresponding to the currently obtained minimum fitness value as the global optimal artificial original individual position;
[0051] Step 7: Execute iter=iter+1 to determine whether the current number of iterations iter satisfies iter=Max_iter. If so, the position of the artificial original individual corresponding to the global minimum fitness value is output and parsed as the Kp, Ki, and Kd parameter values of the air pump PID closed-loop control algorithm of the tree-climbing robot. Otherwise, execute step 2 and use the "uniform statistical search" initialization method according to formula (7) to uniformly initialize the artificial original population.
[0052] Compared with the prior art, the beneficial effects of the present invention are as follows: the dormancy and reproduction ratio of the artificial original optimization algorithm is dynamically adjusted based on population diversity and fitness change rate, making the algorithm more flexible, and being able to better balance the exploration and development stages, thereby improving the algorithm optimization efficiency and effect; through the improved foraging factor and dynamic adjustment mechanism, the position update in the global search stage is made more accurate, the convergence process of the algorithm is accelerated, and the adaptability of the tree-climbing robot is improved in complex environments. The present invention optimizes the PID closed-loop algorithm of the air pump control of the tree-climbing robot by using the improved artificial original optimization algorithm, thereby significantly improving the control accuracy and reaction speed of the robot's force arm, and solving the problem of low work efficiency caused by poor sensitivity and adaptability of the force arm; at the same time, by precisely controlling the air pump output and maintaining stable air pressure, the tree-climbing robot is ensured to climb stably in unstructured environments such as forests and pole-shaped equipment, thereby enhancing the adaptability and reliability of the tree-climbing robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A method step diagram for optimizing the air pump control of a tree climbing robot using an improved artificial original optimization algorithm;
[0054] Figure 2 A flow chart of a method for optimizing the air pump PID closed-loop control algorithm of a tree-climbing robot using an improved artificial original optimization algorithm;
[0055] Figure 3 This is a comparison chart of the results of Kp, Ki, and Kd setting of the air pump PID closed-loop control algorithm of the tree-climbing robot using the improved artificial original optimization algorithm and the standard artificial original optimization algorithm;
[0056] Figure 4 This is a comparison chart of the fitness function changes of the improved artificial primitive optimization algorithm and the standard artificial primitive optimization algorithm for the air pump PID closed-loop control algorithm of the tree climbing robot;
[0057] Figure 5This is a comparison chart of the effects of different control methods used for air pump control of a tree-climbing robot. DETAILED DESCRIPTION
[0058] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0059] The present invention provides a technical solution: an air pump control optimization method for a tree climbing robot, including an air pump control system of the tree climbing robot, using a pressure sensor to collect pressure data between the force arm of the tree climbing robot and the tree, and adjusting the output air pressure of the air pump through a PID controller to improve the accuracy and robustness of the robot's force arm implementation change degree. First, as Figure 1 As shown, the specific steps of air pump control of the tree climbing robot are as follows.
[0060] S1. Based on the relationship between air pressure, tree diameter and climbing speed, a mathematical model for air pump control of the tree climbing robot is established.
[0061] Furthermore, the air pump control mathematical model of the tree climbing robot is:
[0062] (1);
[0063] In formula (1), Y(t) is the change degree of the tree climbing robot's force arm, m is the robot's mass (kg), g is the gravitational acceleration (9.81 m / s²), μ is the friction coefficient, W(t) is the tree diameter at different time periods, d(t) is the contact width between the robot arm and the tree at different time periods, k v is the speed, t is the time in seconds, and u(t) is the air pump PID control output value.
[0064] S2. Establish an air pump control system for the tree-climbing robot. The control system includes an air pump control unit and an execution unit.
[0065] Furthermore, the air pump control unit and the execution unit of the air pump control system of the tree climbing robot, wherein the air pump control unit includes an air pump controller, and the air pump controller adopts a PID closed-loop control algorithm, and inputs the real-time pressure data difference e(t) between the force arm of the tree climbing robot and the tree into the air pump controller, and then the pressure difference e(t) between the force arm of the tree climbing robot and the tree is input into the air pump controller. Calculate the PID control output value of the air pump of the tree climbing robot u ( t ), the air pump PID control output value u ( t) is input into the air pump control mathematical model of the tree-climbing robot, that is, formula (1), thereby changing the degree of change of the tree-climbing robot's force arm. At the same time, the pressure sensor collects the real-time pressure data P(t) between the tree-climbing robot's force arm and the tree, and returns to calculate the real-time pressure data difference e(t) between the tree-climbing robot's force arm and the tree until t reaches the maximum control time T, realizing the closed-loop control of the tree-climbing robot. The execution unit is a permanent magnet motor, which provides gas to drive the robot's force arm for the tree-climbing robot.
[0066] S3. Improve the artificial original optimization algorithm, and use the improved artificial original optimization algorithm to optimize the air pump PID closed-loop control algorithm of the tree climbing robot. The specific steps are S31 to step S34.
[0067] S31. Improve the ratio factor of dormancy and reproduction of artificial original population , adjust the population size of the local development stage of the artificial prototype optimization algorithm, and adjust the algorithm position update strategy in the local development stage and the global search stage; further, the present invention dynamically adjusts the proportion of dormancy and reproduction based on population diversity and fitness change rate, adjusts the population size of the sleep and reproduction stages of the artificial prototype optimization algorithm, makes the algorithm more flexible, can better balance exploration and development, and improves optimization efficiency and effect; wherein, population diversity is measured by calculating the distance between artificial prototype individuals, and the improved artificial prototype population dormancy and reproduction ratio factor The mathematical model is:
[0068] (2);
[0069] In formula (2), The ratio factor of dormancy and reproduction of the artificial original population improved for the iterth iteration, is the fitness ranking of the ith individual in the population, N is the maximum size of the artificial original, is the diversity of the current population at the iter iteration, is the diversity of the initial population. The population diversity index is used to adjust the overall dormancy and reproduction ratio to avoid premature convergence to the local optimal solution.
[0070] S32. Based on the diversity of the artificial original population and the changes in the optimal solution of the artificial original position, the foraging factor of the artificial original optimization algorithm is improved by introducing a dynamic adjustment mechanism ; Improved foraging factor The mathematical model is:
[0071] (3);
[0072] In formula (3), is the improved foraging factor for the iter-th iteration, is the minimum value of the improved foraging factor, which is 0. is the maximum value of the improved foraging factor, which is 2; is the current iteration number, is the maximum number of iterations, It is a dynamic adjustment mechanism.
[0073] Furthermore, the dynamic adjustment mechanism Based on the design of the change rate of the entropy value of the artificial original population and the change rate of the optimal solution, the mathematical model is:
[0074] (4);
[0075] In formula (4), is the entropy value of the artificial original population position at the iter+1th iteration, is the entropy value of the artificial original population position at the iter-th iteration, is the entropy value of the initial artificial original population position, is the fitness value of the optimal solution of the iter-th iteration population, is the fitness value of the previous population optimal solution, The value is 0.001, where the entropy value calculation formula of the artificial original population position is: , where N is the maximum population size, is the probability of the i-th artifact appearing, which is obtained by normalizing the position fitness value.
[0076] S33. Using improved foraging factors The position update mathematical model of the global search phase of the artificial original optimization algorithm is improved; the position update mathematical model of the global search phase of the improved artificial original optimization algorithm is:
[0077] (5);
[0078] In formula (5), is the new position of the i-th artifact, is the position of the i-th artificial source in the iter-th iteration, Random for the iterth iteration The location of the artificial is the number of artificial original neighbor pairs, is a foraging mapping vector of size 1×dim, and the value in the vector is 1. is the weight of the autotrophic mode, is the weight of the heterotrophic mode, rand is a random number between 0 and 1, is a randomly selected artificial original position among the k-th paired neighbors, where k is greater than i, is the artificial original position randomly selected from the kth paired neighbors, where k is less than i; is the ikth artificial original position selected from the kth pairing neighbors, The i+kth artificial original position is selected from the kth pairing neighbors; is the dividing parameter between autotrophic and heterotrophic behavior, is the improved foraging factor for the iter-th iteration.
[0079] S34. A "uniform statistical search" initialization method is proposed to uniformly initialize the position of the artificial original population, and the improved artificial original optimization algorithm is used to optimize the air pump PID closed-loop control algorithm of the tree-climbing robot. The proportional coefficient Kp, integral coefficient Ki, and differential coefficient Kd of the air pump PID closed-loop control algorithm of the tree-climbing robot are optimized by the improved artificial original optimization algorithm. Figure 2 As shown, the specific steps are:
[0080] Step 1: Set the artificial original scale N, the maximum number of iterations Max_iter, the problem dimension dim, the upper bound UB and the lower bound LB of the improved artificial original optimization algorithm;
[0081] Step 2: According to formula (7), the "uniform statistical search" initialization method is used to uniformly initialize the artificial original population, so that the artificial original individuals cover the entire search space of the improved artificial original optimization algorithm; the upper bound UB and lower bound LB of the search space of the improved artificial original optimization algorithm are restricted;
[0082] (7);
[0083] In formula (7), is the initialized position of the jth dimension of the ith artificial original individual, where ; , is the lower limit position of the artificial original individual, is the upper limit position of the artificial original individual, is the global best artificial original individual position of the last iteration, rand(0,1) is a random number between 0 and 1;
[0084] Step 3: Establish a three-dimensional mapping between the position of the artificial original individual in the search space and the vector composed of Kp, Ki, and Kd of the air pump PID closed-loop control algorithm of the tree-climbing robot;
[0085] Step 4: Use the objective function to calculate the position fitness value of each artificial original individual in the iter-th iteration artificial original population, and take the position of the artificial original individual corresponding to the smaller fitness value in the population as the best position of the current iteration;
[0086] Step 5: Establish a mathematical model for updating the population position of the improved artificial primitive optimization algorithm in the global search stage and the local development stage, and update the position of the artificial primitive individuals. The specific steps are as follows:
[0087] S351. Use formula (2) to calculate the proportional factor of dormancy and reproduction of the artificial original population improved in the iterth iteration , set the size to {[pf}^{,}(iter)\times N,N] If the i-th individual in the current iteration is within the population range, the position of the i-th individual is updated and executed in step S352; otherwise, step S353 is executed;
[0088] S352, modeling the dormancy and reproduction behavior of artificial atom, and establishing a mathematical model for the position update of artificial atom individuals in the local convergence stage of the algorithm according to formula (8);
[0089] (8);
[0090] In formula (8), is the new position of the i-th artifact, is the position of the ith artificial source in the iterth iteration, rand is a random number between 0 and 1, is the boundary parameter between dormancy and reproduction. When it is greater than rand, the mathematical model of the dormant position of the artificial source is updated, otherwise, the mathematical model of the reproductive position of the artificial source is updated;
[0091] S353, Modeling the Search Behavior of Artificial Protozoa, by Improving the Foraging Factor The mathematical model for updating the position of the artificial atom in the global search phase of the improved artificial atom optimization algorithm, that is, formula (5) establishes the mathematical model for the position of the artificial atom in the global search phase of the algorithm;
[0092] Step 6: Use the objective function again to calculate the position fitness value of each individual in the artificial original population after the position update, and take the individual position corresponding to the currently obtained minimum fitness value as the global optimal artificial original individual position;
[0093] Step 7: Execute iter=iter+1 to determine whether the current number of iterations iter satisfies iter=Max_iter. If so, the position of the artificial original individual corresponding to the global minimum fitness value is output and parsed as the Kp, Ki, and Kd parameter values of the air pump PID closed-loop control algorithm of the tree-climbing robot. Otherwise, execute step 2 and use the "uniform statistical search" initialization method according to formula (7) to uniformly initialize the artificial original population.
[0094] Furthermore, when the improved artificial original optimization algorithm is used to optimize the air pump PID closed-loop control algorithm of the tree-climbing robot, it is necessary to design an objective function to guide the algorithm to optimize the air pump PID closed-loop control algorithm. The air pump control of the tree-climbing robot mainly considers controlling the air pump output value of the tree-climbing robot, thereby improving the accuracy of the change degree of the tree-climbing robot's force arm, so that the difference between the adjusted force arm radius and the radius of the tree is as small as possible, thereby making the tree-climbing robot work more stably. Therefore, the error value e(t) between the target pressure value Pa between the tree-climbing robot's force arm and the tree and the real-time pressure data P(t) and the change degree Y(t) of the tree-climbing robot's force arm are taken into consideration to design the objective function. The objective function The mathematical model is:
[0095] (6);
[0096] In formula (6), T is the maximum control time, is the weight of the degree of change Y(t) of the tree-climbing robot’s force arm, and Y(t) is the degree of change of the tree-climbing robot’s force arm.
[0097] S4. Use a pressure sensor to collect real-time pressure data P(t) between the tree-climbing robot arm and the tree, and calculate the error value e(t) between the target pressure value Pa between the tree-climbing robot arm and the tree and the real-time pressure data P(t).
[0098] S5. According to the error value e ( t ) and the parameters of the PID controller Kp , Ki , Kd , calculate the air pump PID control output value u ( t ), the output value u ( t ) is converted into a control signal for the air pump, which adjusts the gas output to form a target air pressure value and controls the robot arm.
[0099] Furthermore, the codes of the improved artificial primitive optimization algorithm (FAPO) and the standard artificial primitive optimization algorithm (APO) were designed in Matlab, with the artificial primitive population size N=40, the maximum number of iterations Max_iter=60, the problem dimension dim=3, the upper bound UB=[60,100,15] and the lower bound LB=[0,0,0] set; using the objective function The air pump control system of the tree-climbing robot is used to build the air pump control simulation model of the tree-climbing robot in Simulink. The simulation model includes the air pump PID control parameter input module, the objective function module and the frequency domain expression module of the air pump control mathematical model of the tree-climbing robot, that is, the controlled function module. The parameters of the optimal PID closed-loop control algorithm are input into the air pump PID control parameter input module. The objective function module is built according to formula (6). The frequency domain expression of the air pump control mathematical model of the tree-climbing robot is designed to be a second-order complex frequency domain form. The mathematical model is:
[0100] , where s is the complex frequency domain parameter.
[0101] Furthermore, running Matlab and Siulink system simulation, we get the following Figure 3 As shown in FIG. 1 , the optimal Kp, Ki, and Kd parameter values of the air pump PID closed-loop control algorithm of the tree-climbing robot are obtained as the number of iterations increases, and as shown in FIG. Figure 4 As shown in the figure, the comparison chart of the change of the best fitness value in each iteration between the improved artificial primitive optimization algorithm (FAPO) and the standard artificial primitive optimization algorithm (APO) in the process of adjusting the control parameters of the air pump PID closed-loop control algorithm of the tree climbing robot is shown in the figure. Finally, as shown in the figure, Figure 5 As shown in the figure, the comparison chart of different control methods output in Siumlink for the air pump control effect of the tree climbing robot.
[0102] Furthermore, after 60 iterations, the optimal Kp, Ki, and Kd parameter values of the air pump PID closed-loop control algorithm of the tree-climbing robot are obtained, as shown in Figure 3 As shown in the figure, the improved artificial primitive optimization algorithm (FAPO) adjusts the air pump PID closed-loop control algorithm of the tree-climbing robot to obtain the optimal Kp=4.36, Ki=1.02, Kd=1.31; the standard artificial primitive optimization algorithm (APO) adjusts the air pump PID closed-loop control algorithm of the tree-climbing robot to obtain the optimal Kp=8.41, Ki=1.02, Kd=2.75.
[0103] Furthermore, the fitness value reflects the performance of the algorithm in adjusting the control parameters of the air pump PID closed-loop control algorithm of the tree-climbing robot. The smaller the fitness value, the better the performance of the control parameters of the air pump PID closed-loop control algorithm of the tree-climbing robot. The larger the fitness value, the worse the performance. Figure 4As shown in the figure, the tuning fitness value of the improved artificial primitive optimization algorithm (FAPO) has a smaller value at the beginning of the iteration compared with the tuning fitness value of the standard artificial primitive optimization algorithm (APO), which shows that the improved artificial primitive optimization algorithm (FAPO) has a better performance in the control parameter tuning of the air pump PID closed-loop control algorithm of the tree-climbing robot. With the increase of the number of iterations, within the number of iterations of 10, the tuning fitness value of the improved artificial primitive optimization algorithm (FAPO) decreases faster, indicating that its tuning speed is faster. Finally, in the entire iterative tuning process, the tuning fitness value of the improved artificial primitive optimization algorithm (FAPO) is consistently smaller than the tuning fitness value of the standard artificial primitive optimization algorithm (APO), indicating that the improved artificial primitive optimization algorithm (FAPO) has higher tuning accuracy. In summary, it can be shown that the improved artificial primitive optimization algorithm (FAPO) has better performance.
[0104] Furthermore, Figure 5 The figure shows the performance comparison of APO-PID and FAPO-PID algorithms in controlling the air pump of a tree-climbing robot; the target air pressure is set to 2 units of pressure. Compared with the APO-PID method, the rise time of the FAPO-PID method is shorter, which means that the FAPO-PID method can reach the target air pressure setting value faster; at the same time, it can be seen from the figure that the overshoot of FAPO-PID is smaller than that of APO-PID, and there is almost no overshoot. At about 2 seconds, the air pump output air pressure value of the tree-climbing robot controlled by FAPO-PID reaches the target value. At this time, the air pressure formed by the air pump output gas under the FAPO-PID method is 1.8, and the overshoot is 0.2, which shows that the FAPO-PID algorithm has higher stability and less fluctuations during the adjustment process. Finally, when they all tend to the same steady-state value of 2 units of air pressure, the steady-state error of the FAPO-PID algorithm is smaller, indicating that the method proposed in the present invention can more accurately reach the set target value.
Claims
1. An air pump control optimization method for a tree climbing robot, characterized in that: The specific steps are: S1. According to the relationship between air pressure, tree diameter and climbing speed, a mathematical model of air pump control of the tree climbing robot is established; S2. Establish an air pump control system of the tree-climbing robot, wherein the control system includes an air pump control unit and an execution unit; S3. Improve the artificial original optimization algorithm and use the improved artificial original optimization algorithm to optimize the air pump PID closed-loop control algorithm of the tree climbing robot. The specific steps are: S31. Improve the ratio factor of dormancy and reproduction of artificial original population , adjust the population size of the local development phase of the artificial original optimization algorithm, and adjust the algorithm position update strategy in the local development phase and the global search phase; S32. Based on the diversity of the artificial original population and the changes in the optimal solution of the artificial original position, the foraging factor of the artificial original optimization algorithm is improved by introducing a dynamic adjustment mechanism ; S33. Using improved foraging factors Improvement of the mathematical model for position update in the global search phase of the artificial original optimization algorithm; S34. A "uniform statistical search" initialization method is proposed to uniformly initialize the positions of the artificial original population, and the air pump PID closed-loop control algorithm of the tree climbing robot is optimized using the improved artificial original optimization algorithm; S4, using a pressure sensor to collect real-time pressure data P(t) between the tree-climbing robot arm and the tree, and calculating an error value e(t) between a target pressure value Pa between the tree-climbing robot arm and the tree and the real-time pressure data P(t); S5. According to the error value e ( t ) and the parameters of the PID controller Kp , Ki , Kd , calculate the air pump PID control output value u ( t ), the output value u ( t ) is converted into a control signal for the air pump, so that the air pump adjusts the gas output and controls the robot arm; The improved ratio factor of dormancy and reproduction of the artificial original population in step S31 The mathematical model is: (2); In formula (2), The ratio factor of dormancy and reproduction of the artificial original population improved for the iterth iteration, is the fitness ranking of the ith individual in the population, N is the maximum size of the artificial original, is the diversity of the current population at the iter iteration, To ensure the diversity of the initial population, the population diversity index is used to adjust the overall dormancy and reproduction ratio to avoid premature convergence to the local optimal solution; The foraging factor improved in step S32 The mathematical model is: (3); In formula (3), is the improved foraging factor for the iter-th iteration, is the minimum value of the improved foraging factor, which is 0. is the maximum value of the improved foraging factor, which is 2; is the current iteration number, is the maximum number of iterations, For dynamic adjustment mechanism, Based on the change rate of the entropy value of the artificial original population and the change rate of the optimal solution, the mathematical model is: (4); In formula (4), is the entropy value of the artificial original population position at the iter+1th iteration, is the entropy value of the artificial original population position at the iter-th iteration, is the entropy value of the initial artificial original population position, is the fitness value of the optimal solution of the iter-th iteration population, is the fitness value of the previous population optimal solution, The value is 0.001, where the entropy value calculation formula of the artificial original population position is: , where N is the maximum population size, is the probability of the i-th artifact appearing, obtained by normalizing the position fitness value; The position update mathematical model of the global search phase of the improved artificial original optimization algorithm in step S33 is: (5); In formula (5), is the new position of the i-th artifact, is the position of the i-th artificial original in the iter-th iteration, Random for the iterth iteration The location of the artificial is the number of artificial original neighbor pairs, is a foraging mapping vector of size 1×dim, and the value in the vector is 1. is the weight of the autotrophic mode, is the weight of the heterotrophic mode, rand is a random number between 0 and 1, is a randomly selected artificial original position among the k-th paired neighbors, where k is greater than i, is the artificial original position randomly selected from the kth paired neighbors, where k is less than i; is the ikth artificial original position selected from the kth pairing neighbors, The i+kth artificial original position is selected from the kth pairing neighbors; is the dividing parameter between autotrophic and heterotrophic behavior, is the improved foraging factor for the iter-th iteration; The improved artificial original optimization algorithm is used to optimize the air pump PID closed-loop control algorithm of the tree-climbing robot. The proportional coefficient Kp, integral coefficient Ki, and differential coefficient Kd of the air pump PID closed-loop control algorithm of the tree-climbing robot are optimized by the improved artificial original optimization algorithm. The specific steps are as follows: Step 1: Set the artificial original scale N, the maximum number of iterations Max_iter, the problem dimension dim, the upper bound UB and the lower bound LB of the improved artificial original optimization algorithm; Step 2: According to formula (7), the "uniform statistical search" initialization method is used to uniformly initialize the artificial original population, so that the artificial original individuals cover the entire search space of the improved artificial original optimization algorithm; the upper bound UB and lower bound LB of the search space of the improved artificial original optimization algorithm are restricted; (7); In formula (7), is the initialized position of the jth dimension of the ith artificial original individual, where ; , is the lower limit position of the artificial original individual, is the upper limit position of the artificial original individual, is the global best artificial original individual position of the last iteration, rand(0,1) is a random number between 0 and 1; Step 3: Establish a three-dimensional mapping between the position of the artificial original individual in the search space and the vector composed of Kp, Ki, and Kd of the air pump PID closed-loop control algorithm of the tree-climbing robot; Step 4: Use the objective function to calculate the position fitness value of each artificial original individual in the iter-th iteration artificial original population, and take the position of the artificial original individual corresponding to the smaller fitness value in the population as the best position of the current iteration; Step 5: Establish a mathematical model for updating the population position of the improved artificial primitive optimization algorithm in the global search stage and the local development stage, and update the position of the artificial primitive individuals. The specific steps are as follows: S351. Use formula (2) to calculate the proportional factor of dormancy and reproduction of the artificial original population improved in the iterth iteration , set the size to If the i-th individual of the current iteration is within the population range, the position of the i-th individual is updated and executed in step S352; otherwise, step S353 is executed; S352, modeling the dormancy and reproduction behavior of artificial atom, and establishing a mathematical model for the position update of artificial atom individuals in the local convergence stage of the algorithm according to formula (8); (8); In formula (8), is the new position of the i-th artifact, is the position of the ith artificial source in the iterth iteration, rand is a random number between 0 and 1, is the boundary parameter between dormancy and reproduction. When it is greater than rand, the mathematical model of the dormant position of the artificial source is updated, otherwise, the mathematical model of the reproductive position of the artificial source is updated; S353, Modeling the Search Behavior of Artificial Protozoa, by Improving the Foraging Factor The mathematical model for updating the position of the artificial atom in the global search phase of the improved artificial atom optimization algorithm, that is, formula (5) establishes the mathematical model for the position of the artificial atom in the global search phase of the algorithm; Step 6: Use the objective function again to calculate the position fitness value of each individual in the artificial original population after the position update, and take the individual position corresponding to the currently obtained minimum fitness value as the global optimal artificial original individual position; Step 7: Execute iter=iter+1 to determine whether the current number of iterations iter satisfies iter=Max_iter. If so, the position of the artificial original individual corresponding to the global minimum fitness value is output and parsed as the Kp, Ki, and Kd parameter values of the air pump PID closed-loop control algorithm of the tree-climbing robot. Otherwise, execute step 2 and use the "uniform statistical search" initialization method according to formula (7) to uniformly initialize the artificial original population.
2. The air pump control optimization method for a tree climbing robot according to claim 1, characterized in that: The air pump control mathematical model of the tree climbing robot in step S1 is: (1); In formula (1), Y(t) is the change degree of the force arm of the tree climbing robot, m is the mass of the robot, g is the gravitational acceleration, μ is the friction coefficient, W(t) is the tree diameter at different time periods, d(t) is the contact width between the robot arm and the tree at different time periods, k v is the speed, t is the time in seconds, and u(t) is the air pump PID control output value.
3. The air pump control optimization method for a tree climbing robot according to claim 2, characterized in that: The air pump control unit and the execution unit of the air pump control system of the tree climbing robot in step S2, wherein the air pump control unit includes an air pump controller, and the air pump controller adopts a PID closed-loop control algorithm to input the real-time pressure data difference e(t) between the force arm of the tree climbing robot and the tree into the air pump controller, and then the air pump controller is controlled by the formula Calculate the PID control output value of the air pump of the tree climbing robot u ( t ), the air pump PID control output value u ( t ) is input into the air pump control mathematical model of the tree-climbing robot, that is, formula (1), thereby changing the degree of change of the tree-climbing robot's force arm. At the same time, the pressure sensor collects the real-time pressure data P(t) between the tree-climbing robot's force arm and the tree, and returns to calculate the real-time pressure data difference e(t) between the tree-climbing robot's force arm and the tree until t reaches the maximum control time T, thereby realizing the closed-loop control of the tree-climbing robot. The execution unit is a permanent magnet motor, which provides gas to drive the robot's force arm for the tree-climbing robot.
