Capacity ratio of photovoltaic energy storage system