A company will be producing the same new product at two different factories, and then the product must be shipped to two warehouses. Factory 1 can send an unlimited amount by rail to warehouse 1 only, whereas factory 2 can send an unlimited amount by rail to warehouse 2 only. However, independent truckers can be used to ship up to 50 units from each factory to a distribution center, from which up to 50 units can be shipped to each warehouse. The shipping cost per unit for each alternative is shown in the following table, along with the amounts to be produced at the factories and the amounts needed at the warehouses.
(a) Formulate the network representation of this problem as a minimum cost flow problem.
(b) Formulate a linear programming model for this problem.
(Bonus 10 Points) Use the network simplex algorithm to solve this problem and write down the minimum cost flow in the format of an optimal solution to part (b) .