Minimizing transportation and inventory costs for several products on a single link