An agent-based approach to modeling zero energy communities. (October 2019)