Models and algorithms for integrated production and distribution problems