OPTIMIZATION OF SOLAR GENERATION AND BATTERY STORAGE FOR ELECTRIC