Take your time reading through the examples in this section. There will be a lot of information to sort out. Pay attention to the difference between the optimization equation and the constraint equations.

Linear Programming and Optimizing Systems (Google Doc)