A mobile robot control method and system based on GA-ACO
The weighted matrix of the LQR controller is optimized through the GA-ACO method, which solves the hysteresis and randomness problems caused by parameter uncertainty in mobile robot control, achieves a more stable balance process and better error tracking effect, and improves control System flexibility and real-time performance.
Patent Information
- Application Number
- CN202410625938.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-05-20
AI Technical Summary
Existing mobile robot control algorithms have hysteresis and randomness in the face of parameter uncertainty, which leads to an increase in control system errors. They are too dependent on human parameter tuning and lack flexibility and real-time performance.
A method based on genetic algorithm and ant colony algorithm (GA-ACO) is used to optimize the weighting matrix of the LQR controller, initialize the ant colony position through chaotic mapping, calculate the cost function as the fitness function, perform sorting and mutation, and use pheromones Perform position updates to achieve adaptive optimization of parameters.
It reduces the hysteresis and randomness of the control system, improves the flexibility and real-time performance of parameter adjustment, avoids the problem that a single algorithm easily falls into local optimality, and obtains a more stable balance process and better error tracking effect.
Smart Images

Figure CN118192619B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of robot control, and in particular relates to a mobile robot control method and system based on GA-ACO. Background Art
[0002] Mobile robots are a common type of mobile robots that usually use wheels to move and perform various tasks. The control method and system of mobile robots are key components to ensure that the robots can move and perform tasks safely and efficiently in various environments.
[0003] Mobile robots belong to the basic motion control systems of multivariable, nonlinear, high-order, strongly coupled, and unstable. At present, there are many algorithms for mobile robot control, such as PID control, adaptive control, optimal control, intelligent control, etc. The mobile robot control system based on fuzzy control can overcome the instability and nonlinearity of the system, but it is too dependent on the experience of experts. The use of linear quadratic regulator (LQR) can obtain a more stable balancing process than traditional PID control, and the system can achieve better error tracking effect. LQR control aims to minimize the weighted sum of system state and control input to achieve optimal performance. Therefore, under the premise of meeting the linear quadratic optimal control problem, LQR can usually provide better system response and robustness.
[0004] In order to solve the parameter uncertainty problem in LQR optimal control, many artificial parameter tuning methods were initially used. However, these methods have large hysteresis and randomness, which leads to increased control system errors. In recent years, with the combination of traditional control technology and computer technology, many new control algorithms have emerged.
[0005] These algorithms can be based on a variety of intelligent technologies, such as ant colony algorithms, genetic algorithms, neural networks, artificial fish swarm algorithms, immune algorithms, and particle swarm algorithms, for purposes such as parameter adjustment. The application of such intelligent technologies makes the control system more adaptable and flexible, and can better handle the challenges of parameter uncertainty. Compared with traditional manual parameter tuning methods, these new combined control algorithms can improve the performance of the control system, reduce errors, and reduce the workload of operators. In addition, they also have better real-time performance, which helps to more effectively monitor the status of the robot, especially in the control of mobile robots.
[0006] Therefore, the present application proposes a mobile robot control method and system based on GA-ACO. Summary of the invention
[0007] In order to make up for the deficiencies of the prior art and solve the technical problems existing in the background technology, the present invention proposes a mobile robot control method and system based on GA-ACO.
[0008] The present invention is achieved through the following technical solutions:
[0009] A mobile robot control method based on GA-ACO comprises the following steps:
[0010] S1: Model the wheels and body to obtain the dynamic model of the mobile robot;
[0011] S2: Design LQR controller based on the dynamic model;
[0012] S3: Optimize the weighted matrices Q and R of LQR, regard their elements as ant colonies, and initialize the positions of the ant colonies through chaotic mapping;
[0013] S4: Calculate the cost function J as the fitness function value;
[0014] S5: Based on the fitness function, the ant colonies are sorted and the screening factor of the genetic algorithm is introduced to screen out some ant colonies in the fitness function;
[0015] S6: After the screening is completed, the genetic algorithm mutation factor is introduced again to mutate a part of the ant colony in the fitness function again to achieve position update;
[0016] S7: After the screening is completed, most of the ant colonies in the fitness function are updated by generating pheromones, and the fitness function is calculated again and iterated. When the number of iterations is reached, the position of the ant colony is output.
[0017] Preferably, the establishment of the dynamic model of the mobile robot in S1 includes the following steps:
[0018] S11: building a wheel model;
[0019] The wheels are installed as a pair of coaxial wheels, and the left and right wheels are identical. The wheel model is obtained by formula (1):
[0020] (1)
[0021] in, is the mass of the wheel, is the radius of the wheel, is the moment of inertia of the wheel, is the second-order partial derivative of the horizontal displacement of the wheel, is the torque output by the wheel motor, It is the force exerted by the wheel on the vehicle body in the horizontal direction;
[0022] S12: Establish vehicle body dynamics model;
[0023] The vehicle body movement includes forward movement and lateral movement;
[0024] Among them, the positive motion includes forward motion and relative rotation around the center of mass N of the vehicle body; the lateral motion includes turning and yaw;
[0025] The horizontal direction equation of the vehicle body is obtained by formula (2):
[0026] (2)
[0027] In the above formula, is the mass of the vehicle body, is the wheelbase between the left and right wheels, is the distance between the center of mass N and the center of the chassis O, is the angle between the vehicle body and the vertical direction, The time used for the vehicle body, and They are the supporting forces of the right wheel and the left wheel on the vehicle body in the vertical direction;
[0028] The rigid body rotation equation of the vehicle body is obtained from equation (3):
[0029] (3)
[0030] In the above formula, is the moment of inertia of the vehicle body when it rotates around its center of mass, is the second-order partial derivative of the angle between the vehicle body and the vertical direction, and are the vertical support forces of the right and left wheels on the vehicle body, is the force exerted by the right wheel on the vehicle body in the horizontal direction, is the force exerted by the left wheel on the vehicle body in the horizontal direction, is the torque output by the right wheel motor, is the torque output by the left wheel motor;
[0031] The vehicle body steering equation is obtained from equation (4):
[0032] (4)
[0033] In the above formula, is the wheelbase between the left and right wheels, is the moment of inertia of the vehicle body when it rotates in the vertical direction, is the yaw angle of the vehicle;
[0034] When the left and right wheels rotate at different speeds, the vehicle turns.
[0035] Preferably, S2 specifically includes the following steps:
[0036] S21: Based on the wheel model and body model of the mobile robot, construct the state space equation of the control system;
[0037] S22: Design a state feedback controller to control the system performance by equation (5), and introduce a cost function for the system performance by equation (6);
[0038] (5)
[0039] (6)
[0040] In the above formula (5), To indicate the signal, To indicate the status, Obtained from formula (7);
[0041] In the above formula (6), Q is The state weight matrix R is a semi-positive definite matrix. The control weight matrix is a dimensional semi-positive definite matrix; Q and R are symmetric matrices and are often diagonal matrices; the diagonal elements qi in Q represent the importance of the corresponding error component xi. is the transposed matrix of the state; is the transposed matrix of the signal;
[0042] (7)
[0043] In the above formula, S is the Riccati equation The solution, is the transposed matrix of the calculated values.
[0044] Preferably, the Logistic mapping equation for generating the initial position of the ant colony in S3 is obtained by equation (8):
[0045] (8)
[0046] In the above formula, is the initial position of the jth ant in the i-th ant colony, i is an integer from 0 to M, M is the total number of ant colonies, j is an integer from 1 to 8; λ is the bifurcation parameter; rand is a random function that generates a random number from 0 to 1; and for The upper and lower limits of the value are 99 and 0 respectively.
[0047] Preferably, the fitness function in S4 is obtained by formula (9):
[0048] (9)
[0049] In the above formula, the diagonal elements in the weighted matrix Q are q1, q2, q3, q4, q5, q6 in the ant colony, the diagonal elements of the weighted matrix R are q7, q8 in the ant colony, is the fitness function of the i-th ant colony.
[0050] Preferably, a mutation factor is introduced into S6 is 0.1, and the 10% of ant colonies with the largest fitness functions are mutated. In The elements are binary encoded and converted into a 7-bit binary sequence, which is obtained by the probability formula (10):
[0051] (10)
[0052] Where n is the number of ant colonies that need to be mutated, n=M*η;
[0053] After the mutation is completed, it is converted into decimal to update the position of the mutant ant colony.
[0054] Preferably, each group of ants in S7 selects the next position based on the residual pheromones and heuristic information on the path, and its probability is obtained by formula (11):
[0055] (11)
[0056] In the formula, is the pheromone intensity from ant colony position i to ant colony position j at time t, is the visibility, which is the reciprocal of the geometric distance between the ant colony position i and the ant colony position j. The geometric distance expression is obtained by formula (12):
[0057] (12)
[0058] are two constants, which are the weighted values of pheromone and visibility respectively. is the set of ant colony positions that have not been updated yet;
[0059] When the ant colony completes a position update, the pheromone on the path is also updated as shown in formula (13):
[0060] (13)
[0061] In the formula, is the volatility of pheromone, Take 0.5, increase The algorithm can try new solutions, and reducing will continue to optimize the current solution, which can be obtained from formula (14):
[0062] (14)
[0063] represents the increment of pheromone on path ij in this iteration. The ranking-based ant colony pheromone generation method is that ants are ranked according to travel distance. The amount of pheromone released by ants is multiplied by the ant ranking. The ants ranked in the top z-1 and elite ants release pheromones, and the ants ranked in the kth position are multiplied by the coefficient zk, which is obtained by formula (15):
[0064] (15)
[0065] In the formula, represents the increment of pheromone left on path ij by the kth ant group in the iteration;
[0066] ;
[0067] ;
[0068] After the pheromone is generated, the position is updated based on the probability formula (16):
[0069] (16)
[0070] Based on the updated fitness function, choose whether to update. If the fitness function is smaller, update it, otherwise not. If the updated value exceeds the interval range, take the corresponding upper and lower limits. If it exceeds the upper limit, take the maximum value, and if it exceeds the lower limit, take the minimum value.
[0071] A mobile robot system based on GA-ACO, comprising:
[0072] A modeling module, wherein the modeling module is used to model the wheels and the vehicle body;
[0073] A design module, the design module is used to design an LQR controller according to the model designed by the modeling module;
[0074] An optimization module, wherein the optimization module is used to optimize the LQR controller;
[0075] A calculation module, wherein the calculation module is used to calculate a cost function J;
[0076] A screening module, wherein the screening module is used to sort and screen the ant colonies;
[0077] An adjustment module is used to update the position and obtain the optimal position.
[0078] The beneficial effects of the present invention are:
[0079] The present invention adopts LQR control of modern control theory in the robot control method, which can obtain a more stable balancing process than traditional PID control, and enable the system to achieve better error tracking effect; and in view of the parameter uncertainty problem existing in LQR optimal control, compared with the manual parameter setting method, the present invention selects and optimizes parameters through computer algorithms, reduces hysteresis, randomness and control system errors, integrates genetic algorithms and ant colony algorithms, and avoids the problem that a single algorithm is prone to fall into local optimality. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] Figure 1 is a flow chart of the method of the present invention;
[0081] Figure 2 It is the algorithm flow chart of the present invention. DETAILED DESCRIPTION
[0082] The present invention will be further described below in conjunction with specific examples. It should be understood that these examples are only used to illustrate the present invention and are not intended to limit the scope of the present invention. The experimental methods in the following examples without specifying specific conditions are usually carried out under conventional conditions or under conditions recommended by the manufacturer.
[0083] Unless otherwise defined, all professional and scientific terms used herein have the same meanings as those familiar to those skilled in the art. The reagents or raw materials used in the present invention can be purchased through conventional channels. Unless otherwise specified, the reagents or raw materials used in the present invention are used in a conventional manner in the art or in accordance with the product instructions. In addition, any method and material similar to or equivalent to the described content can be applied to the method of the present invention. The present invention is further described according to the accompanying drawings and specific embodiments of the present invention, and the preferred implementation methods and materials described in the present invention are only for demonstration purposes.
[0084] like Figure 1-Figure 2 As shown:
[0085] Embodiment 1:
[0086] S1: Model the wheels and the body to obtain the dynamic model of the mobile robot. The translation equation, rotation equation and mathematical model expressions of the left and right wheels are as follows:
[0087] ;
[0088] ;
[0089] ;
[0090] ;
[0091] Where m is the mass of the wheel, is the horizontal displacement of the wheel, is the ground friction force on the wheel, is the horizontal component of the force exerted on the wheel by the vehicle body, is the moment of inertia of the wheel, is the angular velocity of the wheel, is the torque output by the wheel motor, is the radius of the wheel;
[0092] Establish a vehicle body dynamics model, and decompose the vehicle body's motion into forward motion (forward, pitch) and lateral motion (turn, yaw);
[0093] The forward motion of the car can be decomposed into forward motion and relative rotation (pitch) around the center of mass N of the car body. The horizontal displacement equation of the center of the car chassis O is:
[0094] .
[0095] The wheel model equations for the left and right wheels are:
[0096] ;
[0097] ;
[0098] ;
[0099] in, is the mass of the vehicle body, is the distance between the center of mass N and the center of the chassis O, The angle between the vehicle body and the vertical direction.
[0100] The horizontal equation of the vehicle body is:
[0101] ;
[0102] in, and They are the supporting forces of the right wheel and the left wheel on the vehicle body in the vertical direction;
[0103] The rigid body rotation equation of the vehicle is:
[0104] ;
[0105] in, The moment of inertia of the vehicle body when it rotates around its center of mass;
[0106] ;
[0107] This equation contains nonlinear terms and needs to be linearized. In general, the inclination angle of the vehicle body Smaller (-8°< <8°), can be approximated as:
[0108] ;
[0109] ;
[0110] ;
[0111] ;
[0112] in:
[0113] ;
[0114] In the steering movement, the left and right wheels exert different forces on the vehicle body in the horizontal direction. and , so that the vehicle body turns:
[0115] ;
[0116] in, is the wheelbase between the left and right wheels, is the moment of inertia of the vehicle body when it rotates in the vertical direction, is the yaw angle of the vehicle;
[0117] When the left and right wheels rotate at different speeds, the vehicle turns; when turning right, the geometric relationship is:
[0118] ;
[0119] ;
[0120] .
[0121] S2: Based on the dynamic model, the state space equation of the control system is obtained and the LQR controller is designed;
[0122] The state space equation is:
[0123] ;
[0124] in:
[0125] ;
[0126] ;
[0127] ;
[0128] ;
[0129] ;
[0130] ;
[0131] in:
[0132] ;
[0133] ;
[0134] ;
[0135] ;
[0136] ;
[0137] ;
[0138] ;
[0139] ;
[0140] and are the linear speeds of the left and right wheels respectively.
[0141] S3: Optimize the weighted matrices Q and R of LQR, regard their elements as ant colonies, and initialize the positions of the ant colonies through chaotic mapping;
[0142] Using Logistic mapping, its expression is:
[0143] ;
[0144] in, is the initial position of the jth ant in the i-th ant colony, i is an integer from 0 to M, M is the total number of ant colonies, and j is an integer from 1 to 8; is the bifurcation parameter, when 3< <5, the motion trajectory of this equation shows chaotic characteristics. =4; It is a random function that generates a random number from 0 to 1; and for The upper and lower limits of the value are 99 and 0 respectively.
[0145] S4: Calculate the cost function J as the fitness function value;
[0146] Fitness function expression:
[0147] ;
[0148] Among them, the diagonal elements in the weight matrix Q are q1, q2, q3, q4, q5, q6 in the ant colony, the diagonal elements of the weighted matrix R are q7, q8 in the ant colony, is the fitness function of the i-th ant colony.
[0149] S5: Based on the fitness function, the ant colonies are sorted and the screening factor of the genetic algorithm is introduced to screen out some ant colonies in the fitness function;
[0150] The ants that are screened out are those with the worst fitness function.
[0151] Adaptively change the filter factor The value of Initial value of , when iterating, As the number of iterations increases, the screening factor Getting smaller and smaller to ensure that the ant colony size is still large enough in the later stages of the iteration. The expression is:
[0152] .
[0153] S6: After the screening is completed, the genetic algorithm mutation factor is introduced again to mutate a part of the ant colony in the fitness function again to achieve position update;
[0154] The ant colonies that are mutated are those with poor fitness functions.
[0155] After sorting and screening based on the fitness function, the mutation factor is introduced = 0.1, mutate the 10% of ant colonies with the largest fitness function, and Elements in Binary encoding is performed and converted into a 7-bit binary sequence ( The range is 0 to 99, 2 6 <99<2 7 ), each bit of the sequence mutates according to probability (1 becomes 0, 0 becomes 1), and the probability formula is:
[0156] ;
[0157] Among them, n is the number of ant groups that need to be mutated, ; After the mutation is completed, it is converted into decimal to update the position of the mutant ant colony.
[0158] S7: After the screening is completed, most of the ant colonies in the fitness function are updated by generating pheromones, and the fitness function is calculated again and iterated. When the number of iterations is reached, the position of the ant colony is output;
[0159] The ant colonies that produce pheromones are the majority with better fitness functions;
[0160] The ant colony position it outputs is the optimal ant colony position;
[0161] Each group of ants selects the next position based on the pheromone remaining on the path and the heuristic information (the geometric distance between the two groups of ant colonies). The probability formula is:
[0162] ;
[0163] in, is the pheromone intensity from ant colony position i to ant colony position j at time t, is visibility, which is the reciprocal of the geometric distance between ant colony position i and ant colony position j. The geometric distance expression is:
[0164] ;
[0165] in, are two constants, which are the weighted values of pheromone and visibility respectively. is the set of ant colony positions that have not been updated yet;
[0166] When the ant colony completes a position update, the pheromones on the path are also updated:
[0167] ;
[0168] in, is the volatility of pheromone, Take 0.5; increase It can make the algorithm try new solutions and reduce Then the current solution continues to be optimized:
[0169] ;
[0170] Indicates the increment of pheromone on path ij in this iteration. The ranking-based ant colony pheromone generation method is that ants are ranked by travel distance (the smallest one is in front). The amount of pheromone released by the ant is multiplied by the ant's ranking. The ants ranked in the top z-1 and the elite ants release pheromones, and the ant ranked in the kth position is multiplied by the coefficient zk:
[0171] ;
[0172] in, represents the increment of pheromone left on path ij by the kth ant group in the iteration;
[0173] ;
[0174] After the pheromone is generated, the position is updated based on the probability formula. The position update formula is:
[0175] ;
[0176] Based on the updated fitness function, choose whether to update. If the fitness function is smaller, update it, otherwise not. If the updated value exceeds the interval range, take the corresponding upper and lower limits. If it exceeds the upper limit, take the maximum value, and if it exceeds the lower limit, take the minimum value.
[0177] Embodiment 2:
[0178] A mobile robot system applicable to the above GA-ACO-based mobile robot system, comprising:
[0179] A modeling module, wherein the modeling module is used to model the wheels and the vehicle body;
[0180] A design module, the design module is used to design an LQR controller according to the model designed by the modeling module;
[0181] An optimization module, wherein the optimization module is used to optimize the LQR controller;
[0182] A calculation module, wherein the calculation module is used to calculate a cost function J;
[0183] A screening module, wherein the screening module is used to sort and screen the ant colonies;
[0184] An adjustment module is used to update the position and obtain the optimal position.
[0185] Any matters not described in the present invention are applicable to the prior art.
Claims
1. A mobile robot control method based on GA-ACO, characterized in that: The following steps are involved: S1: Model the wheels and body to obtain the dynamic model of the mobile robot; S2: Design LQR controller based on the dynamic model; S3: Optimize the weighted matrices Q and R of LQR, regard their elements as ant colonies, and initialize the positions of the ant colonies through chaotic mapping; S4: Calculate the cost function J as the fitness function value; S5: Based on the fitness function, the ant colonies are sorted and the screening factor of the genetic algorithm is introduced to screen out some ant colonies in the fitness function; S6: After the screening is completed, the genetic algorithm mutation factor is introduced again to mutate a part of the ant colony in the fitness function again to achieve position update; S7: After the screening is completed, most of the ant colonies in the fitness function are updated by generating pheromones, and the fitness function is calculated again and iterated. When the number of iterations is reached, the position of the ant colony is output; The establishment of the dynamic model of the mobile robot in S1 includes the following steps: S11: building a wheel model; The wheels are installed as a pair of coaxial wheels, and the left and right wheels are identical. The wheel model is obtained by formula (1): Where m is the mass of the wheel, r is the radius of the wheel, and I is the moment of inertia of the wheel. is the second-order partial derivative of the horizontal displacement of the wheel, T is the torque output by the wheel motor, and H is the force exerted by the wheel on the vehicle body in the horizontal direction; S12: Establish vehicle body dynamics model; The vehicle body movement includes forward movement and lateral movement; Among them, the positive motion includes forward motion and relative rotation around the center of mass N of the vehicle body; the lateral motion includes turning and yaw; The horizontal direction equation of the vehicle body is obtained by formula (2): In the above formula, M is the mass of the vehicle, d is the wheelbase between the left and right wheels, l is the distance between the center of mass N and the center of the chassis O, θ N is the angle between the vehicle body and the vertical direction, t is the time taken by the vehicle body, V R and V L They are the supporting forces of the right wheel and the left wheel on the vehicle body in the vertical direction; The rigid body rotation equation of the vehicle body is obtained from equation (3): In the above formula, J N is the moment of inertia of the vehicle body when it rotates around its center of mass, is the second-order partial derivative of the angle between the vehicle body and the vertical direction, V R and V L are the vertical support forces of the right and left wheels on the vehicle body, H R is the force exerted by the right wheel on the vehicle body in the horizontal direction, H L is the force exerted by the left wheel on the vehicle body in the horizontal direction, T R is the torque output by the right wheel motor, T L is the torque output by the left wheel motor; The vehicle body steering equation is obtained from equation (4): <h2 style=";text-align:left;direction:ltr">2J<h2 style=";text-align:left;direction:ltr"> α <h2 style=";text-align:left;direction:ltr"> =d(H<h2 style=";text-align:left;direction:ltr"> L <h2 style=";text-align:left;direction:ltr"> -H<h2 style=";text-align:left;direction:ltr"> R <h2 style=";text-align:left;direction:ltr"> (4) In the above formula, d is the wheelbase between the left and right wheels, J α is the moment of inertia of the vehicle body when it rotates around the vertical direction, and α is the yaw angle of the vehicle body; When the left and right wheels rotate at different speeds, the vehicle turns; S2 specifically includes the following steps: S21: Based on the wheel model and body model of the mobile robot, construct the state space equation of the control system; S22: Design a state feedback controller to control the system performance by equation (5), and introduce a cost function for the system performance by equation (6); u=-K f x (5) In the above formula (5), u represents the signal, x represents the state, and K f Obtained from formula (7); In the above formula (6), Q is the nxn-dimensional semi-positive definite state weight matrix, and R is the nxn-dimensional semi-positive definite control weight matrix; Q and R are symmetric matrices and are often diagonal matrices; the diagonal elements qi in Q represent the importance of the corresponding error component xi, and x T is the transposed matrix of the state; u T is the transposed matrix of the signal; K f =R -1 B T S (7) In the above formula, S is the Riccati equation A T S+SA+Q-SBR -1 B T The solution of S = 0, B T is the transposed matrix of the calculated value; The Logistic mapping equation for generating the initial position of the ant colony in S3 is obtained by equation (8): In the above formula, is the initial position of the jth ant in the i-th ant colony, i is an integer from 0 to M, M is the total number of ant colonies, j is an integer from 1 to 8; λ is the bifurcation parameter; rand is a random function that generates a random number from 0 to 1; q max and q min Q j The upper and lower limits of the value are 99 and 0 respectively; The fitness function in S4 is obtained by formula (9): In the above formula, the diagonal elements in the weighted matrix Q are q i q1, q2, q3, q4, q5, q6 in the ant colony, the diagonal element of the weighted matrix R is q i q7, q8, f in ant colony i is the fitness function of the i-th ant colony; In S6, the mutation factor η is introduced as 0.1, and the 10% of ant colonies with the largest fitness functions are mutated. i Q j The elements are binary coded and converted into a 7-bit binary sequence, which is obtained by the probability formula (10): Where n is the number of ant colonies that need to be mutated, n = M*η; After the mutation is completed, it is converted into decimal to update the position of the mutant ant colony; In S7, each group of ants selects the next position based on the residual pheromones and heuristic information on the path, and its probability is obtained by formula (11): In the formula, τ ij (t) is the pheromone intensity from ant colony position i to ant colony position j at time t, χ ij (t) = 1 / d ij is the visibility, which is the reciprocal of the geometric distance between ant colony position i and ant colony position j. The geometric distance expression is obtained by formula (12): α, β are two constants, which are the weighted values of pheromone and visibility respectively. k is the set of ant colony positions that have not been updated yet; When the ant colony completes a position update, the pheromone on the path is also updated as shown in formula (13): t ij (t+1)=[1-ρ(t)]τ ij (t)+Δτ ij (13) In the formula, ρ is the volatility of pheromone, ρ(0) is 0.5, increasing ρ makes the algorithm try new solutions, while decreasing it makes the algorithm continue to optimize the current solution, which is obtained from formula (14): Δτ ij It represents the increment of pheromone on path ij in this iteration. The ranking-based ant colony pheromone generation method is that ants are ranked according to travel distance. The amount of pheromone released by ants is multiplied by the ant ranking. The ants ranked in the top z-1 and elite ants release pheromones, and the ants ranked in the kth position are multiplied by the coefficient zk, which is obtained by formula (15): In the formula, represents the increment of pheromone left on path ij by the kth ant group in the iteration; After the pheromone is generated, the position is updated based on the probability formula (16): Based on the updated fitness function, choose whether to update. If the fitness function is smaller, update it, otherwise not. If the updated value exceeds the interval range, take the corresponding upper and lower limits. If it exceeds the upper limit, take the maximum value, and if it exceeds the lower limit, take the minimum value.
2. A GA-ACO-based mobile robot system, applicable to the GA-ACO-based mobile robot control method as claimed in claim 1, characterized in that: The system comprises: A modeling module, wherein the modeling module is used to model the wheels and the vehicle body; A design module, the design module is used to design an LQR controller according to the model designed by the modeling module; An optimization module, wherein the optimization module is used to optimize the LQR controller; A calculation module, wherein the calculation module is used to calculate a cost function J; A screening module, wherein the screening module is used to sort and screen the ant colonies; An adjustment module is used to update the position and obtain the optimal position.
Citation Information
Patent Citations
Route planning method and system based on genetic ant colony algorithm
CN105527965A
Genetic ant algorithm-based unmanned aerial vehicle global path planning method
CN107229287A
Improved chaos ant colony algorithm-based unmanned aerial vehicle airway planning method
CN108413959A
Improved ant colony algorithm based mobile robot path planning method
CN110095122A
Robot path planning method based on SMA-ACO algorithm
CN116088492A
