energy mix optimisation integrating local