RESEARCH ON THE OPTIMAL CONFIGURATION OF PHOTOVOLTAIC AND ENERGY