OPTIMAL SIZING AND DISPATCH OF SOLAR POWER WITH STORAGE