optimal simulation of intermittently heated buildings: part II-control