A bi-level optimization model for operation of distribution networks with micro-grids. (November 2016)