Lecture - 2 BUS 314
Lecture - 2 BUS 314
Lecture - 2 BUS 314
1
LP Solution
• Once an LP problem is solved, there a re 4 possible
solution alternatives
1. The LP has one optimum solution.
2. The LP has multiple (alternative) optimum solutions.
More than one optimum solution are found.
3. LP is infeasible. Feasible region does not exist. It has
no feasible solutions (The feasible region contains no
points).
4. The LP is unbounded. In the feasible region there are
points with arbitrarily large (in a max problem)
objective function values. 2
• A constraint is binding (active, tight) if the left-hand and right-
hand side of the constraint are equal when the optimal values
of the decision variables are substituted into the constraint.
• A constraint is nonbinding (inactive) if the left-hand side and
the right-hand side of the constraint are unequal when the
optimal values of the decision variables are substituted into
the constraint.
3
Dakota Example
• The Dakota Furniture Company manufactures desks, tables,
and chairs. The manufacture of each type of furniture requires
lumber and two types of skilled labor: finishing and carpentry.
• Currently, 48 board feet of lumber, 20 finishing hours, and 8
carpentry hours are available. A desk sells for $60, a table for
$30, and a chair for $20. At most five tables can be sold.
Resource Desk Table Chair Limit
Lumber 8 6 1 48
Finishing 4 2 1,5 20
Carpentry 2 1,5 0,5 8
Demand (max) - 5 - 4
Price ($) 60 30 20
Dakota Example – LP Model
max z = 60x1+30x2+20x3
s.t 8x1 + 6x2+ x3 ≤ 48
4x1 + 2x2+1,5x3 ≤ 20
2x1 + 1,5x2+ 0,5x3 ≤ 8
x2 ≤ 5
x1,x2,x3 ≥ 0
max 60x1+30x2+20x3
Subject to
8x1 + 6x2+ x3 <= 48
4x1 + 2x2+1.5x3 <= 20
2x1 + 1.5x2+ 0.5x3 <= 8 5
x2 <= 5
Alternative Solutions
• If Row 0 coefficient of a nonbasic variable is 0, then there are
alternative solutions involving that unbasic variable.
6
Unbounded LP
• Breadco Example
• Breadco Bakeries bakes two kinds of bread: French and
sourdough. Each loaf of French bread can be sold for 36¢, and
each loaf of sourdough bread for 30¢. A loaf of French bread
requires 1 yeast packet and 6 oz of flour; sourdough requires 1
yeast packet and 5 oz of flour. At present, Breadco has 5 yeast
packets and 10 oz of flour. Additional yeast packets can be
purchased at 3¢ each, and additional flour at 4¢/oz. Formulate
and solve an LP that can be used to maximize Breadco’s profits
( revenues - costs).
7
• Max Z = 36x1 + 30x2 -3x3 - 4x4
• Subject to;
• x1 +x2 5+ x3
• 6x1 +5x2 10+ x4
• x1, x2 0
8
• Giapetto Example
• max z = 3x1 + 2x2
• Subject to
• 2x1 + x2 ≤ 100 (Assembly constraint)
• x1 + x2 ≤ 80 (Carpentry constraint)
• x1 ≤ 40 (Demand Constraint)
9
Modified Giapetto (1)
• Giepetto Example
• max z = 3x1 + 2x2
• Subject to
• 2x1 + x2 ≤ 100
• x1 + x2 ≤ 80
• x1 ≤ 40
• x2 ≥ 90
• x1, x2 ≥ 0
• No feasible region!
10
Modified Giapetto (2)
• Giepetto Example
• maks z = 3x1 + 2x2
• S.T.
• x1 ≤ 40
• x2 ≥ 90
• x1, x2 ≥ 0
• Unbounded LP
11
What is sensitivity analysis?
• Sensitivity Analysis:
• To find out how changes in the parameters of the LP
affects the solution
• For Lindo example, as the allowable increases in RHS ranges are infinity
for each constraint, we can increase RHS of them as much as we want.
But according to allowable decreases, RHS of the first constraint can be
decreased by 100 and that of second constraint by 1.
• Lets assume that new RHS of the first constraint is 60.
• As the change is within allowable range, we can use the first
equation (max. problem):
• znew = 1001 + ( 60 - 100 ) 10 = 601.
• If the change in the objective function coefficient leaves the
current basis optimal (within the allowable range), the
following equations can be used to calculate new objective
function value:
• for maximization problems
• • new obj. fn. value = old obj. fn. value + (new coefficient – old
coefficient) × decision variable’s value
NO. ITERATIONS= 2
• What happens to the objective function value, if the profit for a table
(objective function coefficient for x2) is 25?
• What happens to the objective function value, if the profit for a chair
(objective function coefficient for x3) is 10?
26
• What happens to the objective function value, if we have 6 hours for
carpentry?
Next week 100% Rule
• What if values of more than one parameter changes!
27
100% Rule - DietExample
Chocolat
Price Calorie e Sugar Fat(oun
(TL) s (ounce) (ounce) ce)
Cake (1 slice) 5 400 3 2 2
Chocolate icecream (1
spoonful) 2 200 2 2 4
Coke (1 Bottle) 3 150 0 4 1
Pineapple pie (1 Slice) 8 500 0 4 5
Minimum amounts 500 6 10 10
30
Examples
• If the price of cake is 3 TL’s and of the pineapple pie is 5 TL’s, does the solution change?
What happens to the objective function value?
• Non basic var. They are in the allow range. BFS remain optimal. Obj func value does not
change.
• If the price of cake is 4 TL’s and of the coke is 3.5 TL’s, does the solution change? What
happens to the objective function value?
• =(1/2.75 )+(0.5/1)=0.36+0.5=0.86 100% rule
• cake is still non basic. For coke the change in z is: (new coef-old
coef)*1=9+(0.5*1)=9+0.5=9.5
• If the price of pineapple pie is 6 TL’s and of the chocolate icecream is 3 TL’s, does the
solution change? What happens to the objective function value?
• =2/5+1/1.83=0.4+0.55 less than 1 100%rule
• Pineapple pie is still non basic. For chocolate icecream the change in z is: (new coef-old
coef)*1=0+(1*3)=9+3=12
• If all prices are 3 TL’s, does the solution change? What happens to the objective function
value? 31
• 2/2.75+1/1.83+5/5 greater than 1 we have to solve again
100% Rule
• For constraints
32
Examples
• What happens if the calorie constraint is changed to 700, and the fat
constraint is changed to 12? Both of them nonbinding constraint. In the
allow range. BFS stays optimal. Obj func value does not change
• What happens if the calorie constraint is changed to 600, and the
chocolate constraint is changed to 8?
• =calorie const is non-binding, chocolate binding.
• =100/250+2/4=0.9 less than 1. bfs stays optimal.
• New z= old z-(2*(*-0.25)=9+0.5=9.5
• What happens if the sugar constraint is changed to 15, and the fat
constraint is changed to 11?sugar binding, fat non-binding.
• 5/infinity+3/5=0.6 bfs stays optimal
• Newz=old z-(5*-0.75)-(3*0)=9+3.75=12.75
• What happens if the sugar constraint is changed to 8, and the chocolate
constraint is changed to 4?sugar binding, chocolate binding 33
• 2/4+2/2.86=1.2 greater than 1. bfs changes, solve again