Text this: Optimization of the processing mode of machine tools by using the criterion of minimum cost