Text this: Optimisation of a residential energy system with an embedded PV source