OPTIMIZING ENERGY STORAGE FOR RESIDENTIAL SOLAR SYSTEMS