Linear Programming - Solver
Linear Programming - Solver
Excel Solver
The Linear Programming Model
X1 - X2 ≤ 350 (Mix)
All x’s ≥ 0
Setting Up the Excel Spreadsheet
• Use one column for each decision variable
and label each column.
• Leave a blank row where the results will
be calculated – row of “Changing Cells”
and one more blank row below that
• Label each row (changing cells, objective
function and constraints) to the left with a
brief description.
• Leave one column in between the column
for the last variable and the sign of the
constraint for the total of left hand side.
– Label the row as Total LHS (for left hand side)
Input Coefficients/ Label Rows
Changing Cells Label Changing Cells
Where results will be given
Label for
Left Hand Side Total
Constraint
Objective Function Coefficients
Labels
Label
Enter SUMPRODUCT Formula for
the Total Proift
Highlight cells
C6 and D6
=SUMPRODUCT($C$4:$D$4,C6:D6)
is equivalent to
=$C$4*C6+$D$4*D6
Drag SUMPRODUCT Formula
Down to get LHS Totals
+
Go to Tools
Select Solver
Note: If Solver is not in Tools menu,
select Add-Ins from Tools menu and
check Solver.
$E$7 $G$7
≤
Click on the cell reference
Click on a cell reference =
containing the
containing ≥
corresponding RHS value
a total LHS value
This is what we enter in the example given here; then we click OK.
Clicking Options
Click
OK
Check
Assume Linear Model
Check
Assume Non-Negative
Most of the rest of the entries deal with integer and nonlinear models.
Click Solve
Click
Solve
Solver Solution
Highlight
Answer
Sensitivity
Click
OK
The Answer Report
Optimal Objective
Function Value
Optimal Solution