Typical Algorithms for Energy Storage Allocation