This document summarizes research determining the optimal location for installing a unified power flow controller (UPFC) in an electric transmission system using particle swarm optimization (PSO) to minimize oscillations. The UPFC regulates voltages and controls power flows. PSO is an efficient method for solving nonlinear optimization problems with constraints. By varying parameters like power angle and incorporating time delays, the approach presents an innovative control scheme to apply UPFC beneficially for economical operation with reduced costs. Sensitivity analysis on the UPFC controller finds the optimal buses to place it and regulate flows.