The University of North Carolina at Pembroke
Using SOLVER in MicroSoft Excel

 


Link to Dr. Frederick's page

To perform a linear programming problem in Excel, follow these steps:

1.  In an Excel spreadsheet, set up a matrix of coefficients and limits for the constraints and for the objective function.
 

A B C D E F
 1 Constraints X1 X2 X3 Formulas Limits
 2 Labor time 64 33 14 =sumproduct(b2:d2,b$7:d$7) 400
 3 Machine time 50 60 9 =sumproduct(b3:d3,b$7:d$7) 400
 4 Management time 3 3 3 =sumproduct(b4:d4,b$7:d$7) 80
 5
 6 Objective Function 3.5 0.45 2.2 =sumproduct(b6:d6,b$7:d$7)
 7 Decision Variables 1 1 1
 8

2.  Click on Tools, then Data Analysis, then Solver.

3.  Enter the instructions in the Solver Parameters box.

4.    Solver will try to solve your problem.  If it is successful, it will present a box asking what results you want it to show: the answer report, the sensitivity report, and/or the limits report.  If it is not successful, it will give a message such as "did not converge in time allowed" or "no feasible region".  If this happens check the following: