PuLP is an open source linear programming package for python. PuLP can be installed using pip, instructions here.
In this notebook, we’ll explore how to construct and solve the linear programming problem described in Part 1 using PuLP.
A brief reminder of our linear programming problem:
We want to find the maximum solution to the objective function:
$Z = 4x + 3y$
Subject to the following constraints:
x \geq 0 \\
y \geq 2 \\
2y \leq 25 – x \\
4y \geq 2x – 8 \\
y \leq 2x -5 \\