lOMoARcPSD| 58583460
Extra homework_Soluon:
CHAPTER 6: Sensivity analysis and Dual Problem
*Oponal (not in nal exam)*
I.
Queson 1 (allowable range)
Consider the following problem
Maximize Z=3 x
1
+x
2
+2x
3
subject ¿
x
1
x
2
+2x
3
20 2
x
1
+x
2
x
3
10
¿
x
1
0, x
2
0,x
3
0
Let x
4
and x
5
denote the slack variables for respecve funconal constraints. Aer we apply the simplex
method, the nal simplex tableau is:
Basic
variable
Eq.
Coecient of:
RHS
x_1
x_2
x_3
x_4
x_5
Z
(0)
8
0
0
3
4
100
x_3
(1)
3
0
1
1
1
30
x_2
(2)
5
1
0
1
2
40
a. Use algebraic analysis to nd the allowable range to stay opmum for each c
j
b. Use algebraic analysis to nd the allowable range to stay feasible for each b
i
Soluon:
a. Use algebraic analysis to nd the allowable range to stay opmum for each c
j
lOMoARcPSD| 58583460
lOMoARcPSD| 58583460
Queson 2 (change and check opmality)
Maximize Z=−5 x
1
+5 x
2
+13x
3
, subject ¿:
x
1
+ x
2
+3 x
3
20 12
x
1
+4 x
2
+10 x
3
90 ¿ x
j
0( j=1,2,3) .
If we let x
4
and x
5
be the slack variables for the respecve constraints, the simplex method yields the
following nal set of equaons:
(0 ) Z+2 x
3
+5x
4
=100
(1)−x
1
+x
2
+3x
3
+x
4
=20
(2) 16 x
1
−2x
3
4 x
4
+x
5
=10
Now you are to conduct sensivity analysis by independently invesgang each of the following changes
in the original model. For each change, use the sensivity analysis procedure to revise this set of equaons
(in tableau form) and convert it to proper form from Gaussian eliminaon for idenfying and evaluang
the current basic soluon. Then test this soluon for feasibility and for opmality. (Do not reopmize.)
a. Change the right-hand side of constraint 1 to b
1
=30.
b. Change the right-hand side of constraint 2 to b
2
=70
c. Change the right-hand sides to
lOMoARcPSD| 58583460
d. Change the coecient of x
3
in the objecve funcon to c
3
=8 Soluon:
a.
Δb
1
=10, Δb
2
=0
The current basic soluon is infeasible
b.
Δb
1
=0, Δb
2
=−20
ΔZ
¿
=(5 0 )(
0
20
)=0; Δb
1
¿
=(1
0)(
0
20
)=0; Δb
2
¿
=(−4
1)(
10
)=−20
0
New table:
The current basic soluon is infeasible.
c.
Δb
1
=−10, Δb
2
=10
ΔZ
¿
=(5 0 )(
10
10
)=−50; Δ b
¿
1
=(1 0)(
10
10
)=−10; Δb
2
¿
=(−4 1)(
10
10
)=50
New table:
ΔZ
¿
=(5 0 )
(
10
)=50; Δb
1
¿
=(1 0)
(
10
0
)=10; Δb
¿
2
=(−4 0
New table:
1)(
10
)=−40
0
lOMoARcPSD| 58583460
The current basic soluon is feasible and opmal
d.
Δc
3
=−5
New table:
The current basic soluon is feasible and opmal.
II. Duality
Queson 3:
Consider the following problem
Maximize Z=2x
1
+7 x
2
+4 x
3
subject ¿: x
1
+2x
2
+x
3
10
3 x
1
+3 x
2
+2x
3
10 ¿
x
1
, x
2
, x
3
0
a. Construct the dual problem for this primal problem
b. Use the dual problem to demonstrate that the opmal value of Z for the primal problem cannot
exceed 25.
c. Solve the dual problem graphically. Use this soluon to idenfy the basic variables and the
nonbasic variables for the opmal soluon of the primal problem. Directly derive this soluon,
using Gaussian eliminaon.
Soluon:
a.
MinimizeW=10 y
1
+10 y
2
subject ¿
y
1
+3 y
2
2
2 y +3 y ≥7 y
lOMoARcPSD| 58583460
b. (0
,
) is feasible for the dual problem. Using weak duality, w Z. So, the
opmal primal objecve value is less than 25
c. From the dual soluon y
2
, y
3
y
5
are basic, therefore, x
3
,x
5
x
1
are non-basic primal variable, x
2
x
4
are basic.
Graphical soluon of dual problem: W
Using Gauss eliminaon:
Queson 4: Consider the
following problem:
lOMoARcPSD| 58583460
Minimize Z=−x
1
3 x
2
subject
¿:
x
1
2 x
2
2
x + x ≤4
¿ x
a. Demonstrate graphically that this problem has an unbounded objecve funcon
b. Construct the dual problem
c. Demonstrate graphically that the dual problem has no feasible soluons. Soluon:
a.
b. Dual:
Maximize2 y
1
+4 y
2
subject
¿
y
1
y
2
−1
2 y
+
y ≤3 y
c. As can be seen by the gure below, the dual problem has no feasible soluon
Queson 5:
Consider the following problem:
lOMoARcPSD| 58583460
Maximize Z=3 x
1
+x
2
+4 x
3
,
subject¿
6 x
1
+3x
2
+5 x
3
25
3 x
1
+4 x
2
+5x
3
20 x
1
,
x
2
, x
3
0
The corresponding nal set of equaons yielding the opmal soluon is:
x
1
, x
2
, x
3
0
a. Idenfy the opmal soluon from this set of equaons.
b. Construct the dual problem
c. Idenfy the opmal soluon for the dual problem from the nal set of equaons. Verify this
soluon by solving the dual problem graphically.
d. Suppose that the original problem is changed to
Maximize Z=3 x
1
+3 x
2
+4 x
3
subject¿
6 x
1
+2x
2
+5 x
3
25
3 x
1
+3 x
2
+5 x
3
20 x
1
,
x
2
, x
3
0
Use duality theory (refer secon 6.5 - page 252 Hillers Book 7
th
ed) to determine whether the previous
opmal soluon is sll opmal
e. Now suppose that the only change in the original problem is that a new variable x
new
has been
introduced into the model as follows:
Maximize Z=3 x
1
+x
2
+4 x
3
+2 x
new
,
subject¿
6 x
1
+3x
2
+5 x
3
+3 x
new
25
lOMoARcPSD| 58583460
3 x
1
+4 x
2
+5x
3
+2 x
new
20 x1,
x2, x3,xnew 0
Use duality theory (refer secon 6.5 - page 252 Hillers Book 7
th
ed) to determine whether the previous
opmal soluon, along with x
new
=0, is sll opmal.
Soluon:
a. (x
1
,x
2
,x
3
)=( ,0,3) and Z=17
b. Dual problem:
MinimizeV =25 y
1
+20 y
2
subject ¿:
6 y
1
+3 y
2
3
3 y
1
+4 y
2
1
5 y
1
+5 y
2
4 y
1
,
y
2
0
c. The opmal soluon for the dual problem is: and Z=17
d. Since the new dual constraint 2 y
1
+3 y
2
3 is violated for ( y
1
, y
2
)
=
(
,
). The current
soluon is no longer opmal.
e. The new primal variable adds a constraint to the dual:
lOMoARcPSD| 58583460
3 y
1
+2 y
2
2, which is not sased by (y
1
, y
2
¿=( , ). Therefore, the previous soluon is no longer opmal.
Network opmizaon: shortest path problem, minimum spanning tree problem, maximum ow problem,
minimum cost ow problem.
CHAPTER 7: Integer Programming
I.
Queson 1 (formulaon):
The board of directors of General Wheels Co. is considering seven large capital investments. Each
investment can be made only once. These investments dier in the esmated long-run prot (net present
value) that they will generate as well as in the amount of capital required, as shown by the following table
(in units of millions of dollars):
Investment Opportunity
1
2
3
4
5
6
7
Esmated prot
17
10
15
19
7
13
9
Capital required
43
28
34
48
17
32
23
The total amount of capital available for these investments is $100 million. Investment opportunies 1
and 2 are mutually exclusive, and so are 3 and 4. Furthermore, neither 3 nor 4 can be undertaken unless
one of the rst two opportunies is undertaken. There are no such restricons on investment
opportunies 5,6 and 7. The objecve is to select the combinaon of capital investments that will
maximize the total esmated long-run prot (net present value).
Formulate a BIP model for this problem.
Soluon
Let xi: Binary variable (0,1), xi=1 if invest in opportunies i. Otherwise, xi=0 for i=1,…,7 p
i
:
Esmated prot of opportunies i for i=1,…,7 c
i
: Capital required by opportunies i for
i=1,…,7
7
Maximize Z=x
i
p
i
i=1
subject ¿
7
x c ≤100,
i=1,…,7
i
Integer programming
lOMoARcPSD| 58583460
x
1
+x
2
1; x
3
+
x
4
1
x3≤ x1+x2 x4≤x1+x2
x
i
(0,1) ,
i=1,…,7
Queson 2 (Formulaon)
The Research and Development Division of the Progressive Company has been developing four possible
new product lines. Management must now make a decision as to which of these four products actually
will be produced and at what levels. Therefore, an operaons research study has been requested to nd
the most protable product mix.
A substanal cost is associated with beginning the producon of any product, as given in the rst row of
the following table. Managements objecve is to nd the product mix that maximizes the total prot
(total met revenue mis start-up costs)
Product
1
2
3
4
Start-up cost
$50,000
$40,000
$70,000
$60,000
Marginal revenue
$70
$60
$90
$80
Let the connuous decision variables x
1
, x
2
, x
3
and x
4
be the producon levels of products 1,2,3 and 4,
respecvely. Management has imposed the following policy constraints on these variables:
1. No more than two of the products can be produced.
2. Either product 3 or 4 can be produced only if either product 1 or 2 is produced.
3. Either 5 x1+3 x2+6 x3+4 x46,000
Or
4 x
1
+6 x
2
+3 x
3
+5 x
4
6,000
Introduce auxiliary binary variables to formulate a mixed BIP model for this problem Soluon
Let yi : Binary variable (0,1) yi=1 if deciding to produce product i. Otherwise yi=0 (i=1,…4¿ u: Binary
variable (supporng constraint 3)
C
i
: Cost to setup the producon line for product i (Start-up cost) (i=1,…4¿ R
i
: Unit
revenue of product i (Marginal revenue) (i=1,…4¿
4
Maximize Z=R
i
x
i
C
i
y
i
i=1
subject¿
lOMoARcPSD| 58583460
y
1
+y
2
+ y
3
+ y
4
2
y3 y1+y2 y4
y1+ y2
5 x
1
+3 x
2
+6 x
3
+4 x
4
6,000+uM
4 x
1
+6 x
2
+3 x
3
+5 x
4
6,000+M(1−u) x M
y ,i=1,…4
x:Bignumber
II. Branch and Bound problem (BIP and MIP)
Queson 3: (MIP) Solve the following Integer Programming (IP) problem using Branch and
Bound algorithm:
Minimize Z=2 x
1
+3 x
2
,
subject¿
x
1
+x
2
3 x
1
+3x
2
6
¿ x
1
0, x
2
0:x
1
,x
2
are integers
Soluon:
lOMoARcPSD| 58583460
CHAPTER 8: Dynamic Programming
Dynamic programming problems: Knap-sack problem
Minh, a Vietnamese athlete who visits the United States and Europe frequently, is allowed to return with
a limited number of consumer items not generally available in Vietnam. The items, which are carried in a
duel bag, cannot exceed a weight of 5 pounds. Once Minh is in Vietnam, he sells the items at highly
inated prices. The three most popular items in Vietnam are denim jeans, CD players, and CDs of U.S. rock
groups. The weight and prot (in U.S. dollars) of each item are as follows:
Item
Weight (lb.)
Prot
Denim jeans
2
$90
lOMoARcPSD| 58583460
CD players
3
150
Compact discs
1
30
Help Minh determine the combinaon of items he should pack in his duel bag to maximize his prot.
Soluon:
Weight
Item
0
1
2
3
4
5
0
0
0
0
0
0
0
1
0
0
90
90
90
90
2
0
0
90
150
150
240
3
0
30
30
150
180
240
Select item 1 and 2 or Denim jeans and CD players get the opmal prot
CHAPTER 9: Network Opmizaon
III.
Network opmizaon
Shortest path problem:
Queson 1:
One of Speedy Airlinesights is about to take o from Seale from a nonstop ight to London. There is
some exibility in choosing the precise route to be taken, depending upon weather condions. The
following network depicts the possible routes under consideraon, where SE and LN are Seale and
London, respecvely, and the other nodes represent various intermediate locaons. The winds along each
arc greatly aect the ying me (and so the fuel consumpon). Based on current meteorological reports,
the ying mes (in hours) for this parcular ight are shown next to the arcs. Because the fuel consumed
is so expensive, the management of Speedy Airlines has established a policy of choosing the route that
minimizes the total ight me.
Use the algorithm described in Sec. 9.3 (Hillers Book 7
th
Edion) to solve this shortest path problem.
Soluon:
lOMoARcPSD| 58583460
Dijkstra’ algorithm:
Queson 2:
The network in the gure below gives the distances in miles between pairs of cies 1, 2, …, and 8. Use
Dijkstra’s algorithm to nd the shortest route between the following cies:
a. Cies 1 and 7.
b. Cies 1 and 6
lOMoARcPSD| 58583460
c. Cies 4 and 8
d. Cies 2 and 7
Soluon:
Queson 3:
Use Dijkstra’s algorithm to nd the shortest route between node 1 and every other node in the network
of the gure below:
lOMoARcPSD| 58583460
Soluon:
Minimum spanning tree:
Queson 4:
Midwest TV Cable Company is providing cable service to ve new housing developments. The gure below
depicts possible TV connecons to the ve areas, with cable miles axed on each arc.
The goal is to determine the most economical cable network. Determine the minimal spanning tree of the
network under each of the following separate condions:
a. Nodes 5 and 6 are linked by a 2-mile cable
b. Nodes 2 and 5 cannot be linked
lOMoARcPSD| 58583460
c. Nodes 2 and 6 are linked by a 4-mile cable
d. The cable between nodes 1 and 2 is 8 miles long.
e. Nodes 3 and 5 are linked by a 2-mile cable.
f. Node 2 cannot be linked directly to nodes 3 and 5.
Soluon:
Spanning tree length = 16 where N2-N5 (5 miles) , N1-N2 (1), N4-N2 (4), N6-N4 (3), N3-N4 (5)
a. Spanning tree length = 14 where N2-N1 (1), N5-N2(3), N6-N5(2), N4-N6(3), N3-N4(5)
b. Spanning tree length = 21 where N2-N1(1), N4-N2(4), N6-N4(3), N3-N4(5), N5-N4 (8)
c. Spanning tree length = 16 where N2-N1(1), N5-N2(3), N6-N2 (4), N4-N6 (3), N3-N4(5)
d. Spanning tree length = 20 where N3-N1(5), N4-N3(5), N6-N4 (3), N2-N4 (4), N5-N2(3)
e. Spanning tree length = 13 where N2-N1(1), N5-N2 (3), N3-N5 (2), N4-N2 (4), N6-N4 (3)
f. Spanning tree length = 21 where N2-N1(1), N4-N2(4), N6-N4 (3), N3-N4 (5), N3-N4(5), N5-N4 (8)
Minimum cost ow _ Maximum ow:
Queson 5:
Consider the maximum ow problem shown below, where the source is node A, the sink is node F, and
the arc capacies are the numbers shown next to these directed arcs.
Use the augmenng path algorithm (Maximum ow problem) to solve the problem.
Soluon:
lOMoARcPSD| 58583460
lOMoARcPSD| 58583460
Chapter 10: Non-linear programming
Non-linear programming
Non-linear programming (Single variable)- Dichotomous and Golden search method
Queson 1:
Find the maximum of each of the following funcons by dichotomous search. Assume that Δ=.2:
f
Soluon:
Unconstrained – Mulvariable: Gradient Search method
Queson 2:
Starng from the inial trial soluon (x
1
,x
2
)=(0,0), interacvely apply the gradient search procedure with
ϵ=0.3 to obtain an approximate soluon for the following problem, and then apply the automac roune
for this procedure (with ϵ=0.01)
Maximize f ( x )=8x
1
x
2
1
12 x
2
2 x
2
2
+2 x
1
x
2
Then solve
f ( x )=0 directly to obtain the exact soluon
Soluon:

Preview text:

lOMoAR cPSD| 58583460 Extra homework_Solution:
CHAPTER 6: Sensitivity analysis and Dual Problem
*Optional (not in final exam)* Sensitivity analysis: I. Question 1 (allowable range)
Consider the following problem
Maximize Z=3 x1+x2+2x3 subject ¿
x1−x2+2x320 2
x1+x2−x310 ¿
x10, x20,x30
Let x4 and x5 denote the slack variables for respective functional constraints. After we apply the simplex
method, the final simplex tableau is: Basic Coefficient of: variable Eq. x_1 x_2 x_3 x_4 x_5 RHS Z (0) 8 0 0 3 4 100 x_3 (1) 3 0 1 1 1 30 x_2 (2) 5 1 0 1 2 40
a. Use algebraic analysis to find the allowable range to stay optimum for each c j
b. Use algebraic analysis to find the allowable range to stay feasible for each bi Solution:
a. Use algebraic analysis to find the allowable range to stay optimum for each c j lOMoAR cPSD| 58583460 lOMoAR cPSD| 58583460
Question 2 (change and check optimality)
Maximize Z=−5 x1+5 x2+13x3, subject ¿:
x1+ x2+3 x320 12
x1+4 x2+10 x390 ¿ x j
0( j=1,2,3) .
If we let x4 and x5 be the slack variables for the respective constraints, the simplex method yields the
following final set of equations:
(0 ) Z+2 x3+5x4=100
(1)−x1+x2+3x3+x4=20
(2) 16 x1−2x3−4 x4+x5=10
Now you are to conduct sensitivity analysis by independently investigating each of the following changes
in the original model. For each change, use the sensitivity analysis procedure to revise this set of equations
(in tableau form) and convert it to proper form from Gaussian elimination for identifying and evaluating
the current basic solution. Then test this solution for feasibility and for optimality. (Do not reoptimize.) a.
Change the right-hand side of constraint 1 to b1=30. b.
Change the right-hand side of constraint 2 to b2=70 c.
Change the right-hand sides to lOMoAR cPSD| 58583460 d.
Change the coefficient of x3 in the objective function to c3=8 Solution: a. Δb1=10, Δb2=0 1)(10)=−40
ΔZ¿=(5 0 )(10)=50; Δb ¿1=(1 0)(100 )=10; Δb¿2=(−4 0 0 New table:
The current basic solution is infeasible b.
Δb1=0, Δb2=−20 ΔZ¿=(5 0 )( 020)=0; Δb ¿ ¿
1 =(1 0)( 020)=0; Δb2 =(−4 1)(10)=−20 − − 0 New table:
The current basic solution is infeasible.
c. Δb1=−10, Δb2=10 10 10
ΔZ¿=(5 0 )(−1010)=−50; Δ b¿ ) ¿ ) 1=(1 0)(−10
=−10; Δb2 =(−4 1)(−10 =50 New table: lOMoAR cPSD| 58583460
The current basic solution is feasible and optimal d. Δc3=−5 New table:
The current basic solution is feasible and optimal. II. Duality Question 3:
Consider the following problem
Maximize Z=2x1+7 x2+4 x3
subject ¿: x1+2x2+x310
3 x1+3 x2+2x310 ¿
x1, x2, x30
a. Construct the dual problem for this primal problem
b. Use the dual problem to demonstrate that the optimal value of Z for the primal problem cannot exceed 25.
c. Solve the dual problem graphically. Use this solution to identify the basic variables and the
nonbasic variables for the optimal solution of the primal problem. Directly derive this solution, using Gaussian elimination. Solution: a.
MinimizeW=10 y1+10 y2 subject ¿
y1+3 y22
2 y +3 y ≥7 y lOMoAR cPSD| 58583460
b. (0, ) is feasible for the dual problem. Using weak duality, w Z. So, the
optimal primal objective value is less than 25
c. From the dual solution y2, y3∧y5 are basic, therefore, x3,x5∧x1 are non-basic primal variable, x2∧x4 are basic.
Graphical solution of dual problem: W Using Gauss elimination: Question 4: Consider the following problem: lOMoAR cPSD| 58583460
Minimize Z=−x1−3 x2 subject ¿:
x1−2 x22 −x + x ≤4 ¿ x
a. Demonstrate graphically that this problem has an unbounded objective function b. Construct the dual problem
c. Demonstrate graphically that the dual problem has no feasible solutions. Solution: a. b. Dual:
Maximize2 y1+4 y2 subject ¿
y1−y2−1 −2 y + y ≤−3 y
c. As can be seen by the figure below, the dual problem has no feasible solution Question 5:
Consider the following problem: lOMoAR cPSD| 58583460
Maximize Z=3 x1+x2+4 x3, subject¿
6 x1+3x2+5 x325
3 x1+4 x2+5x320 x1,
x2, x30
The corresponding final set of equations yielding the optimal solution is:
x1, x2, x30
a. Identify the optimal solution from this set of equations. b. Construct the dual problem
c. Identify the optimal solution for the dual problem from the final set of equations. Verify this
solution by solving the dual problem graphically.
d. Suppose that the original problem is changed to
Maximize Z=3 x1+3 x2+4 x3 subject¿
6 x1+2x2+5 x325
3 x1+3 x2+5 x320 x1,
x2, x30
Use duality theory (refer section 6.5 - page 252 Hiller’s Book 7th ed) to determine whether the previous
optimal solution is still optimal
e. Now suppose that the only change in the original problem is that a new variable xnew has been
introduced into the model as follows:
Maximize Z=3 x1+x2+4 x3+2 xnew, subject¿
6 x1+3x2+5 x3+3 xnew ≤25 lOMoAR cPSD| 58583460
3 x1+4 x2+5x3+2 xnew≤20 x1,
x2, x3,xnew ≥0
Use duality theory (refer section 6.5 - page 252 Hiller’s Book 7th ed) to determine whether the previous
optimal solution, along with xnew=0, is still optimal. Solution:
a. (x1,x2,x3)=( ,0,3) and Z=17 b. Dual problem:
MinimizeV =25 y1+20 y2 subject ¿:
6 y1+3 y23
3 y1+4 y21
5 y1+5 y24 y1, y20
c. The optimal solution for the dual problem is: and Z=17
d. Since the new dual constraint 2 y1+3 y23 is violated for ( y1, y2)=( , ). The current
solution is no longer optimal.
e. The new primal variable adds a constraint to the dual: lOMoAR cPSD| 58583460
3 y1+2 y22, which is not satisfied by (y1, y2¿=( , ). Therefore, the previous solution is no longer optimal.
Network optimization: shortest path problem, minimum spanning tree problem, maximum flow problem, minimum cost flow problem.
CHAPTER 7: Integer Programming Integer programming I. Question 1 (formulation):
The board of directors of General Wheels Co. is considering seven large capital investments. Each
investment can be made only once. These investments differ in the estimated long-run profit (net present
value) that they will generate as well as in the amount of capital required, as shown by the following table
(in units of millions of dollars): Investment Opportunity 1 2 3 4 5 6 7 Estimated profit 17 10 15 19 7 13 9 Capital required 43 28 34 48 17 32 23
The total amount of capital available for these investments is $100 million. Investment opportunities 1
and 2 are mutually exclusive, and so are 3 and 4. Furthermore, neither 3 nor 4 can be undertaken unless
one of the first two opportunities is undertaken. There are no such restrictions on investment
opportunities 5,6 and 7. The objective is to select the combination of capital investments that will
maximize the total estimated long-run profit (net present value).
Formulate a BIP model for this problem. Solution
Let xi: Binary variable (0,1), xi=1 if invest in opportunities i. Otherwise, xi=0 for i=1,…,7 pi:
Estimated profit of opportunities i for i=1,…,7 ci: Capital required by opportunities i for i=1,…,7 7
Maximize Z=∑ xi pi i=1 subject ¿ 7
x c ≤100,i=1,…,7 i lOMoAR cPSD| 58583460
x1+x21; x3+ x41
x3≤ x1+x2 x4≤x1+x2
xi (0,1) ,i=1,…,7 Question 2 (Formulation)
The Research and Development Division of the Progressive Company has been developing four possible
new product lines. Management must now make a decision as to which of these four products actually
will be produced and at what levels. Therefore, an operations research study has been requested to find
the most profitable product mix.
A substantial cost is associated with beginning the production of any product, as given in the first row of
the following table. Management’s objective is to find the product mix that maximizes the total profit
(total met revenue mis start-up costs) Product 1 2 3 4 Start-up cost $50,000 $40,000 $70,000 $60,000 Marginal revenue $70 $60 $90 $80
Let the continuous decision variables x1, x2, x3 and x4 be the production levels of products 1,2,3 and 4,
respectively. Management has imposed the following policy constraints on these variables:
1. No more than two of the products can be produced.
2. Either product 3 or 4 can be produced only if either product 1 or 2 is produced.
3. Either 5 x1+3 x2+6 x3+4 x46,000
Or 4 x1+6 x2+3 x3+5 x46,000
Introduce auxiliary binary variables to formulate a mixed BIP model for this problem Solution
Let yi : Binary variable (0,1) yi=1 if deciding to produce product i. Otherwise yi=0 (i=1,…4¿ u: Binary
variable (supporting constraint 3)
Ci: Cost to setup the production line for product i (Start-up cost) (i=1,…4¿ Ri: Unit
revenue of product i (Marginal revenue) (i=1,…4¿ 4
Maximize Z=∑ Ri xiCi yi i=1 subject¿ lOMoAR cPSD| 58583460
y1+y2+ y3+ y42
y3≤ y1+y2 y4≤ y1+ y2
5 x1+3 x2+6 x3+4 x46,000+uM
4 x1+6 x2+3 x3+5 x46,000+M(1−u) x ≤ M y ,i=1,…4 x:Bignumber II.
Branch and Bound problem (BIP and MIP)
Question 3: (MIP) Solve the following Integer Programming (IP) problem using Branch and Bound algorithm:
Minimize Z=2 x1+3 x2, subject¿
x1+x23 x1+3x26
¿ x10, x20:x1,x2 are integers Solution: lOMoAR cPSD| 58583460
CHAPTER 8: Dynamic Programming
Dynamic programming problems: Knap-sack problem
Minh, a Vietnamese athlete who visits the United States and Europe frequently, is allowed to return with
a limited number of consumer items not generally available in Vietnam. The items, which are carried in a
duffel bag, cannot exceed a weight of 5 pounds. Once Minh is in Vietnam, he sells the items at highly
inflated prices. The three most popular items in Vietnam are denim jeans, CD players, and CDs of U.S. rock
groups. The weight and profit (in U.S. dollars) of each item are as follows: Item Weight (lb.) Profit Denim jeans 2 $90 lOMoAR cPSD| 58583460 CD players 3 150 Compact discs 1 30
Help Minh determine the combination of items he should pack in his duffel bag to maximize his profit. Solution: Weight 0 1 2 3 4 5 Item 0 0 0 0 0 0 0 1 0 0 90 90 90 90 2 0 0 90 150 150 240 3 0 30 30 150 180 240
Select item 1 and 2 or Denim jeans and CD players get the optimal profit
CHAPTER 9: Network Optimization III. Network optimization Shortest path problem: Question 1:
One of Speedy Airlines’ flights is about to take off from Seattle from a nonstop flight to London. There is
some flexibility in choosing the precise route to be taken, depending upon weather conditions. The
following network depicts the possible routes under consideration, where SE and LN are Seattle and
London, respectively, and the other nodes represent various intermediate locations. The winds along each
arc greatly affect the flying time (and so the fuel consumption). Based on current meteorological reports,
the flying times (in hours) for this particular flight are shown next to the arcs. Because the fuel consumed
is so expensive, the management of Speedy Airlines has established a policy of choosing the route that
minimizes the total flight time.
Use the algorithm described in Sec. 9.3 (Hiller’s Book 7th Edition) to solve this shortest path problem. Solution: lOMoAR cPSD| 58583460 Dijkstra’ algorithm: Question 2:
The network in the figure below gives the distances in miles between pairs of cities 1, 2, …, and 8. Use
Dijkstra’s algorithm to find the shortest route between the following cities: a. Cities 1 and 7. b. Cities 1 and 6 lOMoAR cPSD| 58583460 c. Cities 4 and 8 d. Cities 2 and 7 Solution: Question 3:
Use Dijkstra’s algorithm to find the shortest route between node 1 and every other node in the network of the figure below: lOMoAR cPSD| 58583460 Solution: Minimum spanning tree: Question 4:
Midwest TV Cable Company is providing cable service to five new housing developments. The figure below
depicts possible TV connections to the five areas, with cable miles affixed on each arc.
The goal is to determine the most economical cable network. Determine the minimal spanning tree of the
network under each of the following separate conditions:
a. Nodes 5 and 6 are linked by a 2-mile cable
b. Nodes 2 and 5 cannot be linked lOMoAR cPSD| 58583460
c. Nodes 2 and 6 are linked by a 4-mile cable
d. The cable between nodes 1 and 2 is 8 miles long.
e. Nodes 3 and 5 are linked by a 2-mile cable.
f. Node 2 cannot be linked directly to nodes 3 and 5. Solution:
Spanning tree length = 16 where N2-N5 (5 miles) , N1-N2 (1), N4-N2 (4), N6-N4 (3), N3-N4 (5)
a. Spanning tree length = 14 where N2-N1 (1), N5-N2(3), N6-N5(2), N4-N6(3), N3-N4(5)
b. Spanning tree length = 21 where N2-N1(1), N4-N2(4), N6-N4(3), N3-N4(5), N5-N4 (8)
c. Spanning tree length = 16 where N2-N1(1), N5-N2(3), N6-N2 (4), N4-N6 (3), N3-N4(5)
d. Spanning tree length = 20 where N3-N1(5), N4-N3(5), N6-N4 (3), N2-N4 (4), N5-N2(3)
e. Spanning tree length = 13 where N2-N1(1), N5-N2 (3), N3-N5 (2), N4-N2 (4), N6-N4 (3)
f. Spanning tree length = 21 where N2-N1(1), N4-N2(4), N6-N4 (3), N3-N4 (5), N3-N4(5), N5-N4 (8)
Minimum cost flow _ Maximum flow: Question 5:
Consider the maximum flow problem shown below, where the source is node A, the sink is node F, and
the arc capacities are the numbers shown next to these directed arcs.
Use the augmenting path algorithm (Maximum flow problem) to solve the problem. Solution: lOMoAR cPSD| 58583460 lOMoAR cPSD| 58583460
Chapter 10: Non-linear programming Non-linear programming
Non-linear programming (Single variable)- Dichotomous and Golden search method Question 1:
Find the maximum of each of the following functions by dichotomous search. Assume that Δ=.2: f Solution:
Unconstrained – Multivariable: Gradient Search method Question 2:
Starting from the initial trial solution (x1,x2)=(0,0), interactively apply the gradient search procedure with
ϵ=0.3 to obtain an approximate solution for the following problem, and then apply the automatic routine
for this procedure (with ϵ=0.01)
Maximize f ( x )=8x1−x21−12 x2−2 x22+2 x1x2
Then solve ∇ f ( x )=0 directly to obtain the exact solution Solution: