The document describes modeling and analysis of an automatic voltage regulator (AVR), power system stabilizer (PSS), and unified power flow controller (UPFC) in a single machine infinite bus (SMIB) power system to enhance transient stability and improve power transfer capability. Case studies are conducted by changing the reference voltage, infinity bus voltage, mechanical torque, and introducing faults. The responses of rotor angle, slip, excitation voltage, and electrical torque are simulated. The control strategies of UPFC include phase voltage control, quadrature voltage control, quadrature current control, and real current control, except for phase angle control. Modeling equations are provided for the generator, AVR, PSS, and UPFC and their control strategies.