Text this: Optimal Microgrids in Buildings with Critical Loads and Hybrid Energy Storage.