Spring 2012 finals

advertisement
AMS 341
Final Exam A
Prof. Tucker
Spring 2012
1. For the following two maximization problems in standard tableau form, determine what variable
should become basic and which should become non-basic according to the simplex algorithm (explain
your steps). If the current basic solution is optimal or if the l.p. is unbounded, explain why.
a)
Z
x1
x2
x3
s1
s2
s3
RHS
1
-1
4
0
0
-2
0
46
0
1
-2
0
0
-6
1
30
0
2
5
1
0
0
0
25
0
-1
4
0
1
-3
0
10
b)
Z
x1
x2
x3
s1
s2
s3
RHS
1
0
-1
5
0
-2
0
21
0
1
0
6
0
-6
0
30
0
0
1
5
1
2
0
25
0
0
-4
-4
0
5
1
18
2. For the given transportation problem, do the following
a) Use the Northwest corner rule to find an initial basic feasible solution
b) Use the Min Cost rule to find an initial basic feasible solution.
c) Starting with the initial bfs found in a), apply one round of the transportation simplex algorithm to
find a better bfs.
Demand 1
2
3
Amount of Supply
Supply 1
$9
$4
$4
40
2
$10
$7
$6
50
3
$8
$3
$7
60
Amount of Demand 50
45
55
3. Set-up the following transshipment problem as a transportation tableau (using method in text)
We have 15,000 units in Manhattan and 23,000 units in Buffalo to supply demands of 14,000 units in
Los Vegas and 18,000 units in Reno. Possible intermediate cities are Pittsburgh, Chicago, and Dallas.
The following table gives the inter-city shipment costs
To
Manh Buf
Pitt
Chi
Dal
LV
Reno
From Manh
--3
3
4
9
13
Buf
--4
5
5
11
12
Pitt
--0
3
3
8
11
Chi
---0
4
5
8
Dal
----0
2
5
LV
-------Reno
--------
4. Solve the following assignment problem for finding the min cost matching of letters with numbers.
A
B
C
D
(what is this minimum cost)
1
5
6
9
4
2
8
3
5
5
3
4
4
8
5
4
5
6
7
3
5. Consider the following project with given precedents, duration (in days), and speed up costs.
Activity
Predecessors
Duration Speed-up Cost per day
A
-5
3
B
A
3
4
C
A
5
6
D
C
7
5
E
C
3
4
F
D,E
6
6
G
B
5
3
H
G,F
8
4
a) Draw the project network.
b) Find the early start times for each event node and find the critical path.
c) Suppose the project must be completed in 25 days and any activity can be speeded up by at most 2
days by paying the given speed-up costs. Write the l.p. for solving this problem.
6. Model the following optimization as an integer program; give the objective function, constraints, and
indicate the integer values that each variable can assume.
The Armstrong Co. produces three types of bicycles at three different plants. Each plant can space for
up to 10 workers. Workers are paid $500 a week at plant one, $600 a week at plant two and $700 a
week at plant three. It costs $2000 a week to open up and maintain any of the plants. In a week, a
worker can produce the amounts of different bicycles at plant one ( or two or three) given in row one (or
two or three) in the following table
Type of Bicycle
A
B
C
Plant 1
10
5
12
2
7
12
7
3
8
8
8
Weekly demand for bicycles is: 100 of A, 80 units of B, and 120 units of C.
ALSO, at most one of plants 1 and 3 can be operating.
Minimize costs for meeting this demand.
7. Solve the following knapsack problem by dynamic programming
Max z = 5x1 + 4x2 + 3x3, xi integer
s.t. 4x1 + 3x2 + 2x3 <= 8
AMS 341
Final Exam B
Prof. Tucker
Spring 2012
1. For the following two maximization problems in standard tableau form, determine what variable
should become basic and which should become non-basic according to the simplex algorithm (explain
your steps). ). If the current basic solution is optimal or if the l.p. is unbounded, explain why.
a)
Z
x1
x2
x3
s1
s2
s3
RHS
1
0
-2
-3
0
2
0
26
0
1
5
-2
0
-6
0
32
0
0
6
0
1
5
0
26
0
0
-4
-4
0
3
1
18
b)
Z
x1
x2
x3
s1
s2
s3
RHS
1
0
-3
0
0
2
-5
40
0
1
-1
0
0
6
-8
32
0
0
4
1
0
3
5
22
0
0
3
0
1
-3
3
16
2. For the given transportation problem, do the following
a) Use the Northwest corner rule to find an initial basic feasible solution
b) Use the Min Cost rule to find an initial basic feasible solution.
c) Starting with the initial bfs found in a), apply one round of the transportation simplex algorithm to
find a better bfs.
Demand
1
2
3
Amount of Supply
Supply 1
$8
$7
$5
20
2
$6
$9
$4
50
3
$3
$5
$6
50
Amount of Demand 40
45
35
3. Set-up the following transshipment problem as a transportation tableau (using method in text)
We have 25,000 units in the Bronx and 45,000 units in Syracuse to supply demands of 24,000 units in
Los Vegas and 38,000 units in Reno. Possible intermediate cities are New Orleans, Chicago, and
Dallas. The following table gives the inter-city shipment costs
To
Bronx Syr
NO
Chi
Dal
LV
Reno
From Bronx
--4
4
4
10
13
Syr
--3
7
5
15
12
NO
--0
3
3
9
11
Chi
---0
4
8
8
Dal
----0
3
5
LV
-------Reno
--------
4. Solve the following assignment problem for finding the min cost matching of letters with numbers.
A
B
C
D
(what is this minimum cost)
1
5
4
8
3
2
2
7
4
4
3
3
3
7
4
4
5
4
6
2
5. Consider the following project with given precedents, duration (in days), and speed up costs.
Activity
Predecessors
Duration Speed-up Cost per day
A
-4
4
B
A
5
3
C
A
3
3
D
C
6
7
E
C
5
4
F
D,E
7
5
G
B
6
4
H
G,F
4
3
a) Draw the project network.
b) Find the early start times for each event node and find the critical path.
c) Suppose the project must be completed in 20 days and any activity can be speeded up by at most 3
days by paying the given speed-up costs. Write the l.p. for solving this problem.
6. Model the following optimization as an integer program (give the objective function, constraints, and
indicate the values (continuous or integer) that each variable can assume.
The Armstrong Co. produces three types of bicycles at three different plants. Each plant can space for
up to 19 workers. Workers are paid $700 a week at plant one, $600 a week at plant two and $500 a
week at plant three. It costs $1500 a week to open up and maintain any of the plants. In a week, a
worker can produce the amounts of different bicycles at plant one ( or two or three) given in row one (or
two or three) in the following table
Type of Bicycle
A
B
C
Plant 1
12
6
10
2
6
11
8
3
7
9
7
Weekly demand for bicycles is: 120 of A, 90 units of B, and 100 units of C.
ALSO, least one of plants 2 and 3 must be operating.
Minimize costs for meeting this demand.
7. Solve the following knapsack problem by dynamic programming
Max z = 6x1 + 4x2 + 5x3, xi integer
s.t. 4x1 + 2x2 + 3x3 <= 8
Download