Linear programming is constrained optimization where the objective function and every constraint are linear.
Standard Form
Objective function
Constraints
or with in place of .
Graphical Solution
For 2 design variables, the problem can be solved graphically
- Plot each constraint as a boundary line
- Shade the feasible region satisfying all constraints
- Move the objective function line, constant, across the feasible region
- The optimum occurs at a vertex of the feasible region
Worked Example
A factory produces heaters of types and , sold wholesale at $40 and $88 respectively. Machine needs 2 minutes per heater and 8 minutes per heater. Machine needs 5 minutes per heater and 2 minutes per heater. Both machines run 60 minutes per hour. Find the hourly production rates () and () maximizing hourly revenue.
Objective function
Constraints
The optimum occurs at the vertex , the intersection of the 2 machine-time constraints.