A controller model for integration of hybrid energy system into the grid. (2017)