Pulp, Python Programming, Linear Programming, Application, Snippet.
# from pulp import * prob=LpProblem('apol_q2', LpMaximize) x1=LpVariable("x1", 0) x2=LpVariable("x2", 0) prob += 70*x1+40*x2 prob += 33*x1+14*x2<=2200 prob += 4*x1+17*x2<=1344 prob += x1>=0 prob += x2>=0 prob.solve() for v in prob.variables(): print(v.name,"=", v.varValue) print("z = ",