Title: Machining at minimum cost