Escolar Documentos
Profissional Documentos
Cultura Documentos
1
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Constrained Optimization
Chapter 15
LINEAR PROGRAMMING
An optimization approach that deals with
maximizing profit or minimizing cost in
presence of constraints such as limited
resources
Mathematical functions representing both the
objective and the constraints are linear.
2
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Standard Form/
Basic linear programming problem consists of two
major parts:
The objective function
A set of constraints
ai1 x1 ai 2 x2 ain xn bi
aij = amount of the ith resource that is consumed for
each unit of the jth activity
bi = amount of the ith resource that is available
The general second type of constraint specifies that
all activities must have a positive value, xi>0
Together, the objective function and the constraints
specify the linear programming problem.
4
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Infeasible
Design
Constraint
Limits
Feasible Design
Design variable 1
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Design
variable
2
Better Designs
Constraint
Limits
Design variable 1
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Problem Formulation
Design variables:
x1 = No. of A machines made daily
x2 = No. of B machines made daily
Criterion to be optimized:
P = 400 x1 + 600 x2
Manufacturing constraint:
Sales constraint:
Shipping constraint:
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
12
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 15.2
14
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
15
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Maximize
Z 150 x1 175 x2
7 x1 11x2 S1
10 x1 8 x2
77
80
S2
S3
x1
x2
S4
9
6
x1 , x 2 , S1 , S 2 , S 3 , S 4 0
17
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
n!
C
m!(n m)!
n
m
18
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Figure 15.3
19
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Simplex Method
Solving LP problem algebraically using an iterative
procedure (Gaussian elimination with pivoting)
Searching among the basic feasible solutions (corner
feasible solutions) to reduce the cost function
continuously until an optimum solution is reached.
The keys are
1) Find a search direction that would reduce the cost
2) Restrict the search to corner solutions that are
feasible.
3) This is achieved by pivoting in the Gaussian
elimination process.
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Simplex Example
Step 2: Rewrite the profit function into a cost
function
P = 10x + 12y 10x 12y = f
So we have
-10x - 12y + 0s + 0t = 1f
1x + 1y + 1s + 0t = 40
1x + 2y + 0s + 1t = 75
Step 3: Write the cost function and the nontrivial constraints in tableau format:
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Tableau Format
-10x - 12y + 0s + 0t = 1f
1x + 1y + 1s + 0t = 40
1x + 2y + 0s + 1t = 75
Last
column
The shaded
cells should be
non-negative
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
pivot
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
x
-4
y
0
0
1
s
0
1
0
t
6
-
Equation
f+450 (4)=(1)+12(6)
2.5
(5) = (2) (6)
(6) = (3)/2
37.5
Ratio
2.5/0.5 = 5
37.5/0.5 = 75
Optimal Solution
x + 2y = 75
x + y = 40
Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.