Optimal Control of a Battery Storage On the Energy Market | Synapse