Linear Programming Simplex Model Review Questions
Linear Programming Simplex Model Review Questions
Simplex Illustrations
A company can produce three products namely products A, B and C. The selling prices for the
products are as follows: -
The variable costs per unit for the products are as follows:
Products A B C
Direct material 8/= 5/= 7/=
Direct labour 6/= 4/= 5/=
Variable overheads 8/= 6/= 8/=
Total variable cost 22/= 15/= 20/=
The products are produced using a machine with a capacity of 400 hour per week and each product
uses 2 hours, 3 hours and 1 hour respectively on the machine’s capacity.
There are only 150 units available in a week of a special component, which is used in producing
products A and C. Each of products A and C uses I unit of a special component.
200 kgs only of a special alloy is available in the week. Product A uses 2 kgs per unit and Product
C uses 4 kgs per unit.
There is an agreement with a trade association to produce no more than 50 units of product B in
the week.
REQUIRED
Determine the production plan, which maximizes contribution.
Illustration
A company can produce three products namely products A, B and C. The selling prices for the
products are as follows: -
Product Selling price
A 30/=
B 20/=
C 30/=
The variable costs per unit for the products are as follows:
Products A B C
Direct material 8/= 5/= 7/=
Direct labour 6/= 4/= 5/=
Variable overheads 8/= 6/= 8/=
Total variable cost 22/= 15/= 20/=
The products are produced using a machine with a capacity of 400 hour per week and each
product uses 2 hours, 3 hours and 1 hour respectively on the machine’s capacity.
There are only 150 units available in a week of a special component, which is used in producing
products A and C. Each of products A and C uses I unit of a special component.
200 kgs only of a special alloy is available in the week. Product A uses 2 kgs per unit and Product
C uses 4 kgs per unit.
There is an agreement with a trade association to produce no more than 50 units of product B in
the week.
Required
Determine the production plan, which maximizes contribution.
Step 1: Present the problem numerically and identify an objective function and constraints
Let the number of unit to be produced for products A, B and C respectively be X 1, X2 and X3
Therefore the objective function will be to maximize
8X1 + 5X2 + 10X3
Subject to: -
2X1 + 3X2+X3 ≤ 400 (Machine hours constraint)
X1 + X3 ≤ 150 (Component constraint)
2X1 + 4X3 ≤ 200 (Alloy Constraint)
X2 ≤ 50 (Sales Constraint)
X1 , X2 , X3 ≥0 (Non-negative constraint)
Step 2: Introduce slack variable (the variable that represents unused capacity) to replace
inequalities with equal sign
2X1 + 3X2+X3 + S1 = 400 (Machine hours constraint)
X1 + X3 + S2 = 150 (Component constraint)
Prepared By: Godson Mkaro (Jr): MSc Finance & Investment, BSc. Computer Science, ATEC II, CPBE, CPA (T), &
Goodhope Mkaro (Sr): MBA(Finance), BCOM Acc (Hons), PGD in Tax Management, CPB, CISI(UK), CPA (T)
Phone: +255 717 /769 348 616 | Email: [email protected] |Website: www.covenantfinco.com Page | 2
PERFOMANCE MANAGEMENT (B5) COVENANT FINANCIAL CONSULTANTS LIMITED
Step 3: Formulate Initial matrix by equate objective function to Z and calling the resulting row,
Row 0. All other constraints should be named as Row 1, Row 2, Row 3 etc. NB numbers should be
on the RHS and letters on the LHS
Initial Matrix
Z - 8X1 - 5X2 - 10X3 =0 Row 0
2X1 + 3X2+X3 + S1 = 400 Row 1
X1 + X3 + S2 = 150 Row 2
2X1 + 4X3 + S3 = 200 Row 3
X2 + S4 = 50 Row 4
Solution variable is variable Z for Row 0 and any the variable that is in Row i but not in Row 0.
Initial Tableu
Row Solution Products Slack variables Solution
Variable X1 X2 X3 S1 S2 S3 S4 Quantity
Row 1 S1 2 3 1 1 0 0 0 400
Row 2 S2 1 0 1 0 1 0 0 150
Row 3 S3 2 0 4 0 0 1 0 200
Row 4 S4 0 1 0 0 0 0 1 50
Row 0 Z -8 -5 -10 0 0 0 0 0
Step 4: Try the initial basic solution for optimality. (Initial basic solution is optimal if all
variables have positive coefficient in Row 0). Initial Basic solution is the combination of
Solution variable and solution quantity
Interpretation
If the company does not produce any product, it will earn a contribution margin of zero while
remaining with unused 400 machine hours, 150 units of special components and 200 units of special
alloy
Is the above solution optimal?
No, there are variable(s) with negative coefficient in Row 0
What to do? Iteration
Step 5 improve it by choosing an entering variable (a variable with negative coefficient in Row
0) and make it the subject in the Row that has minimum ratio of RHS to the coefficient of
entering variable.
Prepared By: Godson Mkaro (Jr): MSc Finance & Investment, BSc. Computer Science, ATEC II, CPBE, CPA (T), &
Goodhope Mkaro (Sr): MBA(Finance), BCOM Acc (Hons), PGD in Tax Management, CPB, CISI(UK), CPA (T)
Phone: +255 717 /769 348 616 | Email: [email protected] |Website: www.covenantfinco.com Page | 3
PERFOMANCE MANAGEMENT (B5) COVENANT FINANCIAL CONSULTANTS LIMITED
Row 0
Z - 8X1 - 5X2 - 10X3 = 0
Z – 8(100 - 2X3 – 0.5S3) - 5X2 - 10X3 = 0
Z + 800 +16 X3 + 4S3)- 5X2 - 10X3 = 0
Z + 6 X3 + 4S3 - 5X2 = 800
Row 1
2X1 + 3X2+X3 + S1 = 400
2(100 - 2X3 – 0.5S3) + 3X2+X3 + S1 = 400
200 - 4 X3 - S3 + 3X2+X3 + S1 = 400
-3 X3 - S3 + 3X2 + S1 = 200
Row 2
X1 + X3 + S2 = 150
100 - 2X3 – 0.5S3 + X3 + S2 = 150
100 - X3 – 0.5S3 + S2 = 150
- X3 – 0.5S3 + S2 = 50
Row 4: No X1 so it remain as it is
X2 ≤ + S4 = 50
Prepared By: Godson Mkaro (Jr): MSc Finance & Investment, BSc. Computer Science, ATEC II, CPBE, CPA (T), &
Goodhope Mkaro (Sr): MBA(Finance), BCOM Acc (Hons), PGD in Tax Management, CPB, CISI(UK), CPA (T)
Phone: +255 717 /769 348 616 | Email: [email protected] |Website: www.covenantfinco.com Page | 4
PERFOMANCE MANAGEMENT (B5) COVENANT FINANCIAL CONSULTANTS LIMITED
Row 0, Z = 800
Row 1, S1 = 200
Row 2, S2 = 50
Row 3, X1 =100
Row 4, S4 = 50
Interpretation
If the company produces100 units of product A and none of B and C, it will earn a contribution
margin of 800 while remaining with unused 200 machine hours, 50 units of special components.
Row 0
Z + 6 X3 + 4 S3 – 5(50- S4) = 800
Z + 6 X3 + 4 S3 – 250 + S4 = 800
Z + 6 X3 + 4 S3 + S4 = 1050
Row 1
-3 X3 - S3 + 3(50 - S4) + S1 = 200
-3 X3 - S3 + 150 - S4 + S1 = 200
-3 X3 - S3 - S4 + S1 = 50
Row 2
- X3 – 0.5S3 + S2 = 50
Row 3
X1 + 2X3 + 0.5S3 = 200
Row 4
X2 + S4 = 50
Prepared By: Godson Mkaro (Jr): MSc Finance & Investment, BSc. Computer Science, ATEC II, CPBE, CPA (T), &
Goodhope Mkaro (Sr): MBA(Finance), BCOM Acc (Hons), PGD in Tax Management, CPB, CISI(UK), CPA (T)
Phone: +255 717 /769 348 616 | Email: [email protected] |Website: www.covenantfinco.com Page | 5
PERFOMANCE MANAGEMENT (B5) COVENANT FINANCIAL CONSULTANTS LIMITED
Final Matrix
Z + 6 X3 + 4 S3 + S4 = 1050
-3 X3 - S3 - S4 + S1 = 50
- X3 – 0.5S3 + S2 = 50
X1 + 2X3 + 0.5S3 = 200
X2 + S4 = 50
Interpretation
If the company produces 200 units of product A and 50 Units of B and none of C, it will earn a
contribution margin of 1050 while remaining with unused 50 machine hours and 50 units of special
components.
Advice
The company should produce 200 units of product A and 50 Units of B and none of C, in order to
earn a contribution margin of 1050 while remaining with unused 50 machine hours and 50 units of
special components.
Constraints with scarce resources are said to be binding whereas those constraints with no scarce
resources are said to be non-binding. Binding constraints have shadow prices whereas non-binding
constraints do not have shadow prices because the resources are not fully utilized.
Example
Refer to the example 1 above.
Required
Determine the shadow prices and interpret the results.
Here we can use the following methods to determine the shadow prices.
(i) Arithmetic Method
➢ Elimination Method
➢ Cramer’s Rule
➢ Gauss Elimination
Prepared By: Godson Mkaro (Jr): MSc Finance & Investment, BSc. Computer Science, ATEC II, CPBE, CPA (T), &
Goodhope Mkaro (Sr): MBA(Finance), BCOM Acc (Hons), PGD in Tax Management, CPB, CISI(UK), CPA (T)
Phone: +255 717 /769 348 616 | Email: [email protected] |Website: www.covenantfinco.com Page | 6
PERFOMANCE MANAGEMENT (B5) COVENANT FINANCIAL CONSULTANTS LIMITED
X2 = 79/4
X2 = 19.75
Substitute 15.375 for X1 and 19.75 for X2 into the objective function, we get
Z = 3,000 (15.375) + 4,000 (19.75)
Z = 125,125/=
Therefore if one machine hour is added the total contribution will increase by TShs 125/=. It follows
that if 1 extra machine hour will be available it will be bought provided its price is less than TShs
125/= because if its price is equal to TShs 125/= there will be no addition to the total contribution.
X1 = 101 2
180 6
4 2
4 6
Prepared By: Godson Mkaro (Jr): MSc Finance & Investment, BSc. Computer Science, ATEC II, CPBE, CPA (T), &
Goodhope Mkaro (Sr): MBA(Finance), BCOM Acc (Hons), PGD in Tax Management, CPB, CISI(UK), CPA (T)
Phone: +255 717 /769 348 616 | Email: [email protected] |Website: www.covenantfinco.com Page | 7
PERFOMANCE MANAGEMENT (B5) COVENANT FINANCIAL CONSULTANTS LIMITED
X1 = 15.375
X2 = 4 101
4 180
16
X1 X2
4 2 X1 = 101
0 4 X2 = 79
4X2 = 79
X2 =19.75
Subject to:
4X1 + 2X2 ≤100 ………………………(1)
4X1 + 6X2 ≤180 …………………….. (2)
For any LP problem model, there exists its dual/inverse formulation to the original LP problem
called primal problem which will be of an opposite nature i.e. if the primal is maximization then
the dual will be a minimization type and vice versa.
Subject to: -
4 A + 4 B ≥ 3,000
2 A + 6 B ≥ 4,000
We get A = 125/=and B = 625/=. These are shadow prices for machine hours (i.e. Constraint I) and
labour hour (i.e. Constraint II)
Example 4
Refer to the example 2 above.
Required
Determine the shadow prices and interpret the results.
Solution
➢ Product C (i.e. X3) : Shadow price = TShs 6/=
This means that if a single unit of Product C were produced total contribution will fall
by TShs 6/=
Machine hours and special components, slack variables S1 and S2, have zero shadow prices because
there they have spare capacity
NB: Contribution can also be verified through the shadow prices of the binding constraints as
follows:
Prepared By: Godson Mkaro (Jr): MSc Finance & Investment, BSc. Computer Science, ATEC II, CPBE, CPA (T), &
Goodhope Mkaro (Sr): MBA(Finance), BCOM Acc (Hons), PGD in Tax Management, CPB, CISI(UK), CPA (T)
Phone: +255 717 /769 348 616 | Email: [email protected] |Website: www.covenantfinco.com Page | 9