This document discusses power flow analysis with flexible AC transmission system (FACTS) devices. It proposes using FACTS technologies like thyristor controlled series capacitor (TCSC) and unified power flow controller (UPFC) to control power flow and minimize losses in transmission lines. The document models an IEEE 14-bus test system in MATLAB and simulates power flow under different operating conditions with TCSC and UPFC. TCSC is used to minimize active power losses while UPFC minimizes both real and reactive power losses. Newton-Raphson method is used to solve the power flow problem and determine bus voltages, line flows, and system losses.