[Paper Review] Optimizing PID parameters with machine learning
This paper proposes using Evolutionary Programming (EP) to optimize PID controller parameters for robotic control, leveraging a derivative-free, population-based approach that avoids local minima. EP successfully tuned linear and angular velocity PIDs in a simulated ROS/MORSE environment, achieving low average error (as low as 0.0234) with minimal derivative and integral gains, demonstrating robustness and efficiency in parameter search.
This paper examines the Evolutionary programming (EP) method for optimizing PID parameters. PID is the most common type of regulator within control theory, partly because it's relatively simple and yields stable results for most applications. The p, i and d parameters vary for each application; therefore, choosing the right parameters is crucial for obtaining good results but also somewhat difficult. EP is a derivative-free optimization algorithm which makes it suitable for PID optimization. The experiments in this paper demonstrate the power of EP to solve the problem of optimizing PID parameters without getting stuck in local minimums.
Motivation & Objective
- To address the challenge of manually tuning PID parameters for robotic control, which is time-consuming and application-specific.
- To evaluate the effectiveness of Evolutionary Programming (EP) as a derivative-free optimization method for PID parameter tuning.
- To compare EP’s performance against existing methods like Genetic Algorithms (GA) and Particle Swarm Optimization (PSO) in a simulated robotic environment.
- To investigate whether EP can converge to low-error solutions without getting trapped in local minima.
Proposed method
- EP initializes a population of PID parameter sets (k_pv, k_iv, k_dv, k_pa, k_ia, k_da) drawn from uniform distributions.
- Fitness is evaluated using the average error (AE) between desired and actual robot velocities over a predefined route.
- The fittest individual (lowest AE) is selected, and a new population is generated by applying Gaussian mutation to its parameters.
- Mutation strategies differ: experiment 1 uses absolute Gaussian noise, while experiments 2 and 3 use relative noise scaled to the parameter value to handle parameter magnitude differences.
- The algorithm iterates for 100 generations or until AE < 0.01, with separate training and testing routes.
- The system is implemented using ROS nodes for state control, route execution, and determinator logic, with MORSE as the 3D simulation backend.
Experimental results
Research questions
- RQ1Can Evolutionary Programming effectively optimize PID parameters for robotic velocity control without getting stuck in local minima?
- RQ2How do different mutation strategies (absolute vs. relative noise) affect the convergence and performance of EP in PID tuning?
- RQ3To what extent do the derivative and integral gains become negligible in the optimized solutions, and why?
- RQ4How does EP compare in performance to GA and PSO in terms of average error and convergence speed?
- RQ5Does increasing population size improve the optimization outcome in this control context?
Key findings
- EP successfully reduced average error to as low as 0.0234 in the best-performing configuration (experiment 3), demonstrating effective optimization.
- The derivative (D) and integral (I) gains for both linear and angular velocity controllers were consistently driven to near-zero values, suggesting minimal contribution in the simulated environment.
- The relative mutation strategy (experiment 2 and 3) outperformed the absolute mutation strategy (experiment 1), especially in handling parameters with widely varying magnitudes.
- Increasing population size from 10 to 20 did not yield significant improvements in final error, indicating diminishing returns.
- The step response for both training and testing routes showed stable performance with low overshoot and fast rise times when using optimized parameters.
- The results suggest that the simulation environment may not fully reflect real-world dynamics, as the D and I terms were largely redundant in the optimized solutions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.