Professional Documents
Culture Documents
Dual Problems - Quiz - NUMBAS - SIT316 - Optimisation and Constraint Programming - Final
Dual Problems - Quiz - NUMBAS - SIT316 - Optimisation and Constraint Programming - Final
P − 25139
Maximize: 13x 1 − 9x 2 − 2x 3 − 2x 4
Subject to:
2x 2 − 6x 1 + 9x 3 + 8x 4 ≤ −13
7x 2 − 3x 1 + 5x 3 − 5x 4 ≤ 9
x1 , x2 , x3 , x4 ≥ 0
Dual problem (use variables "y1,y2,..." for y 1, y2 , . . . , and ">=" or "<=" for ≥ or ≤):
Minimize:
-13y1+9y2 −13y1 + 9y2
Expected answer: -9
-9
Expected answer: -2
-2
Expected answer: 8y1 - 5y2 8y1 − 5y2
8y1-5y2 8y1 − 5y2 ≥
Expected answer: -2
-2
Assuming that dual variables y i
≥ 0, i = 1, . . .
Score: 5/5
Question 2
Given LP problem: optimise cx subject to constraints Ax ≤ / ≥ b, formulate the dual
problem.
Subject to:
2x 2 − 15x 1 − 2x 3 + 11x 4 ≤ −2
x 1 + x 3 + 2x 4 ≤ −9
−3x 1 − 2x 2 − 5x 4 ≤ 13
x1 , x2 , x3 , x4 ≥ 0
Dual problem (use variables "y1,y2,..." for y 1, y2 , . . . , and ">=" or "<=" for ≥ or ≤):
Maximize:
-2y1-9y2+13y3 −2y1 − 9y2 + 13y3
Expected answer: 8
≥ 8
Expected answer: 7
7
Expected answer: 11
≥ 11
Assuming that dual variables y i
≤ 0, i = 1, . . .
Gap 0
Your answer is numerically correct.
You were awarded 1 marks.
Gap 1
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 2
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 3
Your answer is numerically correct.
You were awarded 0.8
marks.
Score: 5/5
Question 3
Given LP problem: optimise cx subject to constraints Ax ≤ / ≥ b, formulate the dual
problem.
Subject to:
x 3 − x 1 + 2x 4 ≤ −7
2x 1 + 3x 3 + 2x 4 ≥ 7
x1 , x2 , x3 , x4 ≥ 0
Formulate the dual problem (use variables "y1,y2,..." for y 1, y2 , . . . , and ">=" or "<=" for ≥
or ≤)
Minimize:
5y1-7y2+7y3 5y1 − 7y2 + 7y3
Expected answer: 10
≥ 10
Expected answer: -4
-4
Expected answer: -7
≥ -7
Gap 0
Your answer is numerically correct.
You were awarded 1 marks.
Gap 1
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 2
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 3
Your answer is numerically correct.
You were awarded 0.8
marks.
G 4
Score: 5/5
Question 4
Given LP problem: optimise cx subject to constraints Ax ≤ / ≥ b, formulate the dual
problem.
Maximize: 15x 1
− 12x 2 − 6x 3 + 12x 4 − 6x 5
Subject to:
3x 1 + 6x 2 + 14x 3 + 2x 4 + 11x 5 ≤ −2
x 3 + x 4 + 2x 5 ≤ −5
5x 2 − 3x 1 − 5x 3 − 2x 4 − x 5 ≥ −5
x 3 − 2x 2 + x 4 − 3x 1 ≥ 2
−4x 1 − 5x 2 − x 3 − 2x 4 + 2x 5 = −3
x 1 + 3x 2 + 5x 3 − 3x 4 − x 5 = 3
x1 , x2 , x3 , x4 , x5 ≥ 0
Formulate the dual problem (use variables "y1,y2,..." for y 1, y2 , . . . , and ">=" or "<=" for ≥
or ≤)
Minimize:
-2y1-5y2-5y3+2y4-3y5+3y6 −2y1 − 5y2 − 5y3 + 2y4 − 3y5 + 3y6
Expected answer: -2y1 - 5y2 - 5y3 + 2y4 - 3y5 + 3y6
−2y1 − 5y2 − 5y3 + 2y4 − 3y5 + 3y6
Expected answer: 15
≥ 15
Expected answer: -6
≥ -6
Expected answer: 12
≥ 12
Expected answer: -6
≥ -6
Gap 0
Your answer is numerically correct.
You were awarded 1 mark.
Gap 1
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 2
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 3
Your answer is numerically correct.
You were awarded 0.8
marks.
G
Score: 6/6
Question 5
Given LP problem: optimise cx subject to constraints Ax ≤ / ≥ b, formulate the dual
problem.
Subject to:
−15x 1 − 14x 2 + 2x 3 − 4x 4 + 8x 5 = −2
−x 2 − x 3 + 2x 4 − x 1 ≤ 5
5x 1 − 2x 2 − 3x 3 − 5x 4 + 3x 5 ≥ 1
−5x 1 − 4x 2 + 5x 3 + 4x 4 + 2x 5 = −2
5x 2 − 4x 1 + 3x 3 + 4x 4 + x 5 ≥ 1
5x 1 + 5x 3 + 4x 4 + x 5 ≤ 1
x1 , x2 , x3 , x4 , x5 ≥ 0
Formulate the dual problem (use variables "y1,y2,..." for y 1, y2 , . . . , and ">=" or "<=" for ≥
or ≤)
Maximize:
-2y1+5y2+y3-2y4+y5+y6 −2y1 + 5y2 + y3 − 2y4 + y5 + y6
Expected answer: -2y1 + 5y2 + y3 - 2y4 + y5 + y6
Expected answer: -6
≥ -6
Expected answer: -3
≥ -3
Expected answer: 11
≥ 11
-4y1+2y2-5y3+4y4+4y5+y6 −4y1 + 2y2 − 5y3 + 4y4 + 4y5 + y6
Expected answer: -4y1 + 2y2 - 5y3 + 4y4 + 4y5 + 4y6
−4y1 + 2y2 − 5y3 + 4y4 + 4y5 + 4y6
Expected answer: -6
≥ -6
Gap 0
Your answer is numerically correct.
You were awarded 1 mark.
Gap 1
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 2
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 3
Your answer is numerically correct.
You were awarded 0.8
marks.
Gap 4
Score: 5.2/6
Question 6
The following LP problem is given:
Minimize: 7x 1 − 12x 2 + x 3
Subject to:
x2 − x3 >= − 3
−5x 1 − 3x 2 − x 3 = − 4
−x 1 − 4x 2 + 2x 3 = − 3
3x 2 − 3x 3 >= − 4
4x 2 − 2x 1 + 4x 3 >= 1
x 1 , x 2 , x 3 ≥ 0.
Subject to:
Find the range/sign of each dual variable (put in the boxes "1" for "≤ 0", "2" for "≥ 0"
and "3" for "any number "):
( y , y , y , y , y , y ):
1 2 3 4 5 6
1 2 3 3 2 2
Expected answer: 1 2 3 3 2 2
Score: 5/5
Question 7
The following LP problem is given:
Subject to:
x3 − x2 + x4 + x5 <= 4
2x 2 + 5x 3 − 2x 4 + 2x 5 = 4
−3x 1 − 4x 2 + 4x 3 + x 4 + 2x 5 <= 2
−4x 1 − 5x 2 + 5x 3 − 3x 4 − 4x 5 = − 3
−3x 1 − 3x 2 − 4x 4 + 3x 5 <= − 1
x 1 , x 2 , x 3 , x 4 , x 5 ≥ 0.
Subject to:
Find the range/sign of each dual variable (put in the boxes "1" for "≤ 0", "2" for "≥ 0"
and "3" for "any number "):
( y , y , y , y , y , y ):
1 2 3 4 5 6
2 2 3 2 3 2
Expected answer: 2 2 3 2 3 2
Your answer is correct.
You were awarded 5 marks.
You scored 5 marks for this part.
Score: 5/5