Академический Документы
Профессиональный Документы
Культура Документы
Example 1.1
The Apex Television Company has to decide on the number of 27- and 20-inch
sets to be produced at one of its factories. Market research indicates that at most
40 of the 27-inch sets and 10 of the 20-inch sets can be sold per month. The
maximum number of work-hours available is 500 per month. A 27-inch set
requires 20 work-hours and a 20-inch set requires 10 work-hours. Each 27-inch set
sold produces a profit of $120 and each 20-inch set produces a profit of $80. A
wholesaler has agreed to purchase all the television sets produced if the numbers
do not exceed the maxima indicated by the market research.
(a) Formulate a linear programming model for this problem.
The decisions that need to be made are the number of 27-inch and 20-inch TV sets
to be produced per month by the Apex Television Company. Therefore, the
decision variables for the model are
x1 = number of 27-inch TV sets to be produced per month,
x2 = number of 20-inch TV sets to be produced per month.
Also let
Z = total profit per month.
The model now can be formulated in terms of these variables as follows.
The total profit per month is Z = 120 x1 + 80 x2.
The resource constraints are:
(1) Number of 27-inch sets sold per month: x1 40
(2) Number of 20-inch sets sold per month: x2 10
(3) Work-hours availability: 20 x1 + 10 x2 500.
Nonnegativity constraints on TV sets produced: x1 0, x2 0
With the objective of maximizing the total profit per month, the LP model for this
problem is
Maximize Z = 120 x1 + 80 x2
subject to
x1
40
x2 10
20 x1 + 10 x2 500
and x1 0, x2 0
Example 1.2
Dwight is an elementary school teacher who also raises pigs for supplemental
income. He is trying to decide what to feed his pigs. He is considering using a
combination of pig feeds available from local suppliers. He would like to feed the
pigs at minimum cost while also making sure each pig receives an adequate supply
of calories and vitamins. The cost, calorie content, and vitamin content of each feed
are given in the table below.
Contents
Calories (per pound)
Vitamins (per pound)
Cost (per pound)
Feed Type A
800
140 units
$0.40
Feed Type B
1,000
70 units
$0.80
Each pig requires at least 8,000 calories per day and at least 700 units of vitamins.
A further constraint is that no more than one-third of the diet (by weight) can
consist of Feed Type A, since it contains an ingredient which is toxic if consumed in
too large a quantity.
(a) Formulate a linear programming model for this problem.
Let A and B be the quantity (pounds) of Feed Type A and Feed Type B,
respectively, used per day. Also let Z be the total daily cost of the feed per pig.
Then, the daily cost is
Z = $0.4 A + $0.8 B.
The constraints on the minimum daily requirements of calories and vitamins are
(1) Calories requirement:
Example 1.3
A furniture store has set aside 800 square feet to display its sofas and chairs. Each
sofa utilizes 50 sq. ft. and each chair utilizes 30 sq. ft. At least five sofas and at least
five chairs are to be displayed.
Available
36
40
30
b.
T
15
10
0
0
10
15
Chapter 2
Example 2.1
Consider the following linear programming model.
Maximize Z = 3x1 + 2 x2, subject to
x1
4
x1 + 3x2
15
2x1 + x2
10
and x1 0,x2 0.
(a) Use graphical analysis to identify all the corner-point solutions for this
model. Label each as either feasible or infeasible.
The graph showing all the constraint boundary lines and the corner-point
solutions at their intersections is shown below.
The exact value of (x1, x2) for each of these corner-point solutions (A, B, ..., I)
can be identified by obtaining the simultaneous solution of the corresponding
two constraint boundary equations. The results are summarized as...
Corner-point solutions
A
B
C
D
E
F
G
H
I
(x1, x2)
(0, 5)
(0,10)
(3, 4)
(4, 11/3)
(4, 2)
(4, 0)
(5, 0)
(15, 0)
(0, 0)
Feasibility
Feasible
Infeasible
Feasible
Infeasible
Feasible
Feasible
Infeasible
Infeasible
Feasible
(b) Calculate the value of the objective function for each of the CPF solutions.
Use this information to identify an optimal solution.
The objective value of each corner-point feasible solution is calculated in the
following table:
Corner-point
feasible solutions
A
C
E
F
I
(x1, x2)
Objective Value Z
(0, 5)
(3, 4)
(4, 2)
(4, 0)
(0, 0)
3*0+2*5 = 10
3*3+2*4 = 17
3*4+2*2 = 16
3*4+2*0 = 12
3*0+0*0 = 0
Since point C has the largest value of Z, (x1, x2) = (3, 4) must be an optimal
solution.
(c) Use the simplex method to get the solution and to identify which sequence of
CPF solutions would be examined by the simplex method to reach an
optimal solution.
Therefore, the sequence of CPF solutions examined by the simplex method would
be I F E C.
Example 2.2
Consider the following linear programming model.
Maximize Z = x1 + 2x2,
subject to
6x1 2x2 3
2x1 3x2 6
x1 + x2 3
and
x1 0,x2 0.
(a) Use graphical analysis to identify all the corner-point solutions for this model.
Label each as either feasible or infeasible.
(b) Calculate the value of the objective function for each of the CPF solutions. Use
this information to identify an optimal solution.
(c) Use the simplex method to get the solution and to identify which sequence of
CPF solutions would be examined by the simplex method to reach an optimal
solution.
Solution:
(a)
x1 + x2 3
6x1 2x2 3
2
x1 + 2x2 =0
Feasible
Region
2x1 3x2 = 6
0
x1
0
(a)
corner-point feasibility
(0, 0)
feasible
(0.5, 0)
feasible
(21/22, 15/11) feasible
(0, 2)
feasible
(c) 1st tableau
(b)
obj. value
0
0.5
3.68
4
1
x1
6
2
1
0
1
2
x2
-2
3
1
0
2
0 0 0
sl1 sl2 sl3
bi
i
1 0 0
3
0 1 0
6
2
0 0 1
3
3
0 0 0 icBibi= 0
0 0 0
1
x1
2
x2
0 0 0
sl1 sl2 sl3
bi
1 2/3 0
2 cB2= 2 xB2= x2
3 cB3= 0 xB3= sl3
fj
2/3
1/3
4/3
1
0
2
-1/3
0 1/3 0
2
0 -1/3 1
1
0 2/3 0 icBibi= 4
0 -2/3 0
i
1
2
3
Max Cj
cB
xB
cB1= 0 xB1= sl1
cB2= 0 xB2= sl2
cB3= 0 xB3= sl3
fj
Cj-fj
Max
cB
Cj
xB
Cj-fj
Chapter 3
Example 3.1
The Fagersta Steelworks currently is working two mines to obtain its iron ore. This
iron ore is shipped to either of two storage facilities. When needed, it then is shipped
ont
ot
h
ec
ompa
ny
ss
t
e
e
lp
l
a
nt
.Thedi
a
gr
a
m be
l
owde
p
i
c
t
st
h
i
sdi
s
t
r
i
bu
t
i
o
nne
t
wor
k,
where M1 and M2 are the two mines, S1 and S2 are the two storage facilities, and P is
the steel plant. The diagram also shows the monthly amounts produced at the mines
and needed at the plant, as well as the shipping cost and the maximum amount that
can be shipped per month through each shipping lane.
$2,000/ton
30 tons max.
40 tons
produced M1
S1
$400/ton
70 tons max.
$1,700/ton
30 tons max.
P
$1,600/ton
50 tons max.
60 tons
M2
produced
$1,100/ton
50 tons max.
S2
100 tons
needed
$800/ton
70 tons max.
Management now wants to determine the most economic plan for shipping the iron
ore from the mines through the distribution network to the steel plant.
(a) Formulate a linear programming model for this problem.
The decision variables are defined as follows:
xm1-s1 : number of units (tons) shipped from Mine 1 to Storage Facility 1,
xm1-s2 : number of units (tons) shipped from Mine 1 to Storage Facility 2,
xm2-s1 : number of units (tons) shipped from Mine 2 to Storage Facility 1,
xm2-s2 : number of units (tons) shipped from Mine 2 to Storage Facility 2,
xs1 -p : number of units (tons) shipped from Storage Facility 1 to the Plant,
xs2 -p : number of units (tons) shipped from Storage Facility 2 to the Plant.
The total shipping cost is:
Z = 2000 xm1-s1 + 1700 xm1-s2 + 1600 xm2-s1 + 1100 xm2-s2 + 400 xs1-p + 800 xs2-p
i
1
2
3
Cj
-1
cB
xB
x1
cB1= M xB1=a1 1
cB2= M xB2=a2 -1
cB3= M xB3=a3 0
4 cB4= 0 xB3=s1
fj
Cj-fj
2
x2
1
1
2
-3
x3
1
2
3
M
a1
1
0
0
M M
a2 a3
0 0
1 0
0 1
0
s1
0
0
0
bi
6
4
10
4M
6M
M M
-1 2-4M -3-6M
icBibi= 20M+2
C
j
xB
x1
x2
x3
a1
a2 a3
s1
bi
2 cB2= 1 xB2=a2 -1
3 cB3= 1 xB3=a3
10
10/3
4 cB4= 0 xB3=s1
icBibi= 20
j-f
j
-4
-6
cB
1 cB1= 1 xB1=a1
C
j
xB
x1
x2
x3
a1
a2
a3
s1
bi
1 cB1= 0 xB1=x1
2 cB2= 0 xB2=x2
1/2 1/2
0 -3/2
3 cB3= 1 xB3=a3
-1
-1
4 cB4= 0 xB3=x3
-1
-1
icBibi= 0
j-f
j
cB
**extra constraint
The first & also final tableau of Phase II in two phase method:
Min
Cj
-1
-3
xB
x1
x2
x3
s1
bi
1 cB1= -1 xB1=x1
1/2
2 cB2= 2 xB2=x2
-3/2
4 cB4= -3 xB3=x3
fj
-1
-3
-7/2
Cj-fj
7/2
cB
icBibi= -4
Example 3.3
A&C Distributors is a company that represents many outdoor products companies and
schedules deliveries to discount stores, garden centers, and hardware stores. Currently,
scheduling needs to be done for two lawn sprinklers, the Water Wave and Spring
Shower models. Requirements for shipment to a warehouse for a national chain of
garden centers are shown below.
Month
Shipping
Capacity
March
8000
April
7000
May
6000
Product
Water Wave
Spring Shower
Water Wave
Spring Shower
Water Wave
Spring Shower
Requirement
3000
1800
4000
4000
5000
2000
Unit
Cost
to Ship
.30
.25
.40
.30
.50
.35
Per Unit
Inventory
Cost
.06
.05
.09
.06
.12
.07
Let Sij be the number of units of sprinkler i shipped in month j, where i = 1 or 2, and j
= 1, 2, or 3. Let Wij be the number of sprinklers that are at the warehouse at the end of
a month, in excess of the requirement.
(a.) Write the portion of the objective function that minimizes shipping costs.
(b.) An inventory cost is assessed against this ending inventory. Give the portion of
the objective function that represents inventory cost.
(c.) There will be three constraints that guarantee, for each month, that the total
number of sprinklers shipped will not exceed the shipping capacity. Write these
three constraints.
(d.) There are six constraints that work with inventory and the number of units shipped,
making sure that enough sprinklers are shipped to meet the requirements. Write
these six constraints.
Solutions
(a.) Min 0.3S11 + 0.25S21 + 0.40S12 + 0.30S22 + 0.50S13 + 0.35S23
(b.) Min 0.06W11 +0.05W21 +0.09W12 +0.06W22 +0.12W13 +0.07W23
(c.) S11 + S21 8000
S12 + S22 7000
S13 + S23 6000
(d.) S11 - W11 = 3000
S21 - W21 = 1800
W11 + S12 - W12 = 4000
W21 + S22 - W22 = 4000
W12 + S13 - W13 = 5000
W22 + S23 - W23 = 2000
Example 3.4
(a.) Find the optimal solution of (a.) in Example 3.3 by the big-M method.
(b.) Find the optimal solution of (b.) in Example 3.3 by the two phases method. (
Phase II 1st tableau )
Solution for (a.)
Min 0.3S11 + 0.25S21 + 0.40S12 + 0.30S22 + 0.50S13 + 0.35S23
S11 + S21 8000
S12 + S22 7000
S13 + S23 6000
S11 - W11 = 3000
S21 - W21 = 1800
W11 + S12 - W12 = 4000
W21 + S22 - W22 = 4000
W12 + S13 - W13 = 5000
W22 + S23 - W23 = 2000
S11,~, S23, W11,~, W23 0
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0 xB1=s1
0 8000 8000
2 cB2=0 xB2=s2
0 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=M xB3=a1
-1
0 3000
5 cB5=M xB3=a2
-1
0 1800 1800
6 cB6=M xB3=a3
-1
0 4000
7 cB7=M xB3=a4
-1
0 4000
8 cB8=M xB3=a5
-1
0 5000
9 cB9=M xB3=a6
-1
1 2000
M M M M M M
0 -M 0
0 -M 0
M M M M M M
fj
Cj-fj
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0 xB1=s1
-1
0 6200 6200
2 cB2=0 xB2=s2
0 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=M xB3=a1
-1
0 3000
5 cB5=0.25 xB3=S21 0
-1
0 1800
6 cB6=M xB3=a3
-1
0 4000
7 cB7=M xB3=a4
-1
0 4000 4000
8 cB8=M xB3=a5
-1
0 5000
9 cB9=M xB3=a6
-1
1 2000
M M M 0.25 M M
0 -M +M 0 -M 0
M 0.25 M M M M
0 +M 0
fj
Cj-fj
-0.25
0.25
M -M 0
-0.25
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0 xB1=s1
-1
-1
-1
0 2200 2200
2 cB2=0 xB2=s2
0 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=M xB3=a1
-1
0 3000
5 cB5=0.25 xB3=S21 0
-1
0 5800
6 cB6=M xB3=a3
-1
0 4000
7 cB7=0 xB3=W21 0
-1
0 4000
8 cB8=M xB3=a5
-1
0 5000
9 cB9=M xB3=a6
-1
1 2000 2000
M M M 0.25 0.25 M
0 -M 0 +M -M 0
M 0.25 M 0.25 M M
0 +M 0 +M 0
fj
Cj-fj
0.35
0.3 0.4 0.5
0 0.05
0
-M
-M -M -M
-0.25
0.25
-M
-0.25
-0.25
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0 xB1=s1
-1 -1
-1
-1
-1 200 200
2 cB2=0 xB2=s2
0 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=M xB3=a1
-1
0 3000 3000
5 cB5=0.25 xB3=S21 0
-1
1 7800
6 cB6=M xB3=a3
-1
0 4000
7 cB7=0 xB3=W21 0
-1
1 6000
8 cB8=M xB3=a5
-1
0 5000
9 cB9=0 xB3=W22 0
-1
1 2000
-0.25
fj
0 -M 0
Cj-fj
0 0.25 0
0 +M 0 +M 0 +M
-0.25
-0.25
-0.25
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0.3 xB1=S11 1
-1 -1
-1
-1
-1 200
2 cB2=0 xB2=s2
0 7000 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=M xB3=a1
-1
-1 -1
1 2800 2800
5 cB5=0.25 xB3=S21 0
-1
1 7800 7800
6 cB6=M xB3=a3
-1
0 4000
7 cB7=0 xB3=W21 0
-1
1 6000 6000
8 cB8=M xB3=a5
-1
0 5000
9 cB9=0 xB3=W22 0
-1
1 2000
M +M M +M M +M
fj
Cj-fj
-0.05 -0.05
0.3 M M 0.25 +M +M 0
0.35 0.4
0.4 0.5
0
0
0
-M -M
-M -M
0 -M 0
0
-0.05 0.3
0 -M
0
-M
0.05 -0.3
0
0
+M +M
-0.05
-0.05
-0.05
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0.3 xB1=S11 1
-1
0 3000
2 cB2=0 xB2=s2
-1
-1 -1
-1 4200 4200
3 cB3=0 xB3=s3
0 6000
4 cB4=0.3 xB3=S22 0
-1
-1 -1
1 2800
5 cB5=0.25 xB3=S21 0
-1
0 5000 5000
6 cB6=M xB3=a3
-1
0 4000 4000
7 cB7=0 xB3=W21 0
-1 -1
0 3200 3200
8 cB8=M xB3=a5
-1
0 5000
9 cB9=0 xB3=W22 0
-1
1 2000
fj
Cj-fj
-0.35
0 -0.3 -0.05 0
0 0.3 0.05 0
-0.3
+M
-0.3
+M
-0.3
+M
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0.3 xB1=S11 1
-1
0 6200
2 cB2=0 xB2=s2
-1
-1
-1 1000 1000
3 cB3=0 xB3=s3
0 6000
4 cB4=0.3 xB3=S22 0
-1
1 6000
5 cB5=0.25 xB3=S21 0
-1
0 1800
6 cB6=M xB3=a3
-1
-1
-1
7 cB7=0 xB3=W11 0
-1 -1
0 3200
8 cB8=M xB3=a5
-1
0 5000
9 cB9=0 xB3=W22 0
-1
1 2000
0 -M -M 0 -0.3
0
-M
M +M M 0.3 M 0.3
0 0.05 0
fj
Cj-fj
0.4 0.5
0
-M -M
0 0.05 0
0.35
0.3
-0.35
-0.3
M +M 0 0.3
0
+M
-0.05
-0.3
+M
-0.3
+M
800 800
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
1 cB1=0.3 xB1=S11 1
0 6200
2 cB2=0 xB2=s2
-1
-1 -1 -1
-1 200 200
3 cB3=0 xB3=s3
0 6000
4 cB4=0.3 xB3=S22 0
-1
1 6000
5 cB5=0.25 xB3=S21 0
-1
0 1800
6 cB6=0.4 xB3=S12 0
-1
-1
-1
800
7 cB7=0 xB3=W11 0
-1 -1
0 3200
8 cB8=M xB3=a5
-1
0 5000 5000
9 cB9=0 xB3=W22 0
-1
1 2000
fj
Cj-fj
0.5
0
-M
-0.4
-1
bi
-0.3
0
+M +M +M +M
+M
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
1 cB1=0.3 xB1=S11 1
0 6200
2 cB2=0 xB2=W12 0
-1
-1 -1 -1
-1 200
3 cB3=0 xB3=s3
0 6000 6000
4 cB4=0.3 xB3=S22 0
-1
1 6000 6000
5 cB5=0.25 xB3=S21 0
-1
0 1800
6 cB6=0.4 xB3=S12 0
-1
-1
-1 1000
7 cB7=0 xB3=W11 0
-1 -1
0 3200
8 cB8=M xB3=a5
-1
-1 -1 -1
1 4800 4800
9 cB9=0 xB3=W22 0
-1
1 2000 2000
0 -M
-0.05
fj
Cj-fj
0.5
0
-M
-0.1
+M
0.45
-M
M 0.05 0
+M +M +M
-1
bi
-0.1
-0.05
M +M M 0.3 M
+M
0
0.05
-0.3
+M
0 0.1
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
1 cB1=0.3 xB1=S11 1
0 6200
2 cB2=0 xB2=W12 0
-1 -1 -1
0 2200
3 cB3=0 xB3=s3
-1
-1 4000 4000
4 cB4=0.3 xB3=S22 0
-1
0 4000
5 cB5=0.25 xB3=S21 0
-1
0 1800
6 cB6=0.4 xB3=S12 0
-1
0 3000
7 cB7=0 xB3=W11 0
-1 -1
0 3200
8 cB8=M xB3=a5
-1
-1
-1 -1
0 2800 2800
9 cB9=0.35 xB3=S23 0
-1
1 2000
fj
Cj-fj
0.5
0
-M
0 -M
0
-0.05
0.45
-M
-0.45
-0.35
0.3 0.4
0
-M -M
-0.3 -0.4
M 0.05 +M 0.35
0
+M +M
-1
bi
-0.05
M +M M 0.3 M 0.35
0
0.05
-0.3
+M
-0.35
0 +M
Min
Cj
M M M M M M
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
1 cB1=0.3 xB1=S11 1
0 6200
2 cB2=0 xB2=W12 0
-1 -1 -1
0 2200
3 cB3=0 xB3=s3
-1 -1 -1
-1 -1 1200
4 cB4=0.3 xB3=S22 0
-1
0 4000
5 cB5=0.25 xB3=S21 0
-1
0 1800
6 cB6=0.4 xB3=S12 0
-1
0 3000
7 cB7=0 xB3=W11 0
-1 -1
0 3200
8 cB8=0.5 xB3=S13 0
-1
-1
-1 -1
0 2800
9 cB9=0.35 xB3=S23 0
-1
1 2000
fj
Cj-fj
0 -M
0
-0.05
0.45
-M
-0.45
-0.35
0.3 0.4
0
-M -M
-0.3 -0.4
M 0.05 +M 0.35
0
+M +M
-1
bi
-0.05
M +M M 0.3 M 0.35
0
0.05
-0.3
+M
-0.35
0 +M
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0 xB1=s1
0 8000 8000
2 cB2=0 xB2=s2
0 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=1 xB3=a1
-1
0 3000 3000
5 cB5=1 xB3=a2
-1
0 1800
6 cB6=1 xB3=a3
-1
0 4000
7 cB7=1 xB3=a4
-1
0 4000
8 cB8=1 xB3=a5
-1
0 5000
9 cB9=1 xB3=a6
-1
1 2000
-1
-1
-1 -1 -1 -1 -1 -1
fj
Cj-fj
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2 a3
a4 a5
a6
bi
1 cB1=0 xB1=s1
-1
0 5000 5000
2 cB2=0 xB2=s2
0 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=0 xB3=S11 1
-1
0 3000
5 cB5=1 xB3=a2
-1
0 1800
6 cB6=1 xB3=a3
-1
0 4000 4000
7 cB7=1 xB3=a4
-1
0 4000
8 cB8=1 xB3=a5
-1
0 5000
9 cB9=1 xB3=a6
-1
1 2000
fj
-1
-1
Cj-fj
-1 -1 -1 -1 -1 -1
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2
a3 a4
a5 a6
1
bi
1 cB1=0 xB1=s1
-1
-1
-1
0 1000 1000
2 cB2=0 xB2=s2
0 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=0 xB3=S11
-1
0 7000
5 cB5=1 xB3=a2
-1
0 1800
6 cB6=0 xB3=W11 0
-1
0 4000
7 cB7=1 xB3=a4
-1
0 4000
8 cB8=1 xB3=a5
-1
0 5000 5000
9 cB9=1 xB3=a6
-1
1 2000
fj
-1
-1
Cj-fj
-1 -1 -1 -1
-1
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2
a3 a4
a5 a6
1
bi
1 cB1=0 xB1=W12 0
-1
-1
-1
0 1000
2 cB2=0 xB2=s2
0 7000 7000
3 cB3=0 xB3=s3
0 6000
4 cB4=0 xB3=S11
0 8000
5 cB5=1 xB3=a2
-1
0 1800
6 cB6=0 xB3=W11 0
-1
0 5000
7 cB7=1 xB3=a4
-1
0 4000
8 cB8=1 xB3=a5
-1
-1
-1
0 4000 4000
9 cB9=1 xB3=a6
-1
1 2000
fj
-1
-1 -1
Cj-fj
-1 -1
-1 -1
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2
a3 a4
a5 a6
1
bi
1 cB1=0 xB1=W12 0
-1
0 5000
2 cB2=0 xB2=s2
-1
-1
-1
-1
0 3000 3000
3 cB3=0 xB3=s3
0 6000
4 cB4=0 xB3=S11
0 8000 8000
5 cB5=1 xB3=a2
-1
0 1800 1800
6 cB6=0 xB3=W11 0
-1
0 5000 5000
7 cB7=1 xB3=a4
-1
0 4000
8 cB8=0 xB3=S12
-1
-1
-1
0 4000
9 cB9=1 xB3=a6
-1
1 2000
fj
-1
Cj-fj
-1
-1 -1
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2
a3 a4
a5 a6
1
0
1
bi
1 cB1=0 xB1=W12 0
-1
0 5000
2 cB2=0 xB2=s2
-1
-1 -1 -1
-1
0 1200 1200
3 cB3=0 xB3=s3
0 6000
4 cB4=0 xB3=S11
-1
0 6200 6200
5 cB5=0 xB3=S21
-1
0 1800
6 cB6=0 xB3=W11 0
-1 -1
0 3200 3200
7 cB7=1 xB3=a4
-1
0 4000 4000
8 cB8=0 xB3=S12
-1 -1
-1
0 5800
9 cB9=1 xB3=a6
-1
1 2000
fj
-1
Cj-fj
-1 -1
-1
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2
a3 a4
a5 a6
1
bi
1 cB1=0 xB1=W12 0
-1
0 5000
2 cB2=0 xB2=W21 0
-1
-1 -1 -1
-1
0 1200
3 cB3=0 xB3=s3
0 6000 6000
4 cB4=0 xB3=S11
-1
-1
-1
0 5000
5 cB5=0 xB3=S21
-1
-1
-1
-1
0 3000
6 cB6=0 xB3=W11 0
-1
-1
-1
0 2000
7 cB7=1 xB3=a4
-1
-1
-1 -1
0 2800
8 cB8=0 xB3=S12
0 7000
9 cB9=1 xB3=a6
-1
1 2000 2000
fj
-1
-1 -1 -1
Cj-fj
-1
-1
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2
a3 a4
a5 a6
1
bi
1 cB1=0 xB1=W12 0
-1
0 5000 5000
2 cB2=0 xB2=W21 0
-1
-1 -1 -1
-1
0 1200
3 cB3=0 xB3=s3
-1
-1 4000 4000
4 cB4=0 xB3=S11
-1
-1
-1
0 5000 5000
5 cB5=0 xB3=S21
-1
-1
-1
-1
0 3000
6 cB6=0 xB3=W11 0
-1
-1
-1
0 2000 2000
7 cB7=1 xB3=a4
-1
-1
-1 -1
0 2800 2800
8 cB8=0 xB3=S12
0 7000
9 cB9=0 xB3=S23
-1
1 2000
fj
-1
-1 -1 -1 -1
Cj-fj
-1
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2
a3 a4
a5 a6
1
bi
1 cB1=0 xB1=W12 0
-1
-1
0 3000 3000
2 cB2=0 xB2=W21 0
-1 -1
0 3200
3 cB3=0 xB3=s3
-1
-1
-1
-1 -1 2000 2000
4 cB4=0 xB3=S11
-1
0 3000
5 cB5=0 xB3=S21
-1
0 5000
6 cB6=0 xB3=S13
-1
-1
-1
0 2000
7 cB7=1 xB3=a4
-1
-1
-1
8 cB8=0 xB3=S12
0 7000 7000
9 cB9=0 xB3=S23
-1
1 2000
fj
-1
-1
-1
Cj-fj
-1
800 800
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23 s1
s2
s3
a1 a2
a3 a4
a5 a6
bi
1 cB1=0 xB1=W12 0
-1 -1 -1 -1
0 2200
2 cB2=0 xB2=W21 0
-1 -1
0 3200
3 cB3=0 xB3=s3
-1
-1
-1 -1 2800
4 cB4=0 xB3=S11
-1
0 3000
5 cB5=0 xB3=S21
-1
0 5000
6 cB6=0 xB3=S13
-1
-1
-1 -1
0 2800
7 cB7=0 xB3=S22
-1
-1
-1
800
8 cB8=0 xB3=S12
-1 -1
-1
0 6200
9 cB9=0 xB3=S23
-1
1 2000
fj
Cj-fj
Min
Cj
cB
xB
S11 S12 S13 S21 S22 S23 W11 W12 W13 W21 W22 W23
s1
s2
s3
bi
1 cB1=0.09 xB1=W12
2200
2 cB2=0.05 xB2=W21
3200
cB3=0
xB3=s3
-1
2800
cB4=0
xB3=S11
-1
3000
cB5=0
xB3=S21
5000
cB6=0
xB3=S13
-1
-1
-1
-1
2800
cB7=0
xB3=S22
-1
-1
-1
800
cB8=0
xB3=S12
6200
cB9=0
xB3=S23
-1
2000
fj
0.05 0.09
Cj-fj
0.01
0
0.12
0.05 0.09
0
0.14 0.09
Chapter 4
Example 4.1
Consider the following primal linear programming model.
Minimize f = 6x1 + 8x2
subject to
3x1 + x2 4
5x1 + 2x2 10
x1 + 2x2 3
and x1, x2 0
Find its dual linear programming model.
Solution:
Change into canonical form:
3x1 x2 4
5x1 2x2 10
x1 2x2 3
x1 2x2 3
and x1, x2 0
Thus,
4
10
6
, c , and A =
b
3
8
3 1
5 2
, i.e., AT =
1
2
1 2
3 5 1 1
1 2 2 2
Example 4.2
Consider the the following linear programming model:
Min f = 2x1 4x2
Subject to x1 5x2 80
4x1 2x2 6
x1 x2 = 3
x1, x2 0
(a) Rewrite the linear programming model into its canonical form.
(b) Change into its dual form.
Chapter 5
Example 5.1
Consider the following primal linear programming model.
Maximize f = 4x1 x2 + x3
subject to 2x1 x2 x3 6
2x1 2x2
4
and
x1, x2, x3 0
The following is its simplex final tableau.
Cj
4
i cB
xB
x1
1 cB1=4 xB1=x1 1
2 cB2=0 xB2=s2 0
fj
4
Cj-fj
0
-1
1
0 0
x2 x3 s1 s2
bi
0.5 0.5 0.5 0
3
3
1
1 1
10
2
2
2 0 icBibi=12
-3 -1 -2 0
Find the adjustable range of the follows such that the basic variables in the optimal
solution can keep invariant.
(1) The coefficient
s range of non-basic variable x2 in objective function.
(2) The coefficient
s range of basic variable x1 in objective function.
(3) The range of b1.
Solutions:
1
0 0
(1)
Cj
4
c2
i cB
xB x1 x2
x3 s1 s2
bi
1 cB1=4 xB1=x1 1 0.5 0.5 0.5 0
3
2 cB2=0 xB2=s2 0
3
1
1 1
10
fj
4
2
2
2 0 icBibi=12
Cj-fj
0 c2 - 2 -1 -2 0
Let c2 be the coefficient of x2 in the objective function, then the following
inequality c2 2 0 c2 2 must be hold to keep x2 staying outside of the
basic variables. This also implies that if the unit profit of x2 is greater than $2, the
optimality should be changed.
(2)
Cj
i cB
xB
1 cB1=c1 xB1=x1
2 cB2=0 xB2=s2
fj
Cj-fj
-1
1
0
x1
x2
x3
s1
1
0.5
0.5
0.5
0
3
1
1
c1 0.5c1 0.5c1 0.5c1
0 -1-0.5c1 1-0.5c1 -0.5c1
c1
0
s2
bi
0
3
1
10
0 icBibi=12
0
-1-0.5c1 0 1+0.5c1 0 c1 -2
1-0.5c1 0 c1 2
-0.5c1 0 c1 0 The concluding result is c1 2.
If the unit profit of x1 is smaller than $2, x1 should leave from basic variables, and
x3 will get into as a basic variable.
(3)
i cB
Cj
xB
4
x1
-1
x2
1
x3
0
s1
0
s2
bi
1 cB1=4 xB1=x1
2 cB2=0 xB2=s2
fj
0 icBibi=12
Cj-fj
-3
-1
-2
10
1 14
0.5b10 and b1 + 4 0 b1 -4, the result is: b10.
0
Example 5.2
Maximize f = 9 x112 x2
subject to
3x12x2 40
2x13x2 30
2x1 x2 250
and x1, x2 0
The following table is the final table of the above model.
Max Cj 9 12
i cB x B x 1 x 2
0
s1
0
s2
0
s3
bi
1 9 x1
3/5
-2/5
12
2 12 x2
-2/5
3/5
3 0
s3
-4/5
5/9
224
fj
9 12
3/5
18/5
-3/5 -18/5 0
Cj-fj
132
Under the concern of keeping the basic variables invariant, do the following
exercises
(a) Find the allowable range of coefficient
s values (say, c1 and c2) for x1 and x2.
(b) Find the allowable range of resource amount (say, b1 and b2) for 1st and 2nd
resources.
(c) Find the marginal values of 1st and 2nd resources.
Solution:
(a) 0.6c14.8 00.4c17.2 0 c1 8c1 18
8 c1 18
5.40.4c2 00.40.6c2 0 c2 1.35c2
c2 1.35
(b)
0.6 0.4 0
b1 0.6b1 12
30 0.4b 18 0
0.4 0.6 0
1
0.8
0.8b1 266.67
1
250
b 16 0.6b 0
0
.
4
0
.
6
0
2
b
5
0.8 5 9 1
250
218 2
(c) Let y1, y2 and y3 be the marginal values of 1st, 2nd and 3rd resources, then the
dual form of the original model is as follows:
Min
Min
g = 40 y130 y2250 y3 g = 40 y130 y2250 y3Ma1Ma2
subject to
subject to
3y1+2y2+2y3s1+a1 = 9
3y1+2y2+2y3 9
2y1+3y2+ y3 12
2y1+3y2+ y3s2+a2 = 12
y1, y2, y2 0
y1, y2, y2 s1, s2, a1, a2 0
Min Cj
i cB x B
40
y1
30
y2
250
y3
0
s1
0
s2
M
a1
M
a2
bi
1 M a1
-1
2 M a2
-1
12
3M
-M
-M
fj
Cj-fj
5M 5M
Min Cj
i cB x B
40
y1
30
y2
250
y3
0
s1
0
s2
M
a1
M
a2
bi
1 40 y1
2/3
2/3
-1/3
1/3
4.5
2 M a2
5/3
-1/3
2/3
-1
-2/3
3.6
fj
40
-40/3
+2M/3
40/32M/3
40/3 2M/3
-40/3
+2M/3
80/3 M/3
670/3
+M/3
-M
Cj-fj
80/3+
5M/3
10/35M/3
Min Cj
i cB x B
40
y1
30
y2
250
y3
0
s1
0
s2
M
a1
M
a2
bi
1 40 y1
0.4
2 30 y2
-0.2
fj
40
30
10
-12 -18
Cj-fj
240
12
18
Chapter 6
Example 6.1
ABC
IJK
()
()
I
J
K
210
140
290
A
B
C
80
200
200
I
J
K
2
4
3
4
3
6
4
4
4
11
14
12
A I J
B B I C K
VAM
Solution
(1)
I
J
K
Request
13
80
18
15
80
15
60
17
140
18
200
D(slack) Supply
15
0
70
18
16
200
200
90
160
Total cost1380156017140162007420()
210
140
290
640
1 4 15
233
1 165
penalty
D(slack)
13 2
17 1
15 2 1
Supply
13
10
18
15
200
17
15
18
15
70
18
16
200
0
140
0
20
290 270
70
200
140 20
640
Request 80 70
200
210 10
140
Total cost1310152001570162007380()
Example 6.2
7
10
6
8
12
10
11
5
11
10
4
9
20
28
17
33
98
30
45
35
110
VAM
Solution:
penalty
penalty
Request
D(slack)
11
10
10
12
10
11
20
28
17
33
12
30
45
35
110
penalty
penalty
17
14
36
Request
penalty
penalty
61
Request
penalty
penalty
Request
D(slack)
12
11
10
10
12
10
11
30 18
45
35
20
28
17
33
12 0
D(slack)
12
10
6
10
12
11
17
5
10
11
110
18
45 28
35
20
28
17 0
33
51
D(slack)
110
12
7
10
6
20
10
28
4
12
11
17
5
10
11
28
33 5
18
28 0
35
110
D(slack)
penalty
penalty
12
31
12
7
10
20
6
Request 20 0
penalty
penalty
Request
penalty
penalty
Request
10
28
4
12
11
17
5
10
11
28
18
0
35 15
110
D(slack)
12
18
7
10
28
4
12
11
17
5
10
20
6
10
11
28 10
10
20
6
12
10
10
10 0
11
17
5
11
15
110
12
8
D(slack)
18
7
18 0
10
28
4
5
9
50
0
0
0
0
0
15 0
110
Final
penalty
penalty
Request
D(slack)
12
18
7
10
20
6
12
10
10
20
28
11
17
5
11
17
10
28
4
5
9
33
30
45
35
12
110
206188101017528459 = 606