improvment on Deterministic Temperature MPC