This document summarizes a PhD candidate's research using artificial intelligence to automate building energy management. The research aims to integrate a building energy management system with micro-generation systems on a single platform to achieve zero energy building status. The candidate is developing a cost function controller that considers energy costs, thermal comfort, and energy production. Preliminary MATLAB modeling shows a neural network model can accurately predict and optimize a simulated heat plant to track temperature references. Further work is needed to optimize plant tracking and include integral or derivative controls. Overall, the research aims to make buildings more adaptive and energy-productive entities.