Text this: Optimal control of thermal and mechanical loads in activation processes of mechanical components