Optimal Wind turbine and PV generation with grid