Study of Microgrid Hybrid System of Photovoltaic and Diesel Engine