Power quality control through automated demand side management in microgrid equipped with battery energy storage for protection. Issue 12 (7th May 2020)