write a literature review about the optimization methods used in HEMS, review th