Microgrids can assist in managing power supply and demand, increase grid resilience to adverse weather, increase the deployment of zero-emission energy sources, utilise waste heat, and reduce energy wasted through transmission lines. To ensure that the full benefits of microgrid use are realised, hybrid renewable energy-based microgrids must operate at peak efficiency. To offer an optimal solution for managing microgrids with hybrid renewable energy sources (HRESs) while taking microgrid reserve margins into account, the particle swarm optimisation (PSO) method is suggested. The suggested approach demonstrated good performance in terms of charging and discharging BESS and maintaining the necessary reserve margins to supply critical loads if the grid and renewable energy sources are unavailable. On a clear day, the amount of electricity sold to the grid increased by 58%, while on a partially overcast day, it increased by 153%. Microgrids provide a good return on investment for their operators when they are run at peak efficiency. This is because the BESS is largely charged during off-peak hours or with excess renewable energy, and power is only purchased during less expensive off-peak hours.
In power systems, capacitor banks play a significant role in improving voltage profiles, reducing losses, and adjusting power factors. Security measures must be implemented quickly and reliably to protect them from a wide range of threats. As a consequence of capacitor bank failures, finding and fixing the damaged units/elements is more difficult, which may lead to voltage control difficulties or the loss of any of these benefits. The paper shows the application of system-based testing methods for protection systems using RelaySimTest software, which works with OMICRON injection test sets. System-based testing methods are applied to test voltage differential protection for center-tapped shunt capacitor banks. The use of system-based testing methods has many advantages over conventional testing methods, which include distributed testing, transient state conditions testing, etc., which in turn result in cost savings during the commissioning and testing phase. The impact of external faults on bank installation has been tested successfully.