An application of solar and wind power generation