Solving Linear Programming Using Excel Solver
Solving Linear Programming Using Excel Solver
4. You can find the Solver on the Data tab, in the Analyze group.
Second step: Formulate the Model from the Data found in the Question.
1. For Decision Variable, you just need to put the basic ADD/SUM formula of
=C15+D15 to get the answer for resources used.
2. For unit cost and unit profit however, you need to use SUMPRODUCT formula.
- Example 1, to get resources used for unit cost, you need to put
=SUMPRODUCT(C16:D16,C15:D15)
- Example 2, to get total profit for unit profit, you need to put
=SUMPRODUCT(C19:D19,C15:D15)
3. Bonus tips: Using the SUMPRODUCT formula of SUMPRODUCT (:,:) is easier
than using normal formula.
- Example of normal formula for total profit, =C19*C15+D19*D15.
Fourth step: Trial and Error
1. For this step, we can put it random numbers, limited to the constraint. (Number that
we put in must not be higher than the constraint.)
2. It is advice to play around at this part (trial and error) before going to the next step.
(The main part.)
3. You can see from the picture that we put 500 for Model A and 1000 for Model B,
getting us a total profit of 55000, total decision variable of 1500 and total unit cost
of 200,000.
4. This solution is not yet completed because one of the resources used is not been
optimized. It is not necessary to use trial and error. We shall describe next how the
Excel Solver can be used to quickly find the optimal solution.
Fifth step: Solve the Model
2. Enter the solver parameters. The result should be consistent with the picture below.
- Put Total Profit at cell E19 or $E$19 in Set Objective section.
- Put Variable Decision at cell C15 and cell D15 or $C$15:$D$15 in By Changing
Variable Cells section.
3. Click Add to enter the following constraint.
- Subject to the Constraints for VB, F15 < = H15 or $F$15 < = $H$15.
- Subject to the Constraints for UC, F16 < = H16 or $F$16 < = $H$15.