A life cycle approach to optimizing carbon footprint and costs of a residential building. (October 2017)