Modeling of quality of life in terms of energy and electricity consumption