Page 1 of 14
Linear Optimization / Linear
Programming Notes
Introduction …………………………………………………………………………………………………………………… 1
LP Problems……………………………………………………………………………………………………………………. 2
Low-fat Cake Example ………………………………………………………………………………………………….. 5
Computer Solution Using R …………………………………………………………………………………………… 6
Graphical Solution ……………………………………………………………………………………………………….. 7
Duality in linear optimization………………………………………………………………………………………….. 11
Introduction
The purpose of linear optimization or linear programming is to maximize or minimize a given
numerical function dependent on a set of variables such to certain constraints. Linear
programming, or LP, involves optimizing (either maximizing or minimizing) a linear function by
satisfying a set of linear constraints. These constraints can be equalities or inequalities such as
less than, less than or equal to, etc. In 1947, George Dantzig developed the simplex method for
solving linear programming problems. World War II had ended in 1945 but there was still
considerable interest in the complex logistics of troop and resource movements. These were
some of the early problems that linear programming sought to address. The use of the word
programming was meant to mean planning rather than computer programming, although today
I think it is more ubiquitous.
There are a few “common” components of an LP problem. LP problems have a objective
function, i.e. the numerical function to be optimized. LP problems have decision variables that
relate to decisions that can be made in the context of the LP problem. Decision variables can
be controlled. LP problems have parameters, i.e. input data that cannot be controlled but
directly influence the solution of the problem. LP problems have constraints. These
constraints, or restrictions, impose conditions on the problem and its solution.
To minimize the following text I’ll drop the designation linear optimization and/or linear
programming and simply refer to our discussion as one on LP problems. Note that I’m only
including linear problems but that nonlinear optimization certainly exists and is very important.