Docsity

Solutions for Exam 1 - Linear Programming and Network Flows | MATH 444, Exams of Computer Science

Toggle sidebar
bg1
Exam 1
1. Use the simplex algorithm to solve the problem:
123
12 3
123 23
123
23 10
28
max 2 3 6 when 236
,, 0
xxx
xx x
xxx xx
xxx
++≤
++ ≤
++
+≤
≥
.
Make sure that each step employed is the step suggested by the simplex algorithm.
The initial tableau is given by
23110010
1120108
0230016
2360000
.
The next tableau is given by
2 4/3 0 1 0 1/3 8
1 1/3 0 0 1 2/3 4
02/31 0 01/32
2 1000 212
−
−−
−−−
.
The final tableau is given by
0201 210
1 1/3 0 0 1 2/3 4
02/31 0 01/32
0 1/3 0 0 2 2/3 20
−
−−
−−−−
.
The solution is given by 123
ˆˆˆ
4, 0, 2xxx===.
2. Convert the following problem to the form of a standard dual problem. Apply the simplex
method to the corresponding primal problem. Get the minimizing 123
ˆˆˆˆ
T
λλλλ

=

from
the final tableau.
The converted problem is given by
123
123 13
123
352 4
min 18 20 2 when 6 8 9
,, 0
λλλ
λλλ λλ
λλλ
−++≥−
++ −≥
≥
.
The corresponding primal problem is given by
pf3
pf4

Partial preview of the text

Download Solutions for Exam 1 - Linear Programming and Network Flows | MATH 444 and more Exams Computer Science in PDF only on Docsity!

Exam 1

1. Use the simplex algorithm to solve the problem:

1 2 3 1 2 3 (^1 2 3 2 ) 1 2 3

max 2 3 6 when (^2 3 ) , , 0

x x x x x x x x x (^) x x x x x

Make sure that each step employed is the step suggested by the simplex algorithm. The initial tableau is given by 2 3 1 1 0 0 10 1 1 2 0 1 0 8 0 2 3 0 0 1 6 2 3 6 0 0 0 0

The next tableau is given by 2 4 / 3 0 1 0 1/ 3 8 1 1/ 3 0 0 1 2 / 3 4 0 2 / 3 1 0 0 1/ 3 2 2 1 0 0 0 2 12

The final tableau is given by 0 2 0 1 2 1 0 1 1/ 3 0 0 1 2 / 3 4 0 2 / 3 1 0 0 1/ 3 2 0 1/ 3 0 0 2 2 / 3 20

The solution is given by x ˆ 1 = 4, x ˆ 2 = 0, x ˆ 3 = 2.

2. Convert the following problem to the form of a standard dual problem. Apply the simplex

method to the corresponding primal problem. Get the minimizing λ ˆ T^ = ^ λ ˆ 1 (^) λ ˆ 2^ λ ˆ 3  from the final tableau. The converted problem is given by 1 2 3 1 2 3 1 3 1 2 3

min 18 20 2 when 6 8 9 , , 0

λ λ λ λ λ λ λ λ λ λ λ

The corresponding primal problem is given by

1 2 1 (^1 2 1 ) 1 2

max 4 9 when (^2 8 ) , 0

x x x x x (^) x x x x

^ −^ +^ ≤

The initial tableau is given by 3 6 1 0 0 18 5 0 0 1 0 20 2 8 0 0 1 2 4 9 0 0 0 0

The next tableau is given by 1/ 2 1 1/ 6 0 0 3 5 0 0 1 0 20 2 0 4 / 3 0 1 26 1/ 2 0 3 / 2 0 0 27

The final tableau is given by 0 1 1/ 6 1/10 0 5 1 0 0 1/ 5 0 4 0 0 4 / 3 2 / 5 1 34 0 0 −3 / 2 −1/10 0 − 29

The solution is given by λ ˆ 1^ = 3 / 2, λ ˆ 2^ = 1/10, λ ˆ 3 = 0.

3. Complete the first phase of the two-phase method to determine a feasible point of a problem

with constraints: 1 2 3 1 2 3 1 2 3

x x x x x x x x x

−^ +^ +^ ≤ −

Make sure that each step employed is the step suggested by the first phase of the two-phase method. The augmented system is given by 1 2 3 1 1 2 3 2

x x x y x x x y

The auxiliary system is given by 1 2 3 1 1 1 2 3 2 2

x x x y z x x x y z

5. Consider the problem:

1 1 2 1 2 1 2 1 2 1 2

max 2 when^2 27 , 0

x x x x x x^ x x x x x

+ ^ ≥

(a) Use the graphical method to determine the solution.

(b) Convert the problem to standard form and use complementary slackness to get the solution to the dual problem. The converted problem is given by 1 1 2 1 2 1 2 1 2 1 2

max 2 when^2 27 , 0

x x x x x x^ x x x x x

^ ≤

+  −^ +^ ≤

The corresponding dual problem is given by 1 2 3 4 1 4 2 3 4 1 2 3 4

min 10 27 when 2 , , , 0

λ λ λ λ λ λ λ λ λ λ λ λ λ

With x ˆ 1 = 10, x ˆ 2 = 20 there is slack in the second and fourth inequality. It follows that λ ˆ 2^ = λ ˆ 4 = 0. Both inequalities in the dual problem must in fact be satisfied with equality, and it follows that λ ˆ 3^ = 2 and also λ ˆ 1^ = 5. (c) Use the Verification Theorem to prove that your solution is indeed optimal. Both objectives evaluate to 50 so both solutions are optimal.