Optimal Battery Sizing for Frequency Regulation and Energy Arbitrage | Synapse