← All articles

PSO, GA, SA or Bayesian Optimization for EV PID Tuning?

A technical illustration shows an electric vehicle silhouette beside a conceptual PID feedback loop and parallel optimization paths.

Short answer: In a 2026 simulation study of PID tuning for electric vehicles, every optimizer beat manual tuning, and the choice between them came down to cost. [1] Particle Swarm Optimization (PSO), Genetic Algorithm (GA), Simulated Annealing (SA) and Bayesian Optimization (BO) were compared under the same conditions. [1] Optimization raised the paper's operating efficiency measure from 79.9% with manually tuned gains to between 94.34% (PSO) and 96.78% (BO). [1] BO reached its result in only 30 function evaluations, PSO had the lowest average execution time (4.02 s), and the authors recommend PSO for real-time use because it balances convergence speed and control performance. [1] The results are from simulation, so check the plant model, the manual baseline and the cost of each evaluation before you pick an optimizer for your own loop.

What the 2026 study compares

B. S. Nivethitha, Ankit, L. Premalatha, Krishna Kumba and Nawin Ra published "Comparative Analysis of Optimization Algorithms for PID Controller Tuning in Electric Vehicles" in Optimal Control Applications and Methods (Wiley, published online 16 November 2026). [1]

  • Setting. A comparative simulation study of PID controller tuning in EV systems, where PID loops affect vehicle dynamics, powertrain efficiency and stability. [1]
  • Optimizers. PSO, GA, SA and BO, compared under the same conditions to keep the comparison fair. [1]
  • Criteria. Transient response characteristics, convergence properties, computational requirements and a normalized performance index. [1]
  • Baseline. Manually tuned PID gains. [1]
Tuning method Operating efficiency reported
Manual PID gains 79.9%
PSO 94.34%
GA 95.82%
SA 95.98%
BO 96.78%

Source: [1], abstract. The abstract also reports that BO reached its result in 30 function evaluations and that PSO had the lowest average execution time of the four (4.02 s). [1]

How to read the trade off

The four optimizers end within about 2.5 percentage points of each other on efficiency, while the gap to manual tuning is about 14 to 17 points. [1] For most teams the bigger decision is therefore to tune against a defined objective at all, and the second decision is what each evaluation costs:

  • Expensive evaluations. If each evaluation is a long simulation or a test on hardware, the number of evaluations matters most. The study reports that BO needed only 30. [1]
  • Cheap evaluations, limited compute time. If evaluations are fast but the tuning must run within a time limit, execution time matters. The study reports PSO as the fastest on average. [1]
  • Repeatability. Stochastic optimizers give different answers on different runs. Ask for the spread over repeated runs, not only the best result.

What to check before you reuse the result

  1. Plant and loop. The abstract does not say which EV loop or model was tuned. Find out whether the plant matches yours (for example motor speed, torque or vehicle speed) before you transfer any conclusion.
  2. Efficiency measure. "Operating efficiency" is the paper's own metric. Check how it is defined and whether it reflects what you need, such as tracking error, overshoot or energy use.
  3. Manual baseline. A weak manual tune makes every optimizer look better. Compare against a careful classical tune of the same loop.
  4. Same budget and bounds. Use the same gain bounds, objective and evaluation budget for every optimizer you compare.
  5. Robustness. Gains optimized for one scenario can lose margin elsewhere. Test other loads, speeds and disturbances, and if the best gains change with operating point, consider PID gain scheduling.
  6. Implementation. The authors list real-time implementation and hardware-in-the-loop simulation as future work. [1] Treat the gains as candidates until they pass those tests on your controller.

If the loop oscillates today, fix the causes before you optimize; see troubleshooting PID oscillations. For a learning-based alternative to search-based tuning, see DDPG PID auto-tuning for control valves.

Limits

  • The comparison is a simulation; no hardware result is reported in the abstract. [1]
  • The abstract does not give the plant model, the objective function or the optimizer settings, so the ranking applies to that setup only.
  • Single efficiency figures do not show run to run spread for the stochastic methods.
  • A qualified engineer still has to review any controller before it runs on a vehicle.

Key takeaways

  • A 2026 simulation study found that PSO, GA, SA and BO all beat manual PID tuning for an EV system, raising operating efficiency from 79.9% to between 94.34% and 96.78%. [1]
  • BO reached its result in 30 function evaluations; PSO had the lowest average execution time (4.02 s). [1]
  • The authors favor PSO for real-time applications. [1]
  • Choose the optimizer by the cost of each evaluation, and verify the gains on your own plant and hardware.

Frequently asked questions

Which optimization method is best for EV PID tuning?

In the 2026 study, BO reached the highest operating efficiency (96.78%) and needed only 30 function evaluations, while PSO had the lowest average execution time (4.02 s) and the authors recommend it for real-time use. [1] The right choice for your loop depends on how expensive each evaluation is.

How much better is optimized PID tuning than manual tuning?

The study reports operating efficiency of 79.9% with manually tuned gains versus 94.34% (PSO), 95.82% (GA), 95.98% (SA) and 96.78% (BO). [1] The size of the gain also depends on how well the manual baseline was tuned.

Were the results tested on a real vehicle?

No. The paper is a comparative simulation study, and the authors list real-time implementation and hardware-in-the-loop simulation as future work. [1]

What should I check before using an optimizer to tune my own PID loop?

Check that the plant model matches your loop, that the objective reflects what you care about, that every optimizer gets the same bounds and budget, that results hold over repeated runs and other operating points, and that a qualified engineer reviews the final gains.

Sources

  1. Nivethitha, B. S., Ankit, Premalatha, L., Kumba, K., and Ra, N. "Comparative Analysis of Optimization Algorithms for PID Controller Tuning in Electric Vehicles." Optimal Control Applications and Methods, Wiley, published online 16 November 2026. https://doi.org/10.1002/oca.70155

If you have a model or IO data for one of your own loops, LabCD's guided workflow lets you tune and test a controller on your first model for free, with a qualified engineer approving every controller.

Want to try this on your own plant model?

Try LabCD free with your first model