INTELLIGENT CONTROL OF THERMAL ENERGY STORAGE IN THE