Last month an article co-authored by Gerko Van der Wel at Misurio was published in the open access journal “Buildings”. The article describes how the available flexible energy demand, production, and storage capacities in multi-energy systems can be managed in an optimal way. In a full one-year simulations the revenues of trading simultaneously on the spot and reserve electricity market are maximised. Alternatively, the software also provides the option to maximise self-sufficiency or share of renewable energy sources. The software was developed by Misurio, our collaborators at HSLU and Empa have then validated the model and applied it to a residential district with photovoltaic, thermal solar panels, batteries and thermal storages in central Switzerland.