Beruflich Dokumente
Kultur Dokumente
PROGRAMMING
SIMPLEX METHOD
Outline
Introduction
Terminology
Solving
LP Problems
Problem Statement
Algebric
Formulation
Graphical Formulation
Simplex Method
Introduction
Type of LP Problems
Product mix
Ingredient mix
Transportation
Production plan
Assignment
Terminology
Objective
Function:
An output function that you want to maximize or minimize.
Decision
Variables:
A set of input variables whose values you can change.
Constraints:
Feasible solution:
Optimal solution:
Solving LP Problems
Steps in Formulating a
Linear Programming (LP) Model
1.
2.
3.
4.
Problem Statement
10
Algebraic
Formulation
11
Objective function:
Constraints:
Labor:
Logos:
Non-Negativity:
Sleeveless >= 0
Sleeve >= 0
12
Graphical
Formulation
13
Material Constraint
The Equation of a Line
900
800
750
700
Sleeveless
600
500
400
300
200
Material
100
100 200 300 400 500 600 700 800
Sleeve
14
Material Constraint
The Area Under a Line
900
800
Sleeveless
700
600
500
400
300
200
Material
100
(0,0)
Sleeve
15
Labor Constraint
900
800
Sleeveless
700
600
500
400
300
200
Material
100
100 200 300 400 500 600 700 800 900
Sleeve
16
Demand Constraint
900
800
Hours
( 0 Sleeveless ) + ( 1 Sleeve ) = 375
Sleeveless
700
600
500
Demand
400
300
200
Material
100
100 200 300 400 500 600 700 800 900
Sleeve
17
Logos Constraint
900
800
Hours
Sleeveless
700
600
500
Logos
Demand
400
300
200
Material
100
100 200 300 400 500 600 700 800 900
Sleeve
18
Feasible Region
900
Hours
800
Sleeveless
700
Logos
600
500
Demand
400
300
200
Material
Feasible
Region
100
100 200 300 400 500 600 700 800 900
Sleeve
19
Hours
800
Sleeveless
700
Logos
600
Demand
500
400
300
200
100
$600
Material
100 200 300 400 500 600 700 800 900
Sleeve
20
Hours
800
Sleeveless
700
Logos
600
Demand
500
400
300
$1200
200
100
Material
100 200 300 400 500 600 700 800 900
Sleeve
21
Hours
800
Sleeveless
700
Logos
600
Demand
500
400
$1800
300
200
100
Material
100 200 300 400 500 600 700 800 900
Sleeve
22
Optimal Solution
Hours
800
Sleeveless
700
Logos
600
500
Demand
D
400
300
200
100
Material
100 200 300 400 500 600 700 800 900
Sleeve
23
Optimal Solution
900
Hours
800
Sleeveless
700
Logos
600
500
Demand
D
Optimum
400
300
A
B
C
D
E
F
$3,00 $4,50
Sleeveless Sleeve
300
200
0
375
150
375
500
200
600
120
600
0
Total
Profit
$1.800,00
$1.687,50
$2.137,50
$2.400,00
$2.340,00
$1.800,00
200
100
Material
C
B
Sleeve
24
Maximization vs Minimization
The position of your optimal point differs, depending upon
whether the objective is maximization or minimization.
Maximization
Minimization
Optimum (Max)
Isoprofit line
Y
Isocost line
Optimum
(Min)
X
X
25
Fundemental Theorem Of LP
If the optimal value of the objective function in a
linear programming problem exists, then that
value must occur at one (or more) of the corner
points of the feasible region.
Existence of Solution
Simplex
Method
28
Real LP Problems
Real-world LP problems often involve:
Hundreds or thousands of constraints
Large quantities of data
Many products and/or services
Many time periods
Numerous decision alternatives
and other complications
Simplex Method
Objective Function
has no maximum.
Table Formulation
32
LP Formulation
Maximize Z=3x1+4.5x2
Objective Function
where x1=sleeveless, x2=sleeve
0.4 x1+0.5x2300 Material
x1+2x2900
Labor
x2375
Demand
Constraints
x1600
Logo
x10, x20
Nonnegativity
LP Formulation 2
Material
Labor
Demand
Logo
1. Iteration
Coefficient of
Basic
variable
Eq.
No.
x1
x3
x4
x5
x6
Right
Side
x2
x3
x4
x5
x6
-3
-4,5
0,4
0,5
300
300/0.5=600
900
900/2=450
375
375/1=375
600
Pivot column
Pivot row
1. Step Determine the entering basic variable. Having the largest absolute value in Eq. 0
2. Step Determine the leaving basic variable;
a) Picking out each coefficient in the column that is strictly positive,
b) Dividing each of them into right side for the same row,
c) Identifying the the equation that has the smallest ratio.
Row 0
[ -3 -4.5 0 0 0 0 : 0]
-(-4.5) [ 0 1 0 0 1 0 : 375]
---------------------------------------------------------New Row
[ -3 0 0 0 4.5 0 : 1687.5]
GAUSSIAN ELIMINATION
2. Iteration
Coefficient of
Basic
variable
Eq.
No.
x1
x2
x3
x4
x5
x6
-3
4,5
1687,5
x3
x4
x2
x6
0,4
-0,5
112,5
-2
150
375
600
Coefficient of
Basic
variable
Basic
variable
Eq.
No.
Basic
variable
x1
x2
x3
x4
x5
x6
-3
4,5
1687,5
x3
x4
x2
x6
0,4
-0,5
112,5
-2
150
375
600
x5
x2
3. Iteration
Coefficient of
Basic
variable
Eq.
No.
x1
x2
x3
x4
x5
x6
-1,5
2137,5
x3
x1
x2
x6
-0,4
0,3
52,5
-2
150
375
-1
450
Coefficient of
Basic
variable
Basic
variable
Eq.
No.
Basic
variable
x1
x2
x3
x4
x5
x6
-1,5
2137,5
x3
x1
x2
x6
-0,4
0,3
52,5
-2
150
375
-1
450
x4
x1
Optimal Solution
Coefficient of
Basic
variable
Eq.
No.
Basic
variable
x1
x2
x3
x4
x5
x6
2400
x5
x1
x2
x6
10/3
-4/3
175
20/3
5/3
500
-10/3
4/3
-1
200
-20/3
5/3
100
Thank you......