Grid integration of solar energy and optimizing the energy mix of tomorrow