This document discusses using particle swarm optimization (PSO) to tune the parameters of a PID controller for an automatic voltage regulator (AVR) system. The goal is to improve the system's transient performance by minimizing overshoot and steady state error. PSO is applied to optimize the proportional, integral, and derivative parameters of the PID controller. Simulation results show the PSO-tuned PID controller provides significantly better control of the AVR system compared to a traditionally tuned PID controller. The tuned controller gives faster response, lower overshoot, and improved stability when subjected to disturbances and parameter variations.