CMPG 312 Semester Test Preparation
CMPG 312 Semester Test Preparation
CMPG 312 Semester Test Preparation
In preparation for the Semester Test, make sure you practise the following:
Hint: QM for Windows is available for download on eFundi. You are welcome to use it to check
your answers once you’ve calculated them. If you find other examples that you want to practise
but can’t find the answers to, this is a good tool to use to validate your answers and see where
you went wrong. There’s a manual uploaded to eFundi as well with notes in the textbook in
certain sections as well. DO NOT use it as your primary calculation tool as it will not be
available to you during tests nor during the exam so you will need to calculate everything
yourself. I advise that you ONLY use the tool to validate your answers.
Practise Exercises
1. Solve the problem below using the simplex method
Maximise Revenue = 3X1 + 2X2 + X3
Subject to:
4X1 + X2 + 3X3 = 30
Where:
Hint: Use slack and artificial variables. Read more about when slack, surplus and artificial variables
are used.
2. Solve the problem below using the simplex method
Maximise Investment = X1 - X2 + X3
Subject to:
Where:
Hint: Use slack and artificial variables. Read more about when slack, surplus and artificial variables
are used.
- A change of signs in the second constraint. New constraint: X1 + X3 >= 25, replacing the second
constraint.
- A change in the first constraint from 40 to 45
- A change in the second constraint from 25 to 20
- A change in the third constraint from 2X2 + 3X3 to 3X2 + 2X3
Subject to:
2X1 + X2 >= 6
X1 + X2 >= 4
Where:
X1, X2 >= 0
4. Solve the problem below using the simplex method
Subject to:
X1 + X2 + X3 >= 6 (first constraint)
Where:
- A change of signs in the first constraint. New constraint: X1 + X2 + X3 <= 6, replacing the first
constraint.
- A change in the first constraint from 6 to 8
- A change in the second constraint from 8 to 6
- A change in the third constraint from -X1 + 2X2 + 2X3 to 2X1 + 2X2 - 1X3
Subject to:
X1 + 2 X2 + X3 + 5 X4 150
X2 - 4 X3 + 8 X4 = 70
6 X1 + 7 X2 + 2 X3 - X4 120
X1, X2, X3, X4 0
6. Solve the problem below using the dual formulation simplex method
Minimise Cost = 3x + 9y
Subject to:
2x + y >= 8
x + 2y >= 8
x, y>= 0
Hint: Focus on being able to transpose minimisation problems (here’s a good guide on how
to do that: https://www.youtube.com/watch?v=8_D3gkrgeK8)
7. Solve the problem below using the dual formulation simplex method
Subject to:
x1 - x2 + x3 - x4 >= 10
x1 - 2x2 + 3x3 - 4x4 >= 6
3x1 - 4x2 + 5x3 - 6x4 >= 15
x1, x2, x3, x4 >= 0
8. Solve the problem below using the dual formulation simplex method
Minimise Cost = 2b + 3c + 4d + 5e
Subject to:
1b – 1c + 1d – 1e >= 10
1b – 2c + 3d – 4e >= 6
3b – 4c + 5d – 6e >= 15
b, c, d, e >= 0