Modelling Smart Grid Technologies in Optimisation Problems for Electricity Grids | Synapse