A tutorial on heuristic methods