Generate optimal nc program variant as function of cost, time, surface, energy