Distributed flexibility management targeting energy cost and total power limitations in electricity distribution grids. (June 2018)