Lp, Linear Programming, Machine Learning, Python, Pulp.
x32 == D2 transport_prob += x13 + x23 + x33 == D3 And we finally call the default solver to find the solution to the problem: solution = transport_prob.solve() Here, we can check the values assigned to the variables and the target function: print(f"SOLUTION \nx11 = {pulp.value(x11)}") print(f"x12 =