Power flow optimization in a microgrid with two kinds of energy storage. Issue 3 (3rd May 2016)