TAIBAH UNIVERSITY College of Science, Dept. of Mathematics Al Madinah Al Munawwarah Linear Programming, MATH 331 First Term 1433/1434 (2012/2013) Dr. Mostafa Zahri Final Exam Linear Programming, MATH 331 25/2/1434- Duration 120Minutes Problem 1. Given the following Linear Program: (P): max x 1 +2x 2 s.t. x 1 + x 2 ≤ 25 2x 1 + x 2 ≤ 40 x 1 +2x 2 ≤ 40 x 1 ,x 2 ≥ 0 1. Draw the feasible region and solve graphically the LP problem. 2. Find the five corners of the feasible region! 3. Evaluate the objective function at each corner point! 4. Deduce the optimal solution of the LP problem! 5. Is the solution unique! Justify your answer! Solution 1. Draw the feasible region and solve graphically the LP problem. First, we draw the lines (see figure bellow) x 1 + x 2 = 25 2x 1 + x 2 = 40 x 1 +2x 2 = 40 then, we determine the intersection region between the corresponding half-spaces. Thus the feasible solution set is given as shown in the figure bellow: To graphically solve the LP problem, we draw the objective function for a constant for example x 1 +2x 2 = 30 and we translate it to the boundary of the polyhedral (the corners). We remark that the intersection between the objective function and the feasible solution set is the section defined by x 1 +2x 2 = 40 x 1 +2x 2 ≤ 40 The solution corners are (10, 15) and (0, 20) solution of the following systems: x 1 + x 2 = 25 2x 1 + x 2 ≤ 40 and x 1 =0 x 1 +2x 2 ≤ 40 1
24
Embed
Final Exam Linear Programming, MATH 331 25/2/1434 ... UNIVERSITY College of Science, Dept. of Mathematics Al Madinah Al Munawwarah Linear Programming, MATH 331 First …
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
Final Exam Linear Programming, MATH 33125/2/1434- Duration 120Minutes
1. Draw the feasible region and solve graphically the LP problem.2. Find the five corners of the feasible region!3. Evaluate the objective function at each corner point!4. Deduce the optimal solution of the LP problem!5. Is the solution unique! Justify your answer!
Solution
1. Draw the feasible region and solve graphically the LP problem.First, we draw the lines (see figure bellow)
x1 + x2 = 252x1 + x2 = 40x1 + 2x2 = 40
then, we determine the intersection region between the corresponding half-spaces. Thus thefeasible solution set is given as shown in the figure bellow: To graphically solve the LPproblem, we draw the objective function for a constant for example
x1 + 2x2 = 30
and we translate it to the boundary of the polyhedral (the corners). We remark that theintersection between the objective function and the feasible solution set is the section definedby
x1 + 2x2 = 40x1 + 2x2 ≤ 40
The solution corners are (10, 15) and (0, 20) solution of the following systems:
x1 + x2 = 252x1 + x2 ≤ 40
andx1 = 0x1 + 2x2 ≤ 40
1
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
0 5 10 15 20 25 30 35 400
5
10
15
20
25
30
35
40
x2
x1
F.S.
x1+x
2=25
x1+2x
2=40
2x1+x
2=40
0 5 10 15 20 25 30 35 400
5
10
15
20
25
30
35
40
x2
x1
F.S.
2x1+x
2=40
x1+x
2=25
Objective function x1+2x
2=30
x1+2x
2=40
Optimal Solution Set x1+2x
2=40
2. Find the five corners of the feasible region!The five corners of the feasible region are:
(0, 0) The trivial solution.
(0, 20) The intersection of the lines x2−axis and x1 + 2x2 = 40.
(20, 0) The intersection of the lines x1−axis and 2x1 + x2 = 40.
(15, 10) The intersection of the lines x1 + x2 = 25 and 2x1 + x2 = 40.
(10, 15) The intersection of the lines x1 + x2 = 25 and x1 + 2x2 = 40.
3. Evaluate the objective function at each corner point!
(0, 0) x1 + 2x2 = 0.
A := (0, 20) x1 + 2x2 = 40.(Optimal)
(20, 0) x1 + 2x2 = 20.
(15, 10) x1 + 2x2 = 35.
B := (10, 15) x1 + 2x2 = 40. (Optimal)
2
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
4. Deduce the optimal solution of the LP problem!See the table above.
5. Is the solution unique! Justify your answer!The solution of the LP is not unique.Since the LP-Problem admits to optimal solution A := (10, 15) and B := (0, 20) all convexcombination of A and B are also solution of the LP-Problem, namely
λA + (1 − λ)B; λ ∈ [0, 1].
This convex combination determine the section already shown in question 1.
3
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
Problem 2. Given the following Dual Linear Program:
1. Write the Primal program (P) associated to the Dual program (D).2. Write the strong duality theorem for (P) and (D).3. Write the complementary slackness theorem.4. Solve the program (P).
Solution
1. Write the Primal program (P) associated to the Dual program (D).
1. Write the initial simplex tableau for (P).2. Find the pivot element and give the Basis Variable Solution.3. Compute the second Simplex tableau and give the Basis Variable Solution.4. Compute the third Simplex tableau and give the Basis Variable Solution.5. Deduce the optimal solution of (P).
2. Find the pivot element and give the Basis Variable Solution.Since the minimum of the objective function are equal, we chose first column as pivot columnand it follows that the pivot row is also the second one because of the minimum property50/2 < 30/1 therefore the pivot element is a2,1 = 2
BV x1 x2 x3 x4 x5 b Ratiox4 1 2 1 1 0 30 30/1
x5 2 2 1 0 1 50 50/2-1 -1 -1 0 0 0
5
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
The Basis variable according to the simplex tableau above is
(x1, x2, x3, x4, x5) = (0, 0, 0, 30, 50).
3. Compute the second Simplex tableau and give the Basis Variable Solution.The pivot column is the third column (because of (-1/2)) and the pivot row is also the firstone because of the minimum property 10 < 50 therefore the pivot element is a1,3 = 1/2
BV x5 x2 x3 x4 x5 b Ratio
x4 0 1 1/2 1 -1/2 5 5/(1/2)
x1 1 1 1/2 0 1/2 25 25/(1/2)0 0 -1/2 0 1/2 25
The Basis variable according to the simplex tableau above is
(x1, x2, x3, x4, x5) = (25, 0, 0, 5, 0).
4. Compute the third Simplex tableau and give the Basis Variable Solution.
1. Draw the feasible region and solve graphically the LP problem.2. Find the five corners of the feasible region!3. Evaluate the objective function at each corner point!4. Deduce the optimal solution of the LP problem!5. Is the solution unique! Justify your answer!
Solution
1. Draw the feasible region and solve graphically the LP problem.First, we draw the lines (see figure bellow)
x1 + x2 = 252x1 + x2 = 40x1 + 2x2 = 40
then, we determine the intersection region between the corresponding half-spaces. Thus thefeasible solution set is given as shown in the figure bellow: To graphically solve the LPproblem, we draw the objective function for a constant for example
x1 + 2x2 = 30
and we translate it to the boundary of the polyhedral (the corners). We remark that theintersection between the objective function and the feasible solution set is the section definedby
x1 + x2 = 252x1 + x2 ≤ 40
The solution corners are (15, 10) and (20, 0) solution of the following systems:
x1 + x2 = 252x1 + x2 ≤ 40
andx2 = 02x1 + x2 ≤ 40
1
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
0 5 10 15 20 25 30 35 400
5
10
15
20
25
30
35
40
x2
x1
F.S.
x1+x
2=25
x1+2x
2=40
2x1+x
2=40
0 5 10 15 20 25 30 35 400
5
10
15
20
25
30
35
40
x1
F.S. x1+2x
2=40
2x1+x
2=40
x1+x
2=25
Objective function 2x1+x
2=30
x2 Optimal Solution Set 2x
1+x
2=40
OptimalSolution
2. Find the five corners of the feasible region!The five corners of the feasible region are:
(0, 0) The trivial solution.
(0, 20) The intersection of the lines x2−axis and x1 + 2x2 = 40.
(20, 0) The intersection of the lines x1−axis and 2x1 + x2 = 40.
(15, 10) The intersection of the lines x1 + x2 = 25 and 2x1 + x2 = 40.
(10, 15) The intersection of the lines x1 + x2 = 25 and x1 + 2x2 = 40.
3. Evaluate the objective function at each corner point!
(0, 0) 2x1 + x2 = 0.
(0, 20) 2x1 + x2 = 20.
A := (20, 0) 2x1 + x2 = 40.(Optimal)
B := (15, 10) 2x1 + x2 = 40.(Optimal)
(10, 15) 2x1 + x2 = 35.
2
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
4. Deduce the optimal solution of the LP problem!See the table above.
5. Is the solution unique! Justify your answer!The solution of the LP is not unique.Since the LP-Problem admits to optimal solution A and B all convex combination of A andB are also solution of the LP-Problem, namely
λA + (1 − λ)B; λ ∈ [0, 1].
This convex combination determine the section already shown in question 1.
3
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
Problem 5. Given the following Dual Linear Program:
1. Write the Primal program (P) associated to the Dual program (D).2. Write the strong duality theorem for (P) and (D).3. Write the complementary slackness theorem.4. Solve the program (P).
Solution
1. Write the Primal program (P) associated to the Dual program (D).
1. Write the initial simplex tableau for (P).2. Find the pivot element and give the Basis Variable Solution.3. Compute the second Simplex tableau and give the Basis Variable Solution.4. Compute the third Simplex tableau and give the Basis Variable Solution.5. Deduce the optimal solution of (P).
2. Find the pivot element and give the Basis Variable Solution.Since the minimum of the objective function are equal, we chose first column as pivot columnand it follows that the pivot row is also the second one because of the minimum property50/2 < 30/1 therefore the pivot element is a2,1 = 2
BV x1 x2 x3 x4 x5 b Ratiox4 1 2 1 1 0 30 30/1
x5 2 2 1 0 1 50 50/2-1 -1 -1 0 0 0
5
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
The Basis variable according to the simplex tableau above is
(x1, x2, x3, x4, x5) = (0, 0, 0, 30, 50).
3. Compute the second Simplex tableau and give the Basis Variable Solution.The pivot column is the third column (because of (-1/2)) and the pivot row is also the firstone because of the minimum property 10 < 50 therefore the pivot element is a1,3 = 1/2
BV x5 x2 x3 x4 x5 b Ratio
x4 0 1 1/2 1 -1/2 5 5/(1/2)
x1 1 1 1/2 0 1/2 25 25/(1/2)0 0 -1/2 0 1/2 25
The Basis variable according to the simplex tableau above is
(x1, x2, x3, x4, x5) = (25, 0, 0, 5, 0).
4. Compute the third Simplex tableau and give the Basis Variable Solution.
1. Draw the feasible region and solve graphically the LP problem.2. Find the five corners of the feasible region!3. Evaluate the objective function at each corner point!4. Deduce the optimal solution of the LP problem!5. Is the solution unique! Justify your answer!
Solution
1. Draw the feasible region and solve graphically the LP problem.First, we draw the lines (see figure bellow)
x1 + x2 = 252x1 + x2 = 40x1 + 2x2 = 40
then, we determine the intersection region between the corresponding half-spaces. Thus thefeasible solution set is given as shown in the figure bellow: To graphically solve the LPproblem, we draw the objective function for a constant for example
x1 + 2x2 = 30
and we translate it to the boundary of the polyhedral (the corners). We remark that theintersection between the objective function and the feasible solution set is the section definedby
x1 + 2x2 = 40x1 + 2x2 ≤ 40
The solution corners are (10, 15) and (0, 20) solution of the following systems:
x1 + x2 = 252x1 + x2 ≤ 40
andx1 = 0x1 + 2x2 ≤ 40
1
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
0 5 10 15 20 25 30 35 400
5
10
15
20
25
30
35
40
x2
x1
F.S.
x1+x
2=25
x1+2x
2=40
2x1+x
2=40
0 5 10 15 20 25 30 35 400
5
10
15
20
25
30
35
40
x2
x1
F.S.
2x1+x
2=40
x1+x
2=25
Objective function x1+2x
2=30
x1+2x
2=40
Optimal Solution Set x1+2x
2=40
2. Find the five corners of the feasible region!The five corners of the feasible region are:
(0, 0) The trivial solution.
(0, 20) The intersection of the lines x2−axis and x1 + 2x2 = 40.
(20, 0) The intersection of the lines x1−axis and 2x1 + x2 = 40.
(15, 10) The intersection of the lines x1 + x2 = 25 and 2x1 + x2 = 40.
(10, 15) The intersection of the lines x1 + x2 = 25 and x1 + 2x2 = 40.
3. Evaluate the objective function at each corner point!
(0, 0) x1 + 2x2 = 0.
A := (0, 20) x1 + 2x2 = 40.(Optimal)
(20, 0) x1 + 2x2 = 20.
(15, 10) x1 + 2x2 = 35.
B := (10, 15) x1 + 2x2 = 40. (Optimal)
2
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
4. Deduce the optimal solution of the LP problem!See the table above.
5. Is the solution unique! Justify your answer!The solution of the LP is not unique.Since the LP-Problem admits to optimal solution A := (10, 15) and B := (0, 20) all convexcombination of A and B are also solution of the LP-Problem, namely
λA + (1 − λ)B; λ ∈ [0, 1].
This convex combination determine the section already shown in question 1.
3
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
Problem 8. Given the following Dual Linear Program:
1. Write the Primal program (P) associated to the Dual program (D).2. Write the strong duality theorem for (P) and (D).3. Write the complementary slackness theorem.4. Solve the program (P).
Solution
1. Write the Primal program (P) associated to the Dual program (D).
1. Write the initial simplex tableau for (P).2. Find the pivot element and give the Basis Variable Solution.3. Compute the second Simplex tableau and give the Basis Variable Solution.4. Compute the third Simplex tableau and give the Basis Variable Solution.5. Deduce the optimal solution of (P).
2. Find the pivot element and give the Basis Variable Solution.Since the minimum of the objective function are equal, we chose first column as pivot columnand it follows that the pivot row is also the second one because of the minimum property50/2 < 30/1 therefore the pivot element is a2,1 = 2
BV x1 x2 x3 x4 x5 b Ratiox4 1 2 1 1 0 30 30/1
x5 2 2 1 0 1 50 50/2-1 -1 -1 0 0 0
5
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
The Basis variable according to the simplex tableau above is
(x1, x2, x3, x4, x5) = (0, 0, 0, 30, 50).
3. Compute the second Simplex tableau and give the Basis Variable Solution.The pivot column is the third column (because of (-1/2)) and the pivot row is also the firstone because of the minimum property 10 < 50 therefore the pivot element is a1,3 = 1/2
BV x5 x2 x3 x4 x5 b Ratio
x4 0 1 1/2 1 -1/2 5 5/(1/2)
x1 1 1 1/2 0 1/2 25 25/(1/2)0 0 -1/2 0 1/2 25
The Basis variable according to the simplex tableau above is
(x1, x2, x3, x4, x5) = (25, 0, 0, 5, 0).
4. Compute the third Simplex tableau and give the Basis Variable Solution.
1. Draw the feasible region and solve graphically the LP problem.2. Find the five corners of the feasible region!3. Evaluate the objective function at each corner point!4. Deduce the optimal solution of the LP problem!5. Is the solution unique! Justify your answer!
Solution
1. Draw the feasible region and solve graphically the LP problem.First, we draw the lines (see figure bellow)
x1 + x2 = 252x1 + x2 = 40x1 + 2x2 = 40
then, we determine the intersection region between the corresponding half-spaces. Thus thefeasible solution set is given as shown in the figure bellow: To graphically solve the LPproblem, we draw the objective function for a constant for example
x1 + 2x2 = 30
and we translate it to the boundary of the polyhedral (the corners). We remark that theintersection between the objective function and the feasible solution set is the section definedby
x1 + x2 = 252x1 + x2 ≤ 40
The solution corners are (15, 10) and (20, 0) solution of the following systems:
x1 + x2 = 252x1 + x2 ≤ 40
andx2 = 02x1 + x2 ≤ 40
1
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
0 5 10 15 20 25 30 35 400
5
10
15
20
25
30
35
40
x2
x1
F.S.
x1+x
2=25
x1+2x
2=40
2x1+x
2=40
0 5 10 15 20 25 30 35 400
5
10
15
20
25
30
35
40
x1
F.S. x1+2x
2=40
2x1+x
2=40
x1+x
2=25
Objective function 2x1+x
2=30
x2 Optimal Solution Set 2x
1+x
2=40
OptimalSolution
2. Find the five corners of the feasible region!The five corners of the feasible region are:
(0, 0) The trivial solution.
(0, 20) The intersection of the lines x2−axis and x1 + 2x2 = 40.
(20, 0) The intersection of the lines x1−axis and 2x1 + x2 = 40.
(15, 10) The intersection of the lines x1 + x2 = 25 and 2x1 + x2 = 40.
(10, 15) The intersection of the lines x1 + x2 = 25 and x1 + 2x2 = 40.
3. Evaluate the objective function at each corner point!
(0, 0) 2x1 + x2 = 0.
(0, 20) 2x1 + x2 = 20.
A := (20, 0) 2x1 + x2 = 40.(Optimal)
B := (15, 10) 2x1 + x2 = 40.(Optimal)
(10, 15) 2x1 + x2 = 35.
2
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
4. Deduce the optimal solution of the LP problem!See the table above.
5. Is the solution unique! Justify your answer!The solution of the LP is not unique.Since the LP-Problem admits to optimal solution A and B all convex combination of A andB are also solution of the LP-Problem, namely
λA + (1 − λ)B; λ ∈ [0, 1].
This convex combination determine the section already shown in question 1.
3
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa Zahri
Problem 11. Given the following Dual Linear Program:
1. Write the Primal program (P) associated to the Dual program (D).2. Write the strong duality theorem for (P) and (D).3. Write the complementary slackness theorem.4. Solve the program (P).
Solution
1. Write the Primal program (P) associated to the Dual program (D).
1. Write the initial simplex tableau for (P).2. Find the pivot element and give the Basis Variable Solution.3. Compute the second Simplex tableau and give the Basis Variable Solution.4. Compute the third Simplex tableau and give the Basis Variable Solution.5. Deduce the optimal solution of (P).
2. Find the pivot element and give the Basis Variable Solution.Since the minimum of the objective function are equal, we chose first column as pivot columnand it follows that the pivot row is also the second one because of the minimum property50/2 < 30/1 therefore the pivot element is a2,1 = 2
BV x1 x2 x3 x4 x5 b Ratiox4 1 2 1 1 0 30 30/1
x5 2 2 1 0 1 50 50/2-1 -1 -1 0 0 0
The Basis variable according to the simplex tableau above is
(x1, x2, x3, x4, x5) = (0, 0, 0, 30, 50).
3. Compute the second Simplex tableau and give the Basis Variable Solution.The pivot column is the third column (because of (-1/2)) and the pivot row is also the firstone because of the minimum property 10 < 50 therefore the pivot element is a1,3 = 1/2
5
TAIBAH UNIVERSITY
College of Science, Dept. of MathematicsAl Madinah Al Munawwarah
Linear Programming, MATH 331First Term 1433/1434 (2012/2013)
Dr. Mostafa ZahriBV x5 x2 x3 x4 x5 b Ratio
x4 0 1 1/2 1 -1/2 5 5/(1/2)
x1 1 1 1/2 0 1/2 25 25/(1/2)0 0 -1/2 0 1/2 25
The Basis variable according to the simplex tableau above is
(x1, x2, x3, x4, x5) = (25, 0, 0, 5, 0).
4. Compute the third Simplex tableau and give the Basis Variable Solution.