Python, Cvxpy, Optimization.
Number of warehouses and retailers n_warehouses = 3 n_retailers = 4 # Supply at each warehouse supply = np.array([20, 30, 25]) # Demand at each retailer demand = np.array([15, 10, 20, 30]) # Transportation cost matrix cost = np.array([ [8, 6, 10, 9], [9, 12, 13, 7], [14, 9, 16, 5] ]) # Define the