Traffic assignment: on the interplay between optimization and equilibrium problems