Pulp, Python Programming, Linear Programming, Application, Snippet.
# from pulp import * prob=LpProblem('apol_q3', LpMaximize) c=LpVariable("frig_comum", 0) w=LpVariable("frig_work", 0) prob += 12*c+19*w prob += 400*c+600*w<=300 prob += 500*c+400*w<=900 prob += c>=0 prob += w>=0 prob.solve() for v in prob.variables(): print(v.name,"=", v.varValue) print("Max Profit