At the University of Amsterdam, in the course of Heuristics, we have a case on SmartGrids. The assignment involves writing algorithms to optimally configure a grid of energy consuming and producing entities.
Houses with solar panels with different outputs must be linked to batteries, all placed on a grid, with minimal wiring cost. In a later stage, alternative locations for batteries might also be obtained.
Check out the case on heuristieken.nl.