*4.4. Application of the Optimal Siting and Sizing of the Battery Energy Storage System (BESS)*

The application of the optimal siting and sizing of BESS in this work consisted of the following steps.

1. Define the input data comprising of *Vrated*, *RL*, *XL*, *PV*, *WT*, and *MVAbase* to simulate the considered distribution network in MATPOWER [37,38], and impose candidate buses to find the best location of the BESS installation.


The flowchart of the optimal siting and sizing of the BESS method is shown in Figure 2.

**Figure 2.** Flowchart of the proposed method.
