We deal with the use of Battery Energy Storage System (BESS), which serve to stabilize transmission systems, to accumulate surpluses from distribution systems and electricity from renewable sources. It also serves as a reliable backup in case of network failure.