Académique Documents
Professionnel Documents
Culture Documents
LP
1
Let: X1, X2, X3, ………, Xn = decision variables
Z = Objective function or linear function
…..Eq (2)
Formulating LP Problems
Hours Required
to Produce 1 Unit
Second Constraint:
Assembly Assembly
time used is ≤ time available
2X1 + 1X2 ≤ 100 (hours of assembly time)
Graphical Solution
Can be used when there are two
decision variables
1. Plot the constraint equations at their
limits by converting each equation to an
equality
2. Identify the feasible solution space
3. Create an iso-profit line based on the
objective function
4. Move this line outwards until the optimal
point is identified
Graphical Solution
X2
100 –
–
80 – Assembly (constraint B)
–
Number of BlueBerrys
60 –
–
40 –
– Electronics (constraint A)
20 – Feasible
region
–
|– | | | | | | | | | | X1
Figure B.3 0 20 40 60 80 100
Number of X-pods
Graphical Solution
Iso-Profit
X
Line Solution Method
2
Choose a possible
100 – value for the objective function
–
80 – Assembly (constraint B)
– $210 = 7X1 + 5X2
Number of Watch TVs
60 –
Solve for the axis– intercepts of the function and plot the line
40 –
– Electronics (constraint A)
20 – X2 = 42
Feasible X1 = 30
region
–
|– | | | | | | | | | | X1
Figure B.3 0 20 40 60 80 100
Number of X-pods
Graphical Solution
X2
100 –
–
80 –
–
Number of BlueBerrys
100 –
– $350 = $7X1 + $5X2
80 –
$280 = $7X1 + $5X2
–
Number of BlueBeryys
100 –
– Maximum profit line
80 –
–
Number of BlueBerrys
100 –
2 –
80 –
–
Number of BlueBerrys
60 –
–
3
40 –
–
20 –
–
|– | | | | | | | | | | X1
Figure B.7 1
0 20 40 60 80 100
4
Number of X-pods
Corner-Point Method
The optimal value will always be at a corner
point
Find the objective function value at each
corner point and choose the one with the
highest profit
16
The Galaxy Industries Production Problem –
A Prototype Example
• Marketing requirement
– Total production cannot exceed 700 dozens.
– Number of dozens of Space Rays cannot exceed
number of dozens of Zappers by more than 350.
• Technological input
– Space Rays requires 2 pounds of plastic and
3 minutes of labor per dozen.
– Zappers requires 1 pound of plastic and
4 minutes of labor per dozen. 17
The Galaxy Industries Production Problem –
A Prototype Example
• The current production plan calls for:
– Producing as much as possible of the more profitable product,
Space Ray ($8 profit per dozen).
– Use resources left over to produce Zappers ($5 profit
per dozen), while remaining within the marketing guidelines.
• The current production plan consists of:
Space Rays = 450 dozen 8(450) + 5(100)
Zapper = 100 dozen
Profit = $4100 per week
18
Management is seeking a
production schedule that will
increase the company’s profit.
19
A linear programming model
can provide an insight and an
intelligent solution to this problem.
20
The Galaxy Linear Programming Model
• Decisions variables:
– X1 = Weekly production level of Space Rays (in dozens)
– X2 = Weekly production level of Zappers (in dozens).
• Objective Function:
– Weekly profit, to be maximized
21
The Galaxy Linear Programming Model
23
Graphical Analysis – the Feasible Region
X2
X1
24
Graphical Analysis – the Feasible Region
X2
Infeasible
Production Feasible
Time
3X1+4X2 2400 X1
500 700
25
Graphical Analysis – the Feasible Region
X2
1000 The Plastic constraint
2X1+X2 1000
700 Total production constraint:
X1+X2 700 (redundant)
500
Infeasible
Production mix
constraint:
Production Feasible X1-X2 350
Time
3X1+4X22400
X1
500 700
Interior points. Boundary points. Extreme points.
• There are three types of feasible points 26
Solving Graphically for an
Optimal Solution
27
The search for an optimal solution
X2 Start at some arbitrary profit, say profit = $2,000...
1000 Then increase the profit, if possible...
...and continue until it becomes infeasible
X1
28
500
Summary of the optimal solution
Space Rays = 320 dozen
Zappers = 360 dozen
Profit = $4360
– This solution utilizes all the plastic and all the production hours.
29
Extreme points and optimal solutions
30
Multiple optimal solutions
• For multiple optimal solutions to exist, the objective
function must be parallel to one of the constraints
31
Minimization Problem
CHEMICAL CONTRIBUTION
Brand Nitrogen (lb/bag) Phosphate (lb/bag)
Gro-plus 2 4
Crop-fast 4 3
subject to
2x1 + 4x2 16 lb of nitrogen
4x1 + 3x2 24 lb of phosphate
x 1, x 2 0
Copyright 2006 John Wiley & Sons, Inc. Supplement 13-32
Graphical Solution
x2
14 –
x1 = 0 bags of Gro-plus
12 – x2 = 8 bags of Crop-fast
Z = $24
10 –
6–
4–
B
2–
C
0– | | | | | | |
2 4 6 8 10 12 14 x1
Copyright 2006 John Wiley & Sons, Inc. Supplement 13-33
Dual problem (2 vars primal)
34