I want to tune my parameters of PI controller of BESS by using optimization in DPL to get proper result in Digsilent. So can anyone please brief me on how to interconnect to the DSL model through DPL? Can you please provide me with any type of demo code how to do the interconnections between DPL and how to call a DSL model through DPL? Can anyone please provide any manual/ Pseudo code for optimization to tune the parameters of PI controller using in BESS through DPL? It will be a great help for me to proceed with my research work. Otherwise can you please give me any pseudo code for Particle swarm optimization (PSO) to tune the PI parameters of PV controller in the BESS in DPL.