As the power transfer increases, the operation of the energy system gradually becomes more complex. The short circuit level increases and the power system becomes less safe. In addition, the problem of the security of the energy system has become a subject of great concern in the deregulated energy industry. FACTS devices can control the flow of energy due to its flexibility and fast control features. The placement of these devices in a suitable location can lead to control in the line flow and keep the bus voltages at the desired level and thus improve the safety of the power system.