Title: An Introduction to
1 Chapter 2
- An Introduction to
- Linear Programming
2Components of Linear Programming
- A goal (to maximize or minimize something)
- An objective (To determine..)
- Decision variables (what the manager can adjust)
- Constraints (subject to these things that the
manager cannot adjust)
3General Form of an LP Model
- xs are the decision variables
- cs, as and bs are constants
- as are the amount of constraint used or supplied
by each x - bs are the total amount of a constraint
available or required - cs are the value (cost or benefit) of each x
4General Form of an LP Model
5Assumptions of the LP Model
- Divisibility - basic units of xs are divisible
- Proportionality - as and cs are strictly
proportional to the xs - Additivity - each term in the objective function
and constraints contains only one variable - Deterministic - all cs, as and bs are known
and measured without error - Non-Negativity (caveat)
6Sherwood Furniture Company
Recently, Sherwood Furniture Company has been
interested in developing a new line of stereo
speaker cabinets. In the coming month, Sherwood
expects to have excess capacity in its Assembly
and Finishing departments and would like to
experiment with two new models. One model is the
Standard, a large, high-quality cabinet in a
traditional design that can be sold in virtually
unlimited quantities to several manufacturers of
audio equipment. The other model is the Custom,
a small, inexpensive cabinet in a novel design
that a single buyer will purchase on an exclusive
basis. Under the tentative terms of this
agreement, the buyer will purchase as many
Customs as Sherwood produces, up to 32 units.
The Standard requires 4 hours in the Assembly
Department and 8 hours in the Finishing
Department, and each unit contributes 20 to
profit. The Custom requires 3 hours in Assembly
and 2 hours in Finishing, and each unit
contributes 10 to profit. Current plans call
for 120 hours to be available next month in
Assembly and 160 hours in Finishing for cabinet
production, and Sherwood desires to allocate this
capacity in the most economical way.
7Sherwood Furniture Company Linear Equations
8Sherwood Furniture Company Graphical Solution
9Sherwood Furniture Company Graph Solution
Constraint 1
10Sherwood Furniture Company Graph Solution
Constraint 1
11Sherwood Furniture Company Graph Solution
Constraint 2
12Sherwood Furniture Company Graph Solution
Constraint 1 2
13Sherwood Furniture Company Graph Solution
Constraint 3
14Sherwood Furniture Company Graph Solution
Constraint 1, 2 3
Feasible region (solution set)
15Sherwood Furniture Company Graph Solution
Trial Objective function
Set the objective function equal to some
arbitrary number (well, not totally arbitrary
try to make it somewhere in the realm of
reasonableness and making it evenly divisible by
both objective coefficients makes it easier to
graph).
16Sherwood Furniture Company Graph Solution
Move the objective function toward or away from
the origin (keeping it at the same slope) until
it just touches the point farthest from the origin
17Sherwood Furniture Company Solve Linear
Equations
18Sherwood Furniture Company Solve Linear
Equations
19Sherwood Furniture Company Solve Linear
Equations
20Sherwood Furniture Company Graph Solution
Optimal Point (15, 20)
21Sherwood Furniture Company Slack Calculation
22Sherwood Furniture Company - Slack Variables
- Max
- 20x1 10x2 0S1 0S2 0S3
- s.t.
- 4x1 3x2 1S1 0S2 0S3 120
- 8x1 2x2 0S1 1S2 0S3 160
- 0x1 1x2 0S1 0S2 1S3 32
-
- and x1, x2, S1 ,S2 ,S3 gt 0
23Sherwood Furniture Company Graph Solution
3
2
1
24Sherwood Furniture Company Slack Calculation
Point 1
Point 1
25Sherwood Furniture Company Graph Solution
3
2
1
26Sherwood Furniture Company Slack Calculation
Point 2
Point 2
27Sherwood Furniture Company Graph Solution
3
2
1
28Sherwood Furniture Company Slack Calculation
Point 3
Point 3
29Sherwood Furniture Company Slack Calculation
Points 1, 2 3
Point 1
Point 2
Point 3
30Sherwood Furniture Company Slack Variables
- For each constraint the difference between the
RHS and LHS (RHS-LHS). It is the amount of
resource left over. - Constraint 1 S1 0 hrs.
- Constraint 2 S2 0 hrs.
- Constraint 3 S3 12 Custom
31Pet Food Company
A pet food company wants to find the optimal
mix of ingredients, which will minimize the cost
of a batch of food, subject to constraints on
nutritional content. There are two ingredients,
P1 and P2. P1 costs 5/lb. and P2 costs 8/lb. A
batch of food must contain no more than 400 lbs.
of P1 and must contain at least 200 lbs. of P2. A
batch must contain a total of at least 500 lbs.
What is the optimal (minimal cost) mix for a
single batch of food?
32Pet Food Company Linear Equations
33Pet Food Company Graph Solution
34Pet Food Company Graph Solution Constraint 1
35Pet Food Company Graph Solution Constraint 1
36Pet Food Company Graph Solution Constraint 2
37Pet Food Company Graph Solution Constraint 1 2
38Pet Food Company Graph Solution Constraint 3
39Pet Food Company Graph Solution Constraint 1, 2
3
40Pet Food Company Solve Linear Equations
41Pet Food Company Graph Solution
42Pet Food Company Solve Linear Equations
43Pet Food Company Solve Linear Equations
44Pet Food Company Graph Solution
Optimal Point (300, 200)
45Pet Food Company Slack/ Surplus Calculation
46Pet Food Co. Linear Equations Slack/ Surplus
Variables
- Min 5P1 8P2 0S1 0S2 0S3
- s.t. 1P1 0P2 1S1 0S2 0S3 400
- 0P1 1P2 0S1 - 1S2 0S3 200
- 1P1 1P2 0S1 0S2 - 1S3 500
-
- and P1, P2, S1 ,S2 ,S3 gt 0
47Pet Food Co. Slack Variables
- For each constraint the difference between the
RHS and LHS (RHS-LHS). It is the amount of
resource left over. - Constraint 1 S1 100 lbs.
48Pet Food Co. Surplus Variables
- For each constraint the difference between the
LHS and RHS (LHS-RHS). It is the amount bt which
a minimum requirement is exceeded. - Constraint 2 S2 0 lbs.
- Constraint 3 S3 0 lbs.
49Special Cases
- Alternate Optimal Solutions
- No Feasible Solution
- Unbounded Solutions
50Alternate Optimal Solutions
51Alternate Optimal Solutions
52Alternate Optimal Solutions
53Alternate Optimal Solutions
54Alternate Optimal Solutions
55Alternate Optimal Solutions
56Alternate Optimal Solutions
57Alternate Optimal Solutions
58Alternate Optimal Solutions
59Alternate Optimal Solutions
A
B
60Alternate Optimal Solutions
61Alternate Optimal Solutions
62Special Cases
- Alternate Optimal Solutions
- No Feasible Solution
- Unbounded Solutions
63No Feasible Solution
64No Feasible Solution
65Unbounded Solutions
66No Feasible Solution
67Special Cases
- Alternate Optimal Solutions
- No Feasible Solution
- Unbounded Solutions
68Unbounded Solutions
69Unbounded Solutions
70Unbounded Solutions
71Unbounded Solutions