Linear Programming
Optimizing a linear objective subject to linear constraints — the mathematical core of operations research, from production scheduling to diet planning.
Maximize 2x + 3y subject to x + 2y ≤ 10, 3x + y ≤ 15 — checking all four corners finds the best one
Linear programming (LP) finds the best value of a linear objective function, subject to a collection of linear constraints (equalities or inequalities). "Best" means maximize or minimize — profit, cost, distance, time — and "linear" means no squared terms, no products of variables, just weighted sums.
A standard LP looks like: maximize subject to constraints like , with all variables typically required to be .
A factory makes tables (profit $2 each) and chairs (profit $3 each). Each table needs 1 hour of labor and 2 units of wood; each chair needs 2 hours of labor and 1 unit of wood. With 10 hours of labor and 15 units of wood available, how many of each should be made to maximize profit?
This is an LP: maximize subject to (labor), (wood), .
In the factory example, what does the constraint represent in plain terms?
Solution
You can't produce a negative number of tables or chairs — non-negativity constraints simply reflect that the decision variables represent physical quantities that can't go below zero.