Maximising the investment returns of a grid‐connected battery considering degradation cost | Synapse