Planning tool for polygeneration design in microgrids. (December 2017)