Parameter optimization method of PID control algorithm of AGV

The parameters of the PID control algorithm are optimized through the artificial bee colony algorithm, which solves the local optimal problem in AGV vehicle control, achieves higher control accuracy and real-time performance, and simplifies the parameter optimization process.

CN118759822APending Publication Date: 2024-10-11CHANGAN AUTOMOBILE (GRP) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410820103.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In existing AGV vehicle control, fuzzy control and neural network control methods rely on personal experience, and the optimization algorithm is easy to fall into local optimality, making it difficult to achieve global optimal parameters, affecting control accuracy and real-time performance.

Method used

The artificial bee colony algorithm is used to optimize the parameters of the PID control algorithm. By establishing a kinematic model, setting parameter ranges, randomly generating combinations, calculating fitness values, comparing and replacing original parameters, the search mechanism of leading bees, follower bees and scout bees is used. , and gradually optimize the proportional, integral and differential parameters.

Benefits of technology

It achieves precise control of AGV vehicle speed, has better optimization effect, easily reaches global optimal parameters, and improves control accuracy and real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118759822A_ABST
    Figure CN118759822A_ABST
Patent Text Reader

Abstract

The invention discloses a parameter optimization method of a PID control algorithm of an AGV. The parameter optimization method comprises the following steps: 1) establishing a kinematic model of the AGV; 2) setting a path, and controlling the speed of the AGV vehicle to move according to the set path through a PID (Proportion Integration Differentiation) control algorithm; 3) optimizing parameters of a PID control algorithm through an artificial bee colony algorithm; 3.1) respectively setting the upper limit and the lower limit of the value range of the parameters of the PID control algorithm; 3.2) randomly generating a plurality of groups of parameter combinations according to the upper and lower limits of the value range of the set parameters; 3.3) calculating the fitness value of each parameter combination according to an artificial bee colony algorithm; and 3.4) the fitness values of the parameter combinations are compared, the parameter combination with the maximum fitness value is the optimal parameter combination, and the optimized parameters of the PID control algorithm replace the original parameters of the PID control algorithm.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of AGV vehicle control, and in particular to a parameter optimization method for a PID control algorithm of an AGV vehicle, Background Art

[0002] AGV is an automatic guided vehicle, which is an industrial vehicle that loads goods automatically or manually, drives automatically along a set route or pulls a cargo trolley to a designated location, and then loads and unloads goods automatically or manually. Generally, fuzzy control methods and neural network control methods are used to control AGV vehicles to drive automatically along a set route. However, the formulation of fuzzy rules and the selection of domains in fuzzy control methods are set based on personal experience or trial and error, which consumes a lot of time; the weight initialization of the neural network control method is also set based on personal experience, and the correction method of this method has not been strictly defined.

[0003] In order to solve the above-mentioned problems, in the prior art, optimization algorithms such as particle swarm algorithm, ant colony algorithm or whale algorithm are used to optimize the above-mentioned algorithms. However, these optimization algorithms are prone to fall into local optimal parameters and it is difficult to optimize the global optimal parameters, which affects the control accuracy. Moreover, the parameters in these optimization algorithms are mostly selected based on experience, and the parameter correction is difficult to control, and it is also difficult to meet the real-time control of AGV vehicles. Summary of the invention

[0004] In view of the above-mentioned problems, the present invention provides a parameter optimization method for the PID control algorithm of an AGV vehicle, which optimizes the parameters of the PID algorithm by adopting an artificial bee colony algorithm, so that the PID algorithm can control the speed of the AGV vehicle more accurately.

[0005] The technical solution of the present invention is: a parameter optimization method of a PID control algorithm of an AGV vehicle, characterized in that it comprises the following steps:

[0006] 1) Establish the kinematic model of AGV vehicle;

[0007] 2) Set a path and use the PID control algorithm to control the speed of the AGV vehicle to move along the set path;

[0008] 3) Optimize the parameters of the PID control algorithm through the artificial bee colony algorithm;

[0009] 3.1) Set the upper and lower limits of the value range of the parameters of the PID control algorithm respectively;

[0010] 3.2) Randomly generate multiple groups of parameter combinations according to the upper and lower limits of the set parameter value range;

[0011] 3.3) Calculate the fitness value of each parameter combination according to the artificial bee colony algorithm;

[0012] 3.4) Compare the fitness values ​​of each group of parameter combinations, and the parameter combination with the largest fitness value is the optimal parameter combination, and the optimal parameter combination replaces the original parameter combination of the PID control algorithm.

[0013] Preferably, in step 2), the input of the PID control algorithm is the position error and yaw angle error between the center of mass of the AGV vehicle and the desired point, and the output of the PID control algorithm is the speed and yaw angular velocity of the AGV vehicle.

[0014] Preferably, in step 3), the parameters of the PID control algorithm optimized by the artificial bee colony algorithm include proportional parameters, integral parameters, and differential parameters.

[0015] Preferably, in step 3.3), the step of calculating the fitness value of each parameter combination according to the artificial bee colony algorithm is:

[0016] 3.3.1) Setting the bee colony population, maximum iteration number threshold, maximum search number threshold, and fitness threshold, wherein the bee colony population includes leading bees, following bees, and scout bees;

[0017] 3.3.2) According to the number of parameter combinations, set the number of leading bees, following bees, and scout bees respectively;

[0018] 3.3.3) Each leader bee randomly selects a set of parameter combinations from the parameter combinations according to the leader bee search formula, and calculates the fitness value of the set of parameters according to the fitness value calculation formula;

[0019] 3.3.4) Each follower bee calculates the probability value of each parameter combination according to the fitness value of each parameter combination, selects which parameter combinations to be retained according to the probability value of each parameter combination using the roulette rule, explores new parameter combinations in the neighborhood of the remaining parameter combinations, and calculates the new fitness value of the new parameter combination according to the fitness value calculation formula. If the new fitness value is greater than the original fitness value of the parameter combination, the new parameter combination replaces the original parameter combination until the maximum search number threshold is reached, and the follower bee stops searching;

[0020] 3.3.5) When the follower bee reaches the maximum search number threshold, if the fitness value of a certain parameter combination has not changed, the parameter combination is discarded, and the scout bee reselects a parameter combination from the parameter combinations according to the scout formula and calculates the fitness value of each parameter combination;

[0021] 3.3.6) Repeat steps 3.3.4) and 3.3.5) until the maximum number of iterations is reached or the fitness value of each parameter combination reaches the fitness threshold, compare the fitness values ​​of each parameter combination, and the parameter combination with the largest fitness value is the optimal parameter combination.

[0022] The advantages of the present invention are:

[0023] 1. The object controlled by the PID algorithm of the present invention is the speed of the AGV vehicle, which is simpler than using the PID algorithm to control the acceleration, motor speed, torque, etc. of the AGV vehicle. Therefore, the artificial bee colony algorithm can quickly optimize the PID algorithm parameters, thereby accurately controlling the speed of the AGV vehicle.

[0024] 2. The present invention optimizes the PID algorithm parameters through the artificial bee colony algorithm. Compared with other optimization algorithms, the optimization effect is better and it is easy to reach the global optimal parameter result. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0026] See also Figure 1 , a parameter optimization method for a PID control algorithm of an AGV vehicle, comprising the following steps:

[0027] 1) Establish the kinematic model of AGV vehicle;

[0028] 2) Set a path and control the AGV vehicle to move according to the set path through the PID control algorithm. The input of the PID speed control algorithm is the position error and yaw angle error between the center of mass of the AGV vehicle and the desired point. The output of the PID speed control algorithm is the speed and yaw angular velocity of the AGV vehicle.

[0029] 3) The proportional parameters, integral parameters, and differential parameters of the PID control algorithm are optimized through the artificial bee colony algorithm, and the optimal parameter combination replaces the original parameter combination of the PID control algorithm.

[0030] The steps of optimizing the parameters of the PID control algorithm by the artificial bee colony algorithm are as follows:

[0031] 3.1) Set the upper and lower limits of the proportional parameter, integral parameter, and differential parameter of the PID controller respectively;

[0032] 3.2) According to the set upper and lower limits of the proportional parameter, integral parameter and differential parameter, N groups of parameter combinations of the proportional parameter, integral parameter and differential parameter are randomly generated;

[0033] 3.3) Calculate the fitness value of each parameter combination according to the artificial bee colony algorithm;

[0034] 3.3.1) Setting the bee colony population, maximum iteration number threshold, maximum search number threshold, and fitness threshold, wherein the bee colony population includes leading bees, following bees, and scout bees;

[0035] 3.3.2) According to the number of parameter combinations N, the number of leading bees, following bees and scout bees are set respectively; the number of leading bees is less than the number of parameter combinations, the sum of the number of following bees and scout bees is equal to the number of leading bees, and the number of scout bees is 1 or a few;

[0036] 3.3.3) Each leader bee randomly selects a set of parameter combinations from the parameter combinations according to the leader bee search formula, and calculates the fitness value of the set of parameters according to the fitness value calculation formula;

[0037] The leading bee search formula is:

[0038]

[0039] In the formula, x ij represents the jth dimension of the i-th parameter combination, where i = 1, 2, 3 ... N, j = 1, 2, 3 ... P, P is the dimension of the problem, and Respectively represent the upper and lower limits of the j-th dimension search space, that is, the upper and lower limits of the proportional parameter, integral parameter, and differential parameter, r ij A random number between 0 and 1.

[0040] The fitness value calculation formula is:

[0041]

[0042] In the formula, f i is the function value of the i-th group of parameters, a i is the i-th group of parameters.

[0043] 3.3.4) Each follower bee calculates the probability value of each parameter combination according to the fitness value of each parameter combination, selects which parameter combinations are left according to the probability value of each parameter combination using the roulette rule, and explores new parameter combinations in the neighborhood of the remaining parameter combinations. The roulette rule randomly generates a probability value. If the probability value of a parameter combination is greater than this probability, it is selected, and the new fitness value of the new parameter combination is calculated according to the fitness value calculation formula. If the new fitness value is greater than the original fitness value of the parameter combination, the new parameter combination replaces the original parameter combination until the maximum search number threshold is reached, and the follower bee stops searching;

[0044] The calculation formula of the probability value is:

[0045]

[0046] In the formula, p i is the probability of following the bee to search for the i-th group of parameter combinations, f(a i ) is the first iis the fitness value of each individual, and L is the number of bee colonies.

[0047] 3.3.5) When the follower bee reaches the maximum search number threshold, if the fitness value of a certain parameter combination has not changed, the parameter combination is discarded, and the scout bee reselects a parameter combination from the parameter combinations according to the scout formula and calculates the fitness value of each parameter combination;

[0048] The detection formula is:

[0049] v ij =s ij +r*(s ij -s kj )

[0050] In the formula, s ij is the position of the current parameter combination, s kj is the position of the new parameter combination, and r is a random number between 0 and 1.

[0051] 3.3.6) Repeat steps 3.3.4) and 3.3.5) until the maximum number of iterations is reached or the fitness value of each parameter combination reaches the fitness threshold, compare the fitness values ​​of each parameter combination, and output the parameter combination with the largest fitness value.

[0052] 3.4) Compare the fitness values ​​of each group of parameter combinations, and the parameter combination with the largest fitness value is the optimal parameter combination.

Claims

1. A parameter optimization method for a PID control algorithm of an AGV vehicle, characterized in that: The following steps are involved: 1) Establish the kinematic model of AGV vehicle; 2) Set a path and use the PID control algorithm to control the speed of the AGV vehicle to move along the set path; 3) Optimize the parameters of the PID control algorithm through the artificial bee colony algorithm; 3.1) Set the upper and lower limits of the value range of the parameters of the PID control algorithm respectively; 3.2) Randomly generate multiple groups of parameter combinations according to the upper and lower limits of the set parameter value range; 3.3) Calculate the fitness value of each parameter combination according to the artificial bee colony algorithm; 3.4) Compare the fitness values ​​of each group of parameter combinations, and the parameter combination with the largest fitness value is the optimal parameter combination, and the optimal parameter combination replaces the original parameter combination of the PID control algorithm.

2. The parameter optimization method of the PID control algorithm of an AGV vehicle according to claim 1, characterized in that: In the step 2), the input of the PID control algorithm is the position error and yaw angle error between the center of mass of the AGV vehicle and the desired point, and the output of the PID control algorithm is the speed and yaw angular velocity of the AGV vehicle.

3. The parameter optimization method of the PID control algorithm of an AGV vehicle according to claim 1, characterized in that: In the step 3), the parameters of the PID control algorithm optimized by the artificial bee colony algorithm include proportional parameters, integral parameters, and differential parameters.

4. The parameter optimization method of the PID control algorithm of an AGV vehicle according to claim 1, characterized in that: In step 3.3), the steps of calculating the fitness value of each parameter combination according to the artificial bee colony algorithm are as follows: 3.3.1) Setting the bee colony population, maximum iteration number threshold, maximum search number threshold, and fitness threshold, wherein the bee colony population includes leading bees, following bees, and scout bees; 3.3.2) According to the number of parameter combinations, set the number of leading bees, following bees, and scout bees respectively; 3.3.3) Each leader bee randomly selects a set of parameter combinations from the parameter combinations according to the leader bee search formula, and calculates the fitness value of the set of parameters according to the fitness value calculation formula; 3.3.4) Each follower bee calculates the probability value of each parameter combination according to the fitness value of each parameter combination, selects which parameter combinations to be retained according to the probability value of each parameter combination using the roulette rule, explores new parameter combinations in the neighborhood of the remaining parameter combinations, and calculates the new fitness value of the new parameter combination according to the fitness value calculation formula. If the new fitness value is greater than the original fitness value of the parameter combination, the new parameter combination replaces the original parameter combination until the maximum search number threshold is reached, and the follower bee stops searching; 3.3.5) When the follower bee reaches the maximum search number threshold, if the fitness value of a certain parameter combination has not changed, the parameter combination is discarded, and the scout bee reselects a parameter combination from the parameter combinations according to the scout formula and calculates the fitness value of each parameter combination; 3.3.6) Repeat steps 3.3.4) and 3.3.5) until the maximum number of iterations is reached or the fitness value of each parameter combination reaches the fitness threshold, compare the fitness values ​​of each parameter combination, and the parameter combination with the largest fitness value is the optimal parameter combination.