Optimal allocation of thermal, electric and cooling loads among generation technologies in household applications