Adding energy storage system to solar power supply