The energy efficiency is maximized by charging/discharging energy while the power is tracking unstable, which is generated by utilizing natural energies such as wind or solar energy, in real time by applying an automatic tuning algorithm to an energy storage system which is applied to a smart grid or a micro grid that uses renewable energy as a primary energy source.2013-06-13