What is the best way to allocate limited resources to get the most profit—or the least cost? That is the everyday question of optimization, and linear programming is the mathematical toolbox that answers it when the rules are straight lines. In this chapter we build that toolbox from scratch. You will see how a few linear equations and inequalities become a powerful, practical method.