Energy Demand and Supply Simultaneous Optimization to Design a Nearly Zero-Energy House