Text this: Methodology of optimisation of local energy infrastructure development