CA5103 [QUIZ 3]
CA5103 [QUIZ 3]
MODULE 4.1: SENSITIVITY ANALYSIS ON CHANGES Let the objective Function be 𝑀𝑎𝑥 𝑍 = 𝑐1𝑥1 + 𝑐2𝑥2:
IN THE OBJECTIVE FUNCTION COEFFICIENT (OFC) The sensitivity analysis will allow us to answer the
following questions:
Sensitivity or Post Optimality Analysis
1. Will a change in the OFC (𝑐1and 𝑐2) cause a
➔ The analysis of the effect of change in one or
more parameters (i.e. change in the objective change in the optimal solution?
function coefficient or right-hand side) defining a 2. Will the optimum solution remain optimal upon
linear programming model and its effect on the changes in the OFC?
current optimal solution 3. What range of changes (range of optimality) can
➔ Conducted after determining the optimal solution be made in the OFC (𝑐1and 𝑐2) to make the
➔ Important to decision makers because real-world optimum solution remain optimal?
problems exists in a changing environment 4. What range of changes (range of optimality) can
➔ Recognizes the fact that management operates be made in the OFC (𝑐1and 𝑐2) that will cause
in a dynamic environment
➔ Changes like costs or prices of raw materials, change in the optimum solution?
product demand changes, companies purchase Sensitivity Analysis of the Right Hand Side (RHS)
new machinery, stock prices fluctuate, employee
turnover occurs, availability of resources, and so The sensitivity analysis will allow us to answer the
on are possible as well as technological following questions:
advances affecting production processes.
5. What will happen to the Objective Function (OF)
What if there is uncertainty about one or more value 𝑍, if the available resources (RHS) are
values in the LP model? increased or decreased?
6. How much is the increase in the OF value 𝑍 for
➔ Sensitivity analysis allows the decision maker each additional resource (RHS) to the
to ask certain “what-if:” questions about the constraint?
problem. 7. How much decrease in the OF value 𝑍 for each
◆ What effect will additional resources lost in the resource to the constraint?
have on the total profit? 8. Will the price per unit of the resource (shadow
◆ What particular resources are price) remain the same regardless of the
diminished? available resources?
◆ What if per-unit profit contributions are 9. What is the range of the available resources
increased or decreased? (RHS) is allowed to keep the price per unit of the
● Profit Contribution - refers to resource (shadow price) unchanged?
the objective function coefficient
𝑐1and 𝑐2 Graphical Sensitivity Analysis
● Total profit contribution - We can use the graph of an LP model to see what
refers to the objective function happens when:
value 𝑍
➔ An Objective Function Coefficient (OFC)
If 𝑀𝑎𝑥 𝑍 = 𝑐1𝑥1 + 𝑐2𝑥2 changes
➔ A Right Hand Side (RHS) changes
◆ What if more efficient production
processes become readily available?
Range of Optimality
𝑐1
smaller slope of the two constraints ≤ − 𝑐2
≤ larger slope of the two constraints
3. Solve for 𝑐1 and 𝑐2 range of optimality using the
properties and algebraic manipulations of
inequalities.
4. Express the range of optimality as inequality and
interval notation
Constraint 1 Constraint 2 Constraint 3 range of optimality [𝑐1𝑎, 𝑐1𝑏] and [𝑐2𝑎, 𝑐2𝑏]
Where: 𝑐1𝑎 = Lower limit for 𝑐1
𝑥1 ≤ 6 2𝑥1 + 3𝑥2 ≤ 19 𝑥1 + 𝑥2 ≤ 8
𝑐1𝑏 = Upper limit for 𝑐1
(5) ≤ 6 2(5) + 3(3) ≤ 1 (5) + (3) ≤ 8
𝑐2𝑎 = Lower limit for 𝑐2
5≠6 19 = 19 8=8
𝑐2𝑏 = Upper limit for 𝑐2
➔ The slope of the OF line 𝑀𝑎𝑥 𝑐1𝑥1 + 𝑐2𝑥2, is with 𝑐2 staying 7) such that:
𝑐1 The objective function line slope lies between
− 𝑐2 the slopes of the two binding constraints.
◆ The slope of the first binding constraint,
𝑐1 2
2
2𝑥1 + 3𝑥2 ≤ 19 is − 3
− 1 ≤− 7
≤− 3
𝑐1
◆ The slope of the second binding − 7⎡⎢− 1 ≤− ≤−
2 ⎤ − 7 Multiply both sides by -7
⎥
7 3
1 ⎣ ⎦
constraint, 𝑥1 + 𝑥2 ≤ 8 is − or -1 14
1 7 ≥ 𝑐1 ≥ 3 Reversing inequalities
14
≤ 𝑐1 ≤ 7 Range for 𝑐1
Objective Function 3
4. 7 ≤ 𝑐1 ≤ 7 Range for 𝑐1 in decimal
𝑀𝑎𝑥 𝑍 = 𝑐1𝑥1 + 𝑐2𝑥2 [4. 7 , 7] Interval Notation
𝑐1𝑥1 + 𝑐2𝑥2 = 𝑍
𝑐2𝑥2 =− 𝑐1𝑥1 + 𝑃
Range of Optimality for 𝑐2:
𝑐2𝑥2 −𝑐1𝑥1+𝑃
=
𝑐2 𝑐2 Find the range of possible values for 𝑐2 (with 𝑐1 staying 5
𝑐1
𝑥2 =− 𝑥+
𝑃 ) such that the objective function slope lies between that
𝑐2 𝑐2
of the two binding constraints:
5⎡⎢1 ≤ 𝑐 ≤ ⎤5
5 2
3 ⎥ Multiply both sides by 5
⎣ 2 ⎦
15
5 ≤ 𝑐2 ≤ 2 Range for 𝑐2
5 ≤ 𝑐2 ≤ 7. 5 Range for 𝑐2 in decimal
Excel Solver
[5 , 7. 5] Interval Notation
➔ Objective Function:
◆ E8 = sumproduct(B8:C8, B9:C9)
In performing the sensitivity analysis with changes on Illustration of Sensitivity Analysis on the Change of
the RHS, the following questions arise: the Right Hand Side (RHS) of the Constraint
1. How do changes made to the constants (RHS) An upholsterer has the following materials available: 18
of the constraint affect the optimal solution? square meter microfiber, 20 square meter leather, and 5
◆ Constraints will shift parallel square meter vinyl. A sofa requires the following: 3
◆ If it is a binding constraint, the axis will square meter microfiber, 2 square meter leather, and 1
change and OF value will change square meter vinyl. A couch requires the following: 2
◆ If it is a non-binding constraint, the axis square meter microfiber, and 4 square meter leather. If a
might change if it becomes a binding sofa sells for P1,200 and a couch sells P1,600, how
constraint
5
The new corner point (5 , 2
) is obtained by elimination
method using the modified microfiber constraint and the
Objective Function 𝑀𝑎𝑥 𝑍 = 1200𝑥 + 1600𝑦 vinyl constraint (the modified microfiber constraint and
the leather constraint—which could be seen on the
St. 3𝑥 + 2𝑦 ≤ 18 Microfiber constraint graph)
2𝑥 + 4𝑦 ≤ 20 Leather constraint
𝑥≤5 Vinyl Constraint
NNC: 𝑥, 𝑦 ≥ 0
NNC: 𝑥, 𝑦 ≥ 0
2𝑥 + 4𝑦 ≤ 20, at (4 , 3), 𝑃 = ₱9, 600 Original
1. What if the available microfiber resource is Profit
changed from 18 to 20? What will happen to the 3
2𝑥 + 4𝑦 ≤ 16, at (5 , 2 ), 𝑃 = ₱8, 400 New Profit
OF value?
Answer:
Answer:
𝑆𝑃1 = 200
There will be an increase of profit for every
additional square meter of microfiber in the constraint. The manufacturer should not pay more than 200 for an
additional unit of microfiber. Likewise, this means that
the profit decreases by 200 for every unit removed from
4. How much increase in the profit will there be for the current availability of microfiber
each additional square meter of microfiber
made?
𝑆𝑃2 = 300
Answer:
The manufacturer should not pay more than 300 for an
5
3𝑥 + 2𝑦 ≤ 20, at (5 , 2
), 𝑃 = ₱10, 000 New Profit additional unit of leather. Likewise, this means that the
3𝑥 + 2𝑦 ≤ 18, at (4 , 3), 𝑃 = ₱9, 600 Original profit decreases by 300 for every unit removed from the
Profit current availability of leather.
₱10, 000 − ₱9, 600 = ₱400 Profit
Increase
𝑆𝑃3 = 0
There will be 400 ÷ 2 = 200 increase in profit per
square meter of additional microfiber. Thus, Total profit is not affected by an increase in the amount
➔ For each additional square meter of microfiber, of vinyl (RHS). The dual value/shadow price for any
the profit will increase by ₱200 nonbinding constraint will be zero because an increase
➔ Conversely, for each diminished square meter of in the rhs of the constraint will affect only the value of the
microfiber, the profit will decrease by ₱200 slack or surplus variable for that constraint.
5. How much decrease in the profit will there be for 6. If we can increase the available resources (rhs)
each diminished square meter of leather made, of the microfiber and leather constraints, which
if any? material should receive priority?
Answer: 𝑆𝑃𝑀𝑖𝑐𝑟𝑜𝑓𝑖𝑏𝑒𝑟: 200/𝑠𝑞𝑚
𝑆𝑃𝑙𝑒𝑎𝑡ℎ𝑒𝑟: 300/𝑠𝑞𝑚
3
2𝑥 + 4𝑦 ≤ 16, at (5 , 2
), 𝑃 = ₱8, 400 New Profit
𝑍 = 12650
➔ An increase of 1 ton for Raw Material A will ➔ A binding constraint has a non-zero value while
cause a change in the value of the optimal a non-binding constraint has a value of zero.
solution or objective function. Hence, there will ➔ a binding constraint has a non-zero value while
be an increase of profit of ₱13,000 - ₱12,650 = a non-binding constraint has a value of zero.
₱350. ➔ A more detailed discussion of these two
➔ This indicates the change in the optimal constraints will be illustrated using the computer
objective value per unit change in the availability solution/solution using excel solver
of the resource (Raw material A). It provides a Minimization (Graphical)
direct link between the model input (resources)
and its output (total profit).
➔ The change in the value of the optimal solution
per unit increase in the right-hand side of the
constraint is called the dual value or shadow
price.
➔ It also represents the unit worth of a resource
(₱350/ton). This means that a unit increase (or
decrease) in Raw Material A capacity will
increase (or decrease) profit by ₱350.
➔ The manufacturer should not pay more than
₱350/ton for an additional unit of Raw material
A.
Supply Chain
1. Transportation Problems
2. Transshipment Problems
3. Assignment Problems
Delivery Cost
Plant 1 24 30 40
➔ C’s are transportation costs
➔ Circles and squares are nodes Plant 2 30 40 42
➔ Arrows distribution routes from source (𝑖) to
destination (𝑗)
Network Representation
𝑚 𝑛
𝑀𝑖𝑛 ∑ ∑ 𝑐𝑖𝑗𝑥𝑖𝑗
𝑖=1 𝑗=1
𝑛
∑ 𝑥𝑖𝑗 ≤ 𝑠𝑖 for 𝑖 = 1, 2, ... , 𝑚 Supply
𝑗=1
𝑚
∑ 𝑥𝑖𝑗 ≤ 𝑑𝑗 for 𝑖 = 1, 2, ... , 𝑚 Demand
𝑖=1
Destination
𝑀𝑖𝑛 𝑍: 24𝑥11 + 30𝑥12 + 40𝑥13 + 30𝑥21 + 40𝑥22 + 42𝑥23 We want to determine the pounds of material, 𝑥𝑖𝑗, to be
shipped by mode 𝑖 to destination 𝑗. The following table
Define the Constraints: summarizes the decision variables:
➔ Supply Constraints
◆ 𝑥11 + 𝑥12 + 𝑥13 ≤ 40
◆ 𝑥21 + 𝑥22 + 𝑥23 ≤ 40 San Diego Norfolk Pensacola
➔ Demand Constraints Truck 𝑥11 𝑥12 𝑥13
◆ 𝑥11 + 𝑥21 = 25
◆ 𝑥12 + 𝑥22 = 45 Railroad 𝑥21 𝑥22 𝑥23
◆ 𝑥13 + 𝑥23 = 10
Airplane 𝑥31 𝑥32 𝑥33
➔ Non-Negativity of Variables
◆ 𝑥𝑖𝑗 ≥ 0
◆ 𝑖 = 1, 2 Define the Objective Function
◆ 𝑗 = 1, 2, 3
➔ Minimize the total shipping cost
Plant ₱9 ₱6 ₱3 ₱0 200 1. Read and understand the problem and its given
2 conditions.
2. Set up a balanced transportation table. (If
Store 80 140 200 30 450/450
unbalanced "total supplies not equal to total
Dema
nd demand" create a dummy variable with a
transportation cost equal to "0").
3. Represent the Transportation Problem with a
network model
Network Representation (with dummy store) 4. Formulate the General Linear Programming
Model
5. Solve the problem
Zeron N Zeron S
Arnold 5 8
Supershelf 7 4
Zeron S 3 4 4
Assignment Problem
Assignment Problem (LP Formulation Special Cases
➔ Seeks to minimize the total cost assignment of
𝑚 workers to 𝑚 jobs, given that the cost of ➔ Number of agents exceeds the number of tasks
worker 𝑖 performing job 𝑗 is 𝑐𝑖𝑗 ◆ Extra agents simply remain unassigned
➔ It assumes all workers are assigned and each ➔ Number of tasks exceeds the number of agents
job is performed
Projects
Subcontra A B C
ctor
Westside 50 36 16
Federated 28 30 18
MODULE 5.2: ANALYTICAL AND COMPUTER
Goliath 35 32 20 SOLUTIONS OF TRANSPORTATION PROBLEMS
Network Representation
Rim Requirement
Result:
Step 1:
Select the cell with the least cost and allocate the
𝑍 = 12 (3000) + 20 (1000) + 11 (2000) + 26 (500)
shipment to exhaust either the supply of plants or meet
+ 28 (2500) = 161, 000
the demand requirements. Note that the lowest cost is
24 (in cell Plant 1 to Northwood).
Choose the next lowest cost cell (with cost of 30) then
make allocation of15 units of resources meeting all the
supplies in Plant 1.
Total Transportation Cost: 1. For each solution, compute the R and K values
𝑍 = 24 (25) + 30 (15) + 40 (30) + 42 (10) = 2670 for the occupied or used cells in the table using
the formula:
Improvement index:
𝐼𝑖𝑗 = 𝐶𝑖𝑗 − (𝑅𝑖 + 𝐾𝑗)
Results: 4. Trace the close path for the unused cell having
the largest negative index.
5. Develop an improved solution.
6. Repeat steps 1 to 5 until an optimal solution has
been found.
Step 1:
40 = 𝑅2 + 𝐾2 Step 6:
42 = 𝑅2 + 𝐾2 Evaluate now the unused cells in this new solution and
repeat the process until all indices are equal to or
Since 𝑅1 is assumed equal to zero, then greater than zero. The evaluation of each used and
unused cells of the second solution is shown below:
𝑅2 = 10
With four occupied cells (using 𝐶𝑖𝑗 = 𝑅𝑖 + 𝐾𝑗), the
𝐾1 = 24
following are obtained:
𝐾2 = 30
𝐾3 = 32 30 = 𝑅1 + 𝐾2
30 = 𝑅2 + 𝐾1
Step 2:
40 = 𝑅2 + 𝐾2
After the row and column values are computed, the next 42 = 𝑅2 + 𝐾3
step is to evaluate each unused/ unoccupied cells by
computing their improvement indices using Since 𝑅1 is assumed equal to zero, then
𝐼𝑖𝑗 = 𝐶𝑖𝑗 − (𝑅𝑖 + 𝐾𝑗). Thus, 𝐼13 = 𝐶13 − (𝑅1 + 𝐾3) and
𝐼21 = 𝐶21 − (𝑅2 + 𝐾1) are computed. 𝑅2 = 10
𝐾1 = 20
Note that there are two unused cells in the problem and
𝐾2 = 30
their improvement indices are: 𝐼13 = 8 and 𝐼21 =− 4
𝐾3 = 32
Step 3:
Now, evaluating the two unused cells in the problem by
Since the improvement index in the unused cell (row 2 to computing their improvement indices using
column 1) is negative (𝐼24 =− 4), the solution is not yet 𝐼𝑖𝑗 = 𝐶𝑖𝑗 − (𝑅𝑖 + 𝐾𝑗) leads to 𝐼11 = 4 and 𝐼13 = 8 Since
optimal.
Project Client
Leader
Results: 1 2 3
Terry 10 15 9
Carle 9 18 5
McClymon 6 14 3
ds
𝑍 = 12 (1000) + 6 (2000) + 11 (500) + 9 (2500) The first table is already in the proper form for the
+ 30 (3000) = 142, 000 Assignment Tableau.
Step 1:
Step 2:
Step 3:
Step 4:
Step 6:
Results:
𝑍 = 23 + 15 + 17 + 21 = 76
12. A constraint with a positive slack value value 18. The difference between the transportation
a. will have a positive dual price and assignment problems is that
b. will have a negative dual price a. total supply must equal total demand in
c. zero the transportation problem
a. $0
b. $0.28
c. $0.12
d. $0.40
3. Consider the following objective function:
𝑀𝑎𝑥: 𝑃 = 3𝑥 + 5𝑦
a. 𝑥1 = 34 , 𝑥2 = 40 s.t. 2𝑥 + 3𝑦 ≤ 30
b. 𝑥1 = 6 , 𝑥2 = 11 4𝑥 + 𝑦 ≤ 20
c. 𝑥1 = 7. 33 , 𝑥2 = 6 Find the rage of optimality for the coefficient
y.
d. 𝑥1 = 3 , 𝑥2 = 6 a. [0.75 , 4.5]
2. Classic New Orleans desserts include b. [4, 7]
pralines, pecan pie and Bananas Foster — all c. [2, 12]
three are absolutely essential to eat on any d. [1.5, 4]
trip to the city. Chefs may quibble about this
ingredient list as there are dozens of 4. Consider the following
variations on each recipe, but these objective function:
ingredients are common to most 𝑀𝑎𝑥: 𝑍 = 1200𝑥 + 1600𝑦
formulations. A recipe for a dozen pralines s.t. 3𝑥 + 2𝑦 ≤ 18
takes a cup of pecans, two cups of brown 2𝑥 + 4𝑦 ≤ 20
sugar, a cup of granulated sugar, a half 𝑥≤5
teaspoon of vanilla and a tablespoon of rum. NNC: 𝑥 , 𝑦 ≥ 0
d. −
3 a. Alice
2
b. Asok
c. Dilbert
6. The final table for an assignment problem,
d. Wally
who should be assigned to job 2?
9. The Pointy-haired boss has five projects to
assign and decides to go against all
convention and assign them to individuals
rather than project teams. He has the
Elbonians estimate the labor cost in dollars
of each possible assignment and that
a. worker A
information is summarized in the table.
b. worker B
c. worker C
d. worker D
THEORETICAL A transshipment
constraint requires
The reduced cost for a 8. True variables for all arcs
positive decision variable (inflows and outflows)
is 0, meaning that for connected to the node
1. True
variables in the solution,
their contribution is A dummy origin is used
optimal. when demand exceeds
9. False
supply, not when supply
This is the exceeds demand.
complementary slackness
condition: either a
2. True
constraint is binding Converting from cost
(slack/surplus = 0), or its minimization to profit
dual price is zero. maximization only
10. True requires changing the
Decreasing the objective objective function, while
function coefficient to its the constraints stay the
lower limit won't same.
3. False necessarily make the
problem unbounded; it
may just change the In a minimization
optimal solution. problem, a negative dual
price means that
In a minimization 11. A increasing the right-hand
problem, a positive dual side worsens (increases)
price indicates that the objective function
increasing the right-hand value.
4. False
side of a constraint
decreases the value of A constraint with a
the objective function, not positive slack value is not
12. C.
increases it binding, meaning its dual
price is zero.
There is no dual price for
decision variables, but The range of optimality
5. False indicates how much an
there is one for each
constraint. objective function
13. C. coefficient can change
If supply is less than before the current
demand in a solution is no longer
transportation problem, optimal.
6. True the LP model does not
handle how the The reduced cost shows
unsatisfied demand is how much an objective
met function coefficient would
14. C need to improve for a
A transportation problem decision variable to enter
with 3 sources and 4 the solution with a
7. False
destinations will have 12 positive value.
decision variables (3
𝑐2
In the assignment 4≤ ≤
3
3 2
problem, each task is 𝑐
3⎡⎢ 4 ≤ 32 ≤ 2 ⎤⎥3
1 3
18. C. assigned to one resource,
⎣ ⎦
with supply and demand
0. 75 ≤ 𝑐2 ≤ 4. 5
values equal to 1.
[0.75 , 4.5]
The assignment problem
is a specific case of the
19. A. transportation problem, 4.
where supply and
demand are equal to 1. 2𝑥 + 4𝑦 ≤ 20
4𝑦 =− 2𝑥 + 20
In a transshipment 2
𝑦 =− +5
problem, shipments can 4
2 1
occur between any 𝑠𝑙𝑜𝑝𝑒 =− 𝑜𝑟 −
20. D. 4 2
nodes, including origins,
transshipment nodes, and
destinations. 5.
PROBLEM-SOLVING
3𝑥 + 2𝑦 ≤ 18
1. D. 6. C. 2𝑦 =− 3𝑥 + 18
3
𝑦 =− 2 + 18
2. B. 7. A. 𝑠𝑙𝑜𝑝𝑒 =−
3
2
3. A. 8. D.
6.
4. C. 9. A.
If worker C is assigned to Job 2, the overall time for all
5. D. 10. C. assignments is minimized to 0 minutes.
SOLUTIONS 7.
c. Project 3 = Alice
The labor cost to complete Project 3
is $22. However, Dogbert’s cost is
lower, so this is not the best
assignment.
d. Project 4 = Wally
The labor cost to complete Project 4
is $23. However, Dilbert’s cost is
lower, so this is not the best
assignment.
8.
9.
10.
REFERENCES