if we suppose we have a thermal system for a single Room with two inputs,one for heat pump and the other for the heat of environment and then we Have T(temp) as an output of our system and I want to minimize the cost function having T ,How we should do it (the output)?
Thanks alot.