Optimize PDF
Optimize PDF
Introduction to LP Modeling
Linear Programming
Linear programming (LP) is a method of
spreadsheet optimization.
Frame 1 2 4 6 $28.50
Frame 2 1 2 2 $12.50
Frame 3 3 1 1 $29.25
Frame 4 2 2 2 $21.50
The unit costs are $8.00 per labor hour, $0.50 per
ounce of metal and $0.75 per ounce of glass.
– Profits for the other three types are obtained similarly. Their
unit profits are $2.00, $4.00, and $3.00, respectively.
– Then the total profit is the sum of the profits from the four
products.
14.1a | 14.2 | 14.3
Solution -- continued
Next, consider the skilled labor constraint.
– The right hand side, 4000, is the number of hours available.
On the left-hand side each type 1 frame uses 2 hours of
labor, so x1 units require 2x1 hours of labor.
– Similar statements hold for the other three products, and the
total number of labor hours used is the sum over the four
products.
The first stage is to enter all the inputs, trial values for
the changing cells, and formulas relating these in a
spreadsheet. We call this formulating the model.
– This stage if the most crucial because it is here that all of the
“ingredients” of the model are included and related
appropriately.
– In particular, the spreadsheet must include a formula that
relates the objective to the changing cells, so that if the
values in the changing cells vary, the objective value varies
automatically.
14.1a | 14.2 | 14.3
Solution -- continued
After the model is formulated, we can proceed to the
second stage: invoking Solver. At this point we
formally designate the objective cell, the changing
cell, and the constraints, and we tell solver to find the
optimal solution.
– If the first stage is done correctly, the second stage is usually
very straightforward.