Stability analysis of the inverse heat transfer problem in the optimization of the machining process