Evolutionary optimization in thermomechanical problems