**2. Methodology**

In the proposed model, an analytical method is applied to select the lines or buses to install DG units or FACTS devices to enhance the power system stability, taking into consideration the technical power flow constraints and the total power system cost analysis. Costs are presented in annualized values, with the objective to obtain benefits regarding the total investment cost (*TIC*) and the total generation cost (*TGC*), including the power losses cost (*PLC*). The algorithm is coded in MATLAB 2019 using the continuation power flow routine extracted from the power system analysis toolbox [52] to work embedded with tabu search [53]. The results are compared with the initial solution on a IEEE 300 bus test system.
