The first constraint is

To turn it into an equation, we must add a slack variable s to the left-hand side, getting

The next constraint is

and we add the slack variable t to the left-hand side, getting

Finally, the objective is

We must subtract 12x + 15y + 5z from both sides to get the desired equation:


Close this window to return to the tutorial.