Energy management of microgrids: from a mixed-integer linear programming problem to a rule-based real-time algorithm | IEEE Conference Publication | IEEE Xplore