Energy management in buildings with intermittent and limited renewable resources - Barata, Filipe (2018)