Modify the heuristic solution for traffic engineering.