Académique Documents
Professionnel Documents
Culture Documents
a
11
x
1
+ a
12
x
2
+ + a
1n
x
n
+ x
n+1
= b
1
,
a
21
x
1
+ a
22
x
2
+ + a
2n
x
n
- x
n+2
= b
2
,
a
m1
x
1
+ a
m2
x
2
+ + a
mn
x
n
+ x
n+k
= b
m
,
In our example problem:
x
1
+ 3x
2
- x
3
6,
x
2
+ x
3
4,
3x
1
+ x
2
7,
x
1
, x
2
, x
3
0.
x
1
+ 3x
2
- x
3
+ x
4
= 6,
x
2
+ x
3
+ x
5
= 4,
3x
1
+ x
2
+ x
6
= 7,
x
1
, x
2
, x
3
, x
4
, x
5
, x
6
0.
Optimization in Engineering Design
Georgia Institute of Technology
Systems Realization Laboratory
20
Simplex: Step 2
Step 2. Start with an initial basic feasible solution (b.f.s.) and set up the
initial tableau.
In our example
Maximize Z = 5x
1
+ 2x
2
+ x
3
x
1
+ 3x
2
- x
3
+ x
4
= 6,
x
2
+ x
3
+ x
5
= 4,
3x
1
+ x
2
+ x
6
= 7,
x
1
, x
2
, x
3
, x
4
, x
5
, x
6
0.
c
j
5 2 1 0 0 0
c
B
Basis
x
1
x
2
x
3
x
4
x
5
x
6
Constants
0 x
4
1 3 -1 1 0 0 6
0 x
5
0 1 1 0 1 0 4
0 x
6
3 1 0 0 0 1 7
c
row 5 2 1 0 0 0 Z=0
Optimization in Engineering Design
Georgia Institute of Technology
Systems Realization Laboratory
21
Step 2: Explanation
Adjacent Basic Feasible Solution
If we bring a nonbasic variable x
s
into the basis, our system changes from
the basis, x
b
, to the following (same notation as the book):
x
1
+
1s
x
s
=
x
r
+
rs
x
r
=
x
m
+
ms
x
s
=
1
b
r
b
s
b
x
i
= for i =1, , m
is i
a b
x
s
= 1
x
j
= 0 for j=m+1, ..., n and j=s
The new value of the objective function becomes:
=
+ =
m
1 i
s is i i
c ) a b ( c Z
Thus the change in the value of Z per unit increase in x
s
is
s
c = new value of Z - old value of Z
=
= =
+
m
1 i
i i
m
1 i
s is i i
b c c ) a b ( c
m
1 i
is i s
a c c
=
This is the Inner Product rule
Optimization in Engineering Design
Georgia Institute of Technology
Systems Realization Laboratory
22
Simplex: Step 3
Use the inner product rule to find the relative profit coefficients
c
j
5 2 1 0 0 0
c
B
Basis
x
1
x
2
x
3
x
4
x
5
x
6
Constants
0 x
4
1 3 -1 1 0 0 6
0 x
5
0 1 1 0 1 0 4
0 x
6
3 1 0 0 0 1 7
c
row 5 2 1 0 0 0 Z=0
j B j j
P c c c =
c
1
= 5 - 0(1) - 0(0) - 0(3) = 5 -> largest positive
c
2
= .
c
3
= .
Step 4: Is this an optimal basic feasible solution?
Optimization in Engineering Design
Georgia Institute of Technology
Systems Realization Laboratory
23
Simplex: Step 5
Apply the minimum ratio rule to determine the basic variable to leave the basis.
The new values of the basis variables:
x
i
= for i = 1, ..., m
s is i
x a b
(
=
>
is
i
0 a
s
a
b
min x max
is
In our example:
c
j
5 2 1 0 0 0
c
B
Basis
x
1
x
2
x
3
x
4
x
5
x
6
Constants
0 x
4
1 3 -1 1 0 0 6
0 x
5
0 1 1 0 1 0 4
0 x
6
3 1 0 0 0 1 7
c
row 5 2 1 0 0 0 Z=0
Row Basic Variable Ratio
1 x
4
6
2 x
5
-
3 x
6
7/3
Optimization in Engineering Design
Georgia Institute of Technology
Systems Realization Laboratory
24
c
j
5 2 1 0 0 0
c
B
Basis
x
1
x
2
x
3
x
4
x
5
x
6
Constants
0 x
4
0 8/3 -1 1 0 0 11/3
0 x
5
0 1 1 0 1 0 4
5 x
1
1 1/3 0 0 0 1/3 7/3
c
row 0 1/3 1 0 0 -5/3 Z=35/3
Simplex: Step 6
Perform the pivot operation to get the new tableau and the b.f.s.
c
j
5 2 1 0 0 0
c
B
Basis
x
1
x
2
x
3
x
4
x
5
x
6
Constants
0 x
4
1 3 -1 1 0 0 6
0 x
5
0 1 1 0 1 0 4
0 x
6
3 1 0 0 0 1 7
c
row 5 2 1 0 0 0 Z=0
j B j j
P c c c =
c
2
= 2 - (0) 8/3 - (0) 1 - (5) 1/3 = 1/3
c
3
= 1 - (0) (-1) - (0) 1 - (5) 0 = 1
c
6
= 0 - (0) 0 - (0) 0 - (5) 1/3 = -5/3
c
B
= (0 0 5)
New iteration:
find entering
variable:
Optimization in Engineering Design
Georgia Institute of Technology
Systems Realization Laboratory
25
Final Tableau
c
j
5 2 1 0 0 0
c
B
Basis
x
1
x
2
x
3
x
4
x
5
x
6
Constants
0 x
4
0 8/3 -1 1 0 0 11/3
0 x
5
0 1 1 0 1 0 4
5 x
1
1 1/3 0 0 0 1/3 7/3
c
row 0 1/3 1 0 0 -5/3 Z=35/3
c
j
5 2 1 0 0 0
c
B
Basis
x
1
x
2
x
3
x
4
x
5
x
6
Constants
0 x
4
0 4 0 1 1 0 23/3
1 x
3
0 1 1 0 1 0 4
5 x
1
1 1/3 0 0 0 1/3 7/3
c
row 0 -2/3 0 0 -1 -5/3 Z=47/3
x
3
enters basis,
x
5
leaves basis
Wrong value!
4 should be 11/3