Voltage Regulation of Photovoltaic System with varying Loads