The document describes using particle swarm optimization (PSO) to control an interline power flow controller (IPFC) installed on a power transmission system. An IPFC uses voltage source converters to inject active and reactive power into transmission lines, allowing control of power flows. The document presents a MATLAB/Simulink model of an IPFC on a 4-bus system. Optimal parameters for the IPFC (magnitude and angle of injected voltages) are determined using PSO to minimize transmission line losses. Simulations apply this method to the IEEE 30-bus test system. PSO helps find optimal IPFC settings to efficiently control power flows in the multi-line transmission system.