Optimal Control of Thermoblasticity