A novel heuristic algorithm that considers transmission impairment (especially amplified spontaneous emission (ASE) noise) is developed for traffic grooming in wavelength division multiplexing (WDM) optical networks. Span constraints, which are deter