Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
all xi 0
x1 x2
79
x1 x2
65
x1 x2 x3
87
x2 x3
64
(i 1 ~ 5)
x3 x4
73
x3 x4
82
x4
43
x4 x5 52
x5 15
x1
48
x1 x2
79
x1 x2 x3
87
x2 x3
64
x3 x4
82
x4
43
x4 x5 52
x5 15
( x , x , x , x , x ) (48,31,39,43,15)
Total Personal Cost = $30,610
Maximize
Subject to
and
Z 3x1 5x 2 ,
x1
2 x2 12
3 x1 2 x2 18
x1 0, x2 0
x2 x1 0
8
: CPF solutions
(Corner-Point Feasible)
: Corner-point infeasible
solutions
3 x1 2 x2 18
(4,6)
2 x2 12
x1 4
4
2 Feasible
region
0
x2 0
6
10
x1
Optimality test:
There is at least one optimal solution.
If a CPF solution has no adjacent CPF solutions
that are better (as measured by Z) than itself,
then it must be an optimal solution.
Initialization
Optimal
Solution?
No
Iteration
Yes
Stop
x2
Z 30
( 2,6)
(0,6) 1
Z 36
( 4,3)
Feasible
region
0
(0,0) Z 0
Z 27
Z 12
( 4,0)
x1
Solution concept 2:
The simplex method is an iterative
algorithm ( a systematic solution procedure
that keeps repeating a fixed series of steps,
called an iteration).
Solution concept 3:
The initialization of the simplex method
chooses the origin to be the initial CPF
solution.
Solution concept 4:
Given a CPF solution, it is much quicker
computationally to gather information about its
adjacent CPF solutions than other CPF
solutions.
Therefore, each time the simplex method
performs an iteration to move from the current
CPF solution to a better one, it always chooses a
CPF solution that is adjacent to the current one.
Solution concept 5:
After the current CPF solution is identified, the
simplex method identifies the rate of improvement
in Z that would be obtained by moving along edge.
Solution concept 6:
The optimality test consists simply of checking
whether any of the edges give a positive rate of
improvement in Z. If no improvement is identified,
then the current CPF solution is optimal.
Simplex Method
To convert the functional inequality
constraints to equivalent equality constraints,
we need to incorporate slack variables.
Original Form
of Model
Max Z 3x1 5x 2 ,
s.t.
x1
4
Augmented
Form
of
the Model
Slack
variables
Max Z 3x1 5x 2 ,
s.t. x
x
2x2 x4
2 x2 12
3 x1 2 x2 18
and
x1 0, x2 0
3 x1 2 x2
and
4
12
x5 18
x j 0, for j 1,2,3,4,5.
Properties of BF Solution
1. Each variable is designated as either a nonbasic
variable or a basic variable.
2. # of nonbasic variables = # of functional
constraints.
0
4
12
18
Coefficient of:
x1 x2 x3
x4
x5
-3 -5 0
1 0 1
0 2 0
0
0
1
0
0
0
Right
Side
0
4
12
minimum
Side
0
12
6
4
2
12 18
9
18
2
x5 Right
0
0
0
1
12
18
12
6
2
18
9
2
minimum
Coefficient of:
x1 x2 x3
x4
x5
-3 -5 0
1 0 1
0 2 0
3 2 0
0
0
1
0
0
0
0
1
Right
Side
0
4
12
18
4
6
4
4
1
6
2
3
minimum
Coefficient of:
x1 x2 x3
-3
1
0
3
0
0
1
0
0
1
0
0
x4
x5
0
0 0
1
2 0
-1 1
2
Right
Side
30
4
6
6
x1 2, x2 6
None of the coefficient is negative.
(b) Tabular Form
Iteration BV Eq. Z
Z (0) 1
x3 (1) 0
2
x2 (2)
0
x1 (3) 0
Coefficient of:
x1 x2 x3 x4
0
Right
x5
Side
1 36
1
1
1
3
3
1
0
2 0
1 1
0
3 3
2
6
2
Algebraic Form
(0)
(1)
(2)
(3)
Z 3 x1 2 x2
x1
2x2
x3
3 x1 2 x2
x4
x5
4
12
18
Coefficient of:
x
x
2
1
Eq.
Z
BV
Z (0) 1 -3 -2
x3 (1) 0 1 0
x4 (2)
0 0 2
Right Solution
x5 Side Optimal?
0
0
12
18
x3 x4
x5 (3)
0 3 2 0 0
No
Coefficient of:
BV Eq. Z x1 x2
Z (0) 1 0 -2
x1 (1) 0 1 0
x4 (2)
0 0 2
Right Solution
x5 Side Optimal?
0 12
12
x3 x4
x5 (3)
0 0 2 -3 0
No
Coefficient of:
BV Eq. Z x1 x2 x3
Z (0) 1 0 0 0
x1 (1) 0 1 0 1
x4 (2)
0 0 0 3
x2 (3) 0 0 1 3
2
Right Solution
x5 Side Optimal?
1 18
-1
x4
Yes
Coefficient of:
Right Solution
x5 Side Optimal?
1 18
BV Eq. Z x1 x2 x3 x4
Z (0) 1 0 0 0 0
x1 (1) 0 1 0 0 13 13
Extra x
1 1
3 (2)
0 0 0 1 3
3
x2 (3) 0 0 1 0 1 0
2
2
2
6
Yes
4
2 x2 12
3 x1 2 x2 18
x1
and
x1 0, x2 0
Artificial Problem
Max Z 3 x1 5 x2 Mx5
s.t.
x1
x3
2x2 x4
3 x1 2 x2
4
12
x5 18
and
x j 0, for j 1,2,3,4,5.
x3 , x4: Slack Variables
x5 : Artificial Variable
Max:
s.t.
3x1 5 x2 Mx5
3x1 2 x2 x5 18
(0)
(3)
x5 18 3 x1 2 x2
(4)
Max
s.t.
Z (3M 3) x1 (2 M 5) x2 18M
4 (1)
x
x
1
2x2 x4 12 (2)
3 x1 2 x2
x5 18 (3)
Coefficient of:
x
x
x
x
2
4
3
1
Eq.
Z
BV
Z (0) 1 -3M-3 -2M-5 0 0
x3 (1) 0 1
0
1 0
0
x4 (2)
0
3
2
0 1
x5 (3)
0
Right
x5
Side
0 -18M
0
12
18
Coefficient of:
x
x
x
x
2
4
3
1
Eq.
Z
BV
Z (0) 1 -2M-5 3M+3 0 0
x1 (1) 0 1
0
1 0
x4 (2)
0
0
2
0 1
x5 (3)
0
Right
x5
Side
0 -6M+12
0
12
18
Coefficient of:
BV Eq. Z
Z (0) 1
x1 (1) 0
x4 (2)
0
x2 (3) 0
x1
x2
Right
x3 x4 x5
Side
5
M
9
2 27
2 0
0
1
0
4
1
-1
Coefficient of:
BV Eq. Z
Z (0) 1
x1 (1) 0
Extra
x3 (2)
0
x2 (3) 0
x1
x2
x3
Right
x4
x5
3 M 1 Side
27
2
1
1
0
3
3
1
1
1
3
3
1
2
0
0
4
6
3
x j x x , x 0, x 0
Min
s.t.
x1
3 x1 5 x2
4
2 x2 12
3 x1 2 x2 18
x1 : URS , x2 0
Min
s.t.
3 x 3 x 5 x2
x x
4
2 x2 12
3 x 3 x 2 x2 18
x 0, x ,0 x2 0