Linear Programming
Linear Programming
Where f is same economic objective such as profit, production, cost, workweeks, or tons shipped.
3.
4.
Scheduling tellers at banks so that needs are met during each hour of the day while minimizing the total cost of labor
Selecting the product mix in a factory to make best use of machine- and labor-hours available while maximizing the firms profit Picking blends of raw materials in feed mills to produce finished feed combinations at minimum costs Determining the distribution system that will minimize total shipping cost
5. 6.
7.
Developing a production schedule that will satisfy future demands for a firms product and at the same time minimize total production and inventory costs
Allocating space for a tenant mix in a new shopping mall so as to maximize revenues to the leasing company
8.
e.
f.
4.
Problem Example 1: A clock maker makes two types of wood clock to sell at various malls. It takes him three (3) hours to assemble a pine clock, which requires two (2) oz of vanish . It takes four (4) hours to assemble a molave clock, which takes four oz of varnish. He has eight oz of varnish available in stock and he can work 12 hours. If he makes P100 profit on each pine clock and P120 on each molave clock, how many of each type should he make to maximize his profits? Formulate the linear program. Solution: Following the steps in formulating a linear program, we have, 1. Let x = number of pine clock y = number of molave clock 2. Objective function MAXIMIZE: Profit = P100x + P120y
Problem Example 1: (contn) 3. Constraints Raw materials and process requirements like - varnish requirement - processing time 4. Specific constraints Varnishing 3x + 4y 12 Processing time 2x + 4y 16 x0 y0 Thus, the linear program would be: MAXIMIZE : Profit = P100x + P120y SUBJECT TO: Varnishing 3x + 4y 12 Processing time 2x + 4y 16 x0 y0
Formulating LP Problems
The product-mix problem at Shader Electronics Two products 1. Shader X-pod, a portable music player
B 11
Formulating LP Problems
Hours Required to Produce 1 Unit Department X-pods (X1) BlueBerrys (X2) Available Hours This Week
4 2 P7
3 1 P5
240 100
Table B.1
B 12
Formulating LP Problems
Objective Function: Maximize Profit = P7X1 + P5X2 There are three types of constraints Upper limits where the amount used is the amount of a resource Lower limits where the amount used is the amount of the resource Equalities where the amount used is = the amount of the resource
2008 Prentice Hall, Inc. B 13
Formulating LP Problems
First Constraint: Electronic time used is Electronic time available
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
2008 Prentice Hall, Inc. B 15
Graphical Solution
X2
100 80 60 40 20 Figure B.3
2008 Prentice Hall, Inc.
Number of BlueBerrys
Assembly (constraint B)
| 0
X1
B 16
Number of X-pods
Graphical Solution
Iso-Profit Line Solution Method X
2
80 60 40 20 | 0
Solve for the axis intercepts of the function and plot the line
Electronics (constraint A) Feasible 42 X2 = region
| | 20 | | 40 |
X1 = 30
| 60 | | 80 | | 100
Figure B.3
2008 Prentice Hall, Inc.
X1
B 17
Number of X-pods
Graphical Solution
X2
100 80 60 40 20 Figure B.4
2008 Prentice Hall, Inc.
Number of BlueBerrys
(30, 0)
| | 20 | | 40 | | 60 | | 80 | | 100
| 0
X1
B 18
Number of X-pods
Graphical Solution
X2
100
Number of BlueBeryys
80 60 40 20 | 0 | | 20 | | 40 |
Figure B.5
2008 Prentice Hall, Inc.
| 60
| 80
| 100
X1
B 19
Number of X-pods
Graphical Solution
X2
100
Number of BlueBerrys
80 60 40 20 | 0 | | 20 | | 40 | | 60
Figure B.6
2008 Prentice Hall, Inc.
| 80
| 100
X1
B 20
Number of X-pods
Objective Function: To maximize: P = P5x + P8y Constraints: Subject to: time in Dept I: 3x + 4y 150 time in Dept II: x + 2y 60 x0 y0 Then, we graph the constraints by finding the x and y intercepts
x-intercept y-intercept (0, 372) (0,30)
3x + 4y 150 x + 2y 60 x0 y0
(50, 0) (60,0)
Y-Values
50 45 40 35 30 25 20 15 10 5 0 Y-Values
50
100