This paper presents an optimal feed-back switching control strategy for Unified Power Flow Controllers (UPFC) designed to improve damping of low frequency oscillations in power systems. The proposed method utilizes various control techniques, including Linear Quadratic Regulator (LQR) and Particle Swarm Optimization (PSO), to enhance the performance of damping controllers compared to traditional methods by allowing for switching between individual and coordinated inputs. The findings suggest that this switching control offers robust performance with better settling times for multiple state variables in comparison to conventional control approaches.