Optimization, Operations Research, Data Science, Hands On Tutorials, Python.
np.array([2.15, 1.34, 1.72]) c = - margins # Proportions A = np.array([ [7/10, 1/3, 1/2], [1/5, 2/3, 1/6], [1/10, 0.0, 1/3] ]) # Availability b = np.array([8000.0, 3000.0, 2500.0]) We are almost done now. All we need to do next is to call the scipy function linprog to solve the problem. sol =