Uninterruptible power supply to solar power generation