Heuristic Method for Cost Minimization