Data-Driven Hierarchical Optimal Allocation of Battery Energy Storage System | Synapse