A theoretical study of the optimization of gradients at elevated temperature