Minimalizing machine time, number of tool change