Optimal operation of a trigenerator equipped microgrids