cdae 266 - class 13 oct. 10 last class: result of quiz 3 3. linear programming and applications...
TRANSCRIPT
CDAE 266 - Class 13Oct. 10
Last class:
Result of Quiz 3 3. Linear programming and applications Class exercise 5
Today:
3. Linear programming and applications
Next class: 3. Linear programming and applications Quiz 4 (Sections 3.2 and 3.3)
Reading: Linear Programming
CDAE 266 - Class 13Oct. 10
Important dates: Problem set 2 due today Midterm exam:
3. Linear programming & applications
3.1. What is linear programming (LP)?
3.2. How to develop a LP model?
3.3. How to solve a LP model graphically?
3.4. How to solve a LP model in Excel?
3.5. How to do sensitivity analysis?
3.6. What are some special cases of LP?
3.2. How to develop a LP model?
3.2.3. Major steps in developing a LP model: (1) Define decision variables (2) Express the objective function
(3) Express the constraints (4) Complete the LP model
3.2.4. Three examples: (1) Furniture manufacturer (2) Galaxy industrials (3) A farmer in Iowa
Example 3. A farmer in Iowa has 500 acres of land which can be used to grow corn and/or soybeans. The per acre net profit is $20 for soybeans and $18 for corn. In addition to the land constraint, the farmer has limited labor resources: 200 hours for planting and 160 hours for cultivation and harvesting. Labor required for planting is 0.6 hour per acre for corn and 0.5 hour per acre for soybean. Labor required for cultivation and harvesting is 0.8 hour per acre for corn and 0.3 hour per acre for soybeans.
If the farmer’s objective is to maximize the total profit, develop a LP model that can be used to determine how many acres of soy and how many acres of corn to be planted.
Class Exercise 5 (Thursday, Oct. 5)
Best Brooms is a small company that produces two difference brooms: one with a short handle and one with a long handle. Suppose each short broom requires 1 hour of labor and 2 lbs. of straw and each long broom requires 0.8 hour of labor and 3 lbs. of straws. We also know that each short broom brings a profit of $10 and each long broom brings a profit of $8 and the company has a total of 500 hours of labor and 1500 lbs of straw. Develop a LP model for the company to maximize its total profit.
3.3. How to solve a LP model graphically? 3.3.1. Review of some basic math
techniques: (1) How to plot a linear equation?
e.g., Y = 2 - 0.5X 2X + 3Y = 6 X = 3 Y = 4 X = 0 Y = 0
3.3. How to solve a LP model graphically? 3.3.1. Review of some basic math
techniques: (2) How to plot an inequality
e.g., 2X + 3Y < 12 3X < 15
4Y > 8 4Y > 8 X > 0 Y > 0
3.3. How to solve a LP model graphically? 3.3.1. Review of some basic math
techniques: (3) How to solve a system of two
equations? e.g., 30X + 20Y = 300
5X + 10 Y = 110 Step 1. Try to get ride of one variable
(e.g., X) and get the solution for the other variable (e.g., Y)
Step 2. Substitute the solution for the variable (e.g., Y) back
into any equation and get the solution for the other variable (X)
3.3. How to solve a LP model graphically? 3.3.2. Major steps of solving a LP
model graphically: (1) Plot each constraint (2) Identify the feasible region
(3) Plot the objective function (4) Move the objective function to
identify the “optimal point” (most attractive
corner) (5) Identify the two constraints that
determine the “optimal point” (6) Solve the system of 2 equations (7) Calculate the optimal value of the
objective function.
3.3. How to solve a LP model graphically?
3.3.3. Example 1 -- Furniture Co.
XT = Number of tables XC = Number of chairs
Maximize P = 6XT + 8XC
subject to: 30XT + 20XC < 300 (wood) 5XT + 10XC < 110 (labor) XT > 0 XC > 0
3.3. How to solve a LP model graphically? 3.3.3. Example 1
(1) Plot each constraint (a) XT > 0 (b) XC > 0 (c) 30XT + 20XC < 300 (wood) (d) 5XT + 10XC < 110 (labor)
(2) Find the feasible region (3) Plot the objective function (4) Move the objective function to
identify the optimal point (most attractive corner)
3.3. How to solve a LP model graphically? 3.3.3. Example 1
(5) Identify the two constraints that determine the “optimal point”
(6) Solve the system of 2 equations
30XT + 20XC = 300 (wood)
5XT + 10XC = 110 (labor)
Solution: XT = , XC =
(7) Calculate the optimal value of the
objective function.
P = 6XT + 8XC =
3.3. How to solve a LP model graphically? 3.3.4. Example 2 -- Galaxy Industries
XS = Number of space ray XZ = Number of zappers
Maximize P = 8XS + 5XZ
subject to 2XS + 1XZ < 1200 (plastic)3XS + 4XZ < 2400 (labor)XS + XZ < 800 (total)XS < XZ + 450 (mix)XS > 0XZ > 0
1200
600
Xz
The Plastic constraint
FeasibleXs
Plastic constraint
Infeasible
Labor constraint
600
800
Total production constraint
Production mix constraint
Recall the feasible region
600
800
1200
400 600 800
Xz
Xs
We now demonstrate the search for an optimal solution Start at some arbitrary profit, say profit = $2,000 ...
Profit = $ 000
2,
Then increase the profit, if possible...
3,4,
… and continue until it becomes infeasible
Profit =$5040
600
800
1200
400 600 800
Xz
Xs
Let’s take a closer look at the optimal point
FeasibleregionFeasibleregion
Questions:
1. Why do we need to plot the objective function?
The optimal point IS NOT always the intersecting point
For example: Maximize P = 9XT + 3XC
subject to: 30XT + 20XC < 300 wood
5XT + 10XC < 110 labor
XT > 0, XC > 0
2. How do I pick up a starting value for the obj. function?
Take-home exercise
Solve the following LP model graphically:
XT = Number of tables XC = Number of chairs
Maximize P = 6XT + 8XC
subject to: 40XT + 20XC < 280 (wood) 5XT + 10XC < 95 (labor) XT > 0 XC > 0
XT = ? XC = ? P = ?