Modelling and analysis of wind and solar generation