Tutorial 2 - Using Excel Solver LP
Tutorial 2 - Using Excel Solver LP
Technology can be used to solve a system of equations once the constraints and objective function have
been defined. Excel has an add-in called the Solver which can be used to solve systems of equations or
inequalities.
Example: A corporation plans on building a maximum of 11 new stores in a large city. They will build
these stores in one of three sizes for each location – a convenience store (open 24 hours),
standard store, and an expanded-services store. The convenience store requires $4.125
million to build and 30 employees to operate. The standard store requires $8.25 million to
build and 15 employees to operate. The expanded-services store requires $12.375 million
to build and 45 employees to operate. The corporation can dedicate $82.5 million in
construction capital, and 300 employees to staff the stores. On the average, the
convenience store nets $1.2 million annually, the standard store nets $2 million annually,
and the expanded-services store nets $2.6 million annually. How many of each should they
build to maximize revenue?
X1 ≥ 0, X2 ≥ 0, and X3 ≥ 0
Write the objective function: N(x1, x2, x3 ) = 1.2X1 + 2X2 + 2.6X3 (in millions)
We first need to open Excel and enter the data. There are two methods – one uses tables within the
worksheet while the other uses only the constraints. The second method is preferred when we know the
constraints since it is much faster!!!
Type in variable
assignments at the top of
the spreadsheet. Assign
decision variable cells.
Decision variable cells: D6,
F6, and H6 Construct table
from data in problem.
How you set up the table is
a matter of personal
preference. Not in table:
the constraint which
shows the sum is less than
or equal to eleven.
Formulas in cells:
Now that the table is set up, we can access the solver. Click on Tools. If you do not see Solver, then click
on Add-Ins and select Solver. Now click on Tools again and select Solver.
Target cell: Maximize cell. To enter it, just click on that cell.
Equal to Max
Changing Cells: Decision variable cells D6, F6, H6.
Subject to the constraints: Click on Add. Click on Cell Reference and then click in D15, then click on
Constraint and then click in F15. Be sure the test listed between them is <=.
The first of the spreadsheet is done the same – typing in the variable assignments and assigning decision
variable cells. Next, we type the constraints which will be used as a guide to type in the formulas in F9,
F10, F11. They are the same formulas as in the earlier spreadsheet – with different cell references. Finally,
we type in the maximize formula for reference and its formula in F13. We are now ready to access the
Solver like we did before. We should get the same results
Other Tutorials: