Econ 162 2nd Semester 2017 Notes
Econ 162 2nd Semester 2017 Notes
Econ 162 2nd Semester 2017 Notes
regression
Econ 162 2nd Semester 2017-2018 (1st Exam) analysis)
3. Optimization (mathematical programming): Finding the
Economic Decisions and Mathematical Optimization optimal (most efficient) way of using limited resources
Problems
4. Game theory
𝑝 = 31.8 − 0.05𝑞
𝐶 = 1,000 + 9𝑞 + 0.064𝑞2 𝜋 = (120 − 0.5𝑄)𝑄 − (420 + 60𝑄 + 𝑄 2 )
𝑑𝜋
Note = 120 − 𝑄 − 60 − 2𝑄 = 0
𝑑𝑄
Demand equation in given is an inverse demand function
because, here, p is determined by q. In reality, it’s price 𝜕2𝜋
= −1 − 2 = −3 < 0
𝜕𝑄 2
that determines demand. Not the other way around. (q
should be dependent variable_
𝑄 = 20, 𝑃 = 110, 𝜋 = 180
2 types of cost: fixed (1,000) and variable
At maximum profit, 3 conditions are fulfilled: b. Suppose instead that the firm can sell any and all of its
𝜕𝜋
a.) Marginal profit = 0 ( = 0) output at the fixed market price of 120. Find the firm’s
𝜕𝑞
𝑑𝑅
𝑀𝑅 = = 120 − 𝑄 = 120 − 30 = 90 You want to find time, t where profit, 𝜋 is stationary.
𝑑𝑄
𝑑𝐶 𝜋
𝑀𝐶 = = 60 + 2𝑄 = 60 + 60 = 120
𝑑𝑄
𝑑𝑅
𝑀𝑅 = = 120 − 𝑄 = 120 − 20 = 100
𝑑𝑄 t
𝑑𝐶 𝑑𝜋
𝑀𝐶 = = 60 + 2𝑄 = 60 + 40 = 100 = −8 + 20 − 0.5𝑡 = 0
𝑑𝑄 𝑑𝑡
of 𝜆. 𝜕ℒ
𝑐) = 1,200,00 − 30,000𝑆 − 60,000𝑀 = 0
𝜕𝜆
𝑀𝑎𝑥 𝜋 = −10,000 + 400𝑄 − 2𝑄 2
such that 4𝑄 ≤ 300 Solve all 3 equations together.
Logically, to maximize profit, you would use all 300 hours available 𝑎) 1 + 0.5𝑆 − 60,000𝜆 = 0
𝜕ℒ
= 300 − 4𝑄 = 0 1 + 0.5𝑆
𝜕𝜆 0.5 + 0.5𝑀 − 2𝑆 − 30,000 ( )=0
60,000
𝑄 = 75, 𝜆 = 25
1 + 0.5𝑆
0.5 + 0.5𝑀 − 2𝑆 − ( )=0
2
Maximization Example 6
Constrained Optimization 1 + 𝑀 − 4𝑆 − 1 − 0.5𝑆 = 0
AHC is considering hiring medical (M) and social service (S) staff. 𝑀 = 4.5𝑆
It’s determined that service (Q) can be described as follows: 𝑄 =
𝑀 + 0.5𝑆 + 0.5𝑀𝑆 − 𝑆 2 . AHC has a budget of 1.2 million/month. 𝑐) 1,200,000 − 30,000𝑆 − 60,000𝑀 = 0
Consumer Problem
𝑀𝑖𝑛 𝐶 = 3𝑥 2 + 6𝑦 2 − 𝑥𝑦
subject to 𝑥 + 𝑦 = 20 𝑀𝑎𝑥 𝑈 = 𝑥𝑦 subject to 𝑀 = 𝑃𝑥 𝑋 + 𝑃𝑦 𝑌
Nonlinear Programming
- Non-negativity constraints and inequality constraints
𝑔1 (𝑥) = 𝑔𝑠 (𝑥1 , … , 𝑥𝑛 ) ≤ 𝑏1
y
𝑀 Linear Programming
𝑃𝑦
𝑀𝑎𝑥 𝐹 = 3𝑥1 + 2𝑥2
subject to 2𝑥1 + 𝑥2 ≤ 6
𝑥1 + 2𝑥2 ≤ 8
x 𝑥1 , 𝑥2 ≥ 0
𝑀 x2
𝑃𝑥
Tangency Solution
- Vertical Intercept:
𝑀 (unique solution)
𝑃𝑦
𝑀
- Horizontal Intercept:
𝑃𝑥
Note: Along a contour, the value of the objective function is
- Income can only buy combinations of x and y that are
constant.
within the triangle or on the diagonal.
- Because you are maximizing, get the point on the
diagonal that is tangent to a utility curve. x2
Non-linear Programming
Linear Programming
𝐿 𝐾
x1 𝑞 = 𝑚𝑖𝑛 { , }
𝑎 𝑏
Boundary Solution at (0,1)
x2 where q is output, L is labor, K is capital, a is the amount of labor
needed to produce 1 unit of output, and b is the amount of capital
needed to produce 1 unit of output.
Note: Look at what you have less of then match it with the
Interior Solution
Example 1
Only 1 production technique
L = 100
K = 200
a=2
b=1
100 200
𝑞 = 𝑚𝑖𝑛 { , }
2 1
Note: Midpoint of the line segment (thick black line) is where 50%
𝑞 = 50 of production technique 1 is used and 50% of production
technique 2 is used.
At q = 50, you use up all of your available labor and end up with
excess capital. Example 3
3 production techniques
K 𝐾 = 2𝐿
𝑞1 = min{𝐿, 0.5𝐾}
𝐾 =L
𝑞3 = min{0.8𝐿, 0.8𝐾}
𝐾 = 0.5L
𝑞3 = min{0.5𝐿, 𝐾}
o y: more K used
o z: minimum labor and capital used Suppose a firm can choose among the following linear processes:
𝑞1 = 𝑚𝑖𝑛{𝐿, 0.5𝐾}
- Only produce at point Z because producing at any other
𝑞2 = min{0.5𝐿, 𝐾}
point is inefficient. 𝑞3 = 𝑚𝑖𝑛{0.8𝐿, 0.8𝐾}
𝐿 𝐾 𝑏
- At point z, = so 𝐾 = ( ) 𝐿
𝑎 𝑏 𝑎
The total input requirements are:
Example 2 𝐿 = 𝑞1 + 2𝑞2 + 1.25𝑞3
𝐾 = 2𝑞1 + 𝑞2 + 1.25𝑞3
2 production techniques
𝐿 𝐾 Problem:
𝑞1 = 𝑚𝑖𝑛 { , } 𝑀𝑎𝑥 𝑅 = 𝑝𝑞1 + 𝑝𝑞2 + 𝑝𝑞3
𝑎 𝑏
𝐿 𝐾 subject to
𝑞2 = 𝑚𝑖𝑛 { , }
𝑐 𝑑
𝑞1 + 2𝑞2 + 1.25𝑞3 ≤ 𝐿0
2𝑞1 + 𝑞2 + 1.25𝑞3 ≤ 𝐾0
𝑞1 , 𝑞2 , 𝑞3 ≥ 0
Example 1
A company produces 2 commodities, 𝑥1 and 𝑥2 . These 2 products
are processed through 2 machines. Maximum hours available are
120 and 180 for machines 1 and 2, respectively. Profit is Php45 for A (0,18) 990
𝑥1 and Php55 for 𝑥2 . Determine the optimal 𝑥1 and 𝑥2 that should B (10,15) 1,275
be manufactured in order to maximize profit. C (20,0) 900
D (0,0) 0
𝑥1 𝑥2 Hours
Machine 1 6 4 120
The solution is point B, where 𝑥1 = 10 and 𝑥2 = 15.
Machine 2 3 10 180
𝑥1 models, but only 0.5 hour to run diagnostic tests on the basic
D
C model. At what quantities of x and y should the company produce
to maximize profit?
Notes
The shaded area is the feasible region.
y
Vertex solution is found along the bounding face solution.
Whether the solution is a vertex solution or a bounding 0.5𝑥 + 𝑦 ≤ 80
face solution, the solution is always a vertex.
Notes
Point B
Automatically eliminate point d because not producing
6𝑥1 + 4𝑥2 = 120
3𝑥1 + 10𝑥2 = 180 anything will not maximize your profits.
Solve for point b:
Note: Use equal signs instead of inequality signs because the point
𝑥1 = 10, 𝑥2 = 15
𝑥 = 80, 𝑦 = 40
C (160,0) 16,000 b
c
D (0,0) 0
𝑥1
The solution is point B, where 𝑥 = 80 and 𝑦 = 40.
In a maximization program,
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 ≤ 𝑏1
is replaced by
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 + 𝑠1 = 𝑏1
where 𝑠1 is the slack variable.
3. Bounding Face Solution: Degenerate problem
In a minimization program,
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 ≥ 𝑏1 𝑀𝑖𝑛 𝐶 = 5𝑤 + 5𝑟
subject to
is replaced by
𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 − 𝑡1 = 𝑏1 𝑤 + 2𝑟 ≥ 1
where 𝑡1 is the surplus variable. 2𝑤 + 𝑟 ≥ 1
1.25𝑤 + 1.25𝑟 ≥ 1
𝑤, 𝑟 ≥ 0
Theorem (Dantzig). If the linear programming problem has an
optimal solution, then the optimal solution is an extreme point in a. 𝑤 + 2𝑟 = 1 → 𝑟 = 0.5 − 0.5𝑤
the feasible region. b. 2𝑤 + 𝑟 = 1 → 𝑟 = 1 − 2𝑤
c. 1.25𝑤 + 1.25𝑟 = 1 → 𝑟 = 0.8 − 𝑤
d. from objective function: 𝐶 = 5𝑤 + 5𝑟 → 𝑟 = 0.2𝐶 − 𝑤
Possible Outcomes
𝑟
1. No feasible solution
2𝑥1 + 𝑥2 ≤ 6
5𝑥1 + 4𝑥2 ≥ 40
𝑥2
Notes
𝑥1 (c) and (d) have the same slop so they are parallel.
No intersection so no solution. If C = 4, (c) and (d) will coincide, and the intersection of
the 2 lines is the solution.
𝑥2
James, the manager, determined that if the company produces a
low-priced standard model, each bag will require 7/10 hour in the
𝑥1
The more expensive deluxe model will require 1 hour for cutting
and dyeing, 5/6 hour for sewing, 2/3 hour for finishing, and ¼ hour
No solution if problem involves maximization because feasible for inspection and packaging.
region goes into infinity (unbounded).
James’ production is constrained by a limited number of hours (1) 𝑀𝑖𝑛 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛 subject to
available in each department. After studying the workload 𝑎11 𝑥1 + 𝑎12 𝑥2 + ⋯ + 𝑎1𝑛 𝑥𝑛 ≥ 𝑏1
𝑎21 𝑥1 + 𝑎22 𝑥2 + ⋯ + 𝑎2𝑛 𝑥𝑛 ≥ 𝑏2
projections in each department, James reckons that 630 hours for ⋮
cutting and dyeing, 600 hours for sewing, 708 hours for finishing 𝑎𝑚1 𝑥1 + 𝑎𝑚2 𝑥2 + ⋯ + 𝑎𝑚𝑛 𝑥𝑛 ≥ 𝑏𝑚
𝑥1 , 𝑥2 , … , 𝑥𝑛 ≥ 0
and 135 hours for inspection and packaging will be available for the
𝑦1 = standard, 𝑦2 = deluxe
… where (1) is the primal problem and (2) is the dual problem,
𝑀𝑎𝑥 𝜋 = 10𝑦1 + 9𝑦2
Coefficients of the objective function in the primal
problem are the constraint constants of the dual problem.
such that
Coefficients of the objective function in the dual problem
are the constraint constants of the primal problem.
7
𝑦 + 𝑦2 ≤ 630
10 1
The original problem, called the primal problem, is transformed
1 5
𝑦1 + 𝑦2 ≤ 600 into a dual problem through the following procedures:
2 6
1. Change “maximize” to “minimize” (or vice versa)
2 2. Except for the non-negativity restrictions, the inequality
𝑦1 + 𝑦2 ≤ 708
3
signs in the primal constraints are reversed in the dual
1 1 constraints.*
𝑦 + 𝑦 ≤ 135
10 1 4 2
3. The coefficient matrix of the dual constraints is the
transpose of the coefficient matrix of the primal
𝑦1 , 𝑦2 ≥ 0
constraints.
constraints.
Notes
When you plug the values you got into the constraint * Inequality signs must adhere to the general forms:
functions, you find that you don’t use up all your available Maximize ≤
hours. You end up with unused hours of sewing and Minimize ≥
inspection and packaging, i.e. slack hours.
Even if you don’t use up all available hours, you are still
maximizing profits because you’ve used up all the time
you have for some parts of the process. Example 1
Primal Problem:
Duality in Linear Programming
𝑀𝑎𝑥 45𝑥1 + 55𝑥2
subject to
Example 2
6𝑥1 + 4𝑥2 ≤ 120
3𝑥1 + 10𝑥2 ≤ 180
Primal Problem:
𝑥1 , 𝑥2 ≥ 0
𝑀𝑖𝑛 2𝑥1 + 10𝑥2
Answer:
subject to
(10,15) where VOF = 1,275 (profit)
2𝑥1 + 𝑥2 ≤ 6
5𝑥1 + 4𝑥2 ≥ 20 Dual Problem:
𝑥1 , 𝑥2 ≥ 0
subject to
𝑀𝑖𝑛 2𝑥1 + 10𝑥2
6𝑦1 + 3𝑦2 ≥ 45
subject to 4𝑦1 + 10𝑦2 ≥ 55
𝑦1 , 𝑦2 ≥ 0
−2𝑥1 − 𝑥2 ≥ −6
5𝑥1 + 4𝑥2 ≥ 20 Answer:
𝑥1 , 𝑥2 ≥ 0
(95/16, 25/8) where VOF = 1,275 (cost)
Dual Problem:
Theorem. If the primal is unbounded (feasible region goes to
𝑀𝑎𝑥 − 6𝑦1 + 20𝑦2
infinity), then the dual is infeasible.
subject to
Theorem (Complementary Slackness). If x* and y* are primal
and dual optimal, respectively, then Min VOF(x) Max VOF(y)
Dual problem: Max Dual problem: Min
(i) if 𝑦𝑖∗ > 0, then 𝑡𝑖∗ = 0 and if 𝑥𝑗∗ > 0, then 𝑠𝑗∗ = 0
(ii) if 𝑡𝑖∗ > 0, then 𝑦𝑖∗ = 0 and if 𝑠𝑗∗ > 0, then 𝑥𝑗∗ = 0 Subtract a surplus (ti) in primal Add a slack (si) in primal
where t* and s* are vectors of surplus and slack variables, problem problem
𝑀𝑎𝑥 𝑏1 𝑦1 + 𝑏2 𝑦2 + ⋯ + 𝑏𝑚 𝑦𝑚 Example 3
subject to JRB manufactures tables (𝑥1 ), chairs (𝑥2 ), and benches (𝑥3 ) and
𝑎11 𝑦1 + 𝑎21 𝑦2 + ⋯ + 𝑎𝑛1 𝑦𝑚 ≤ 𝑐1 derives a per-unit profit of Php6, Php8 and Php7, respectively. Only
𝑎12 𝑦1 + 𝑎22 𝑦2 + ⋯ + 𝑎𝑛2 𝑦𝑚 ≤ 𝑐2 two resources are consumed in manufacturing: wood (300 board
⋮
𝑎1𝑚 𝑦1 + 𝑎2𝑚 𝑦2 + ⋯ + 𝑎𝑛𝑚 𝑦𝑚 ≤ 𝑐𝑛 feet in inventory) and labor (110 hours available). JRB uses 30 board
𝑦1 , 𝑦2 , … , 𝑦𝑚 ≥ 0 feet to produce a table, 20 board feet for a chair and 25 board feet
for a bench. He also uses 5 hours of labor to produce a table, 10
Determining the dual solution from the primal solutions:
hours for a chair, and 7 hours for a bench.
subject to
𝑀𝑎𝑥 𝜋 = 6𝑥1 + 8𝑥2 + 7𝑥3
such that
6𝑥1 + 4𝑥2 ≤ 120
30𝑥1 + 20𝑥2 + 25𝑥3 ≤ 300
3𝑥1 + 10𝑥2 ≤ 180
5𝑥1 + 10𝑥2 + 7𝑥3 ≤ 110
𝑥1 , 𝑥2 ≥ 0
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
Answer:
Note: Because you have 3 unknowns but only 2 constraints, try to
(10,15) where VOF = 1,275 (profit)
solve the problem by getting the dual problem.
vs.
Dual Problem:
surplus variable is positive, which allows you to assume that 𝑥1 = 0. prices / opportunity costs / accounting or imputed prices of the
Notes:
Solving for 𝑥1 , 𝑥2 , 𝑥3 : 6 and 3 are resource requirements of 𝑦1 .
Because you assume that 𝑥1 = 0, you can now solve for 𝑥2 𝑥1 and 𝑥2 are valuation of resources (i.e., opportunity cost
and 𝑥3 . of using machine 1 and machine 2, respectively)
Use the 2 constraint equations in the primal problem to Total opportunity cost of producing 𝑦1 should at least be
solve for the values of 𝑥2 and 𝑥3 . as large as the gross profit of the product.
Plug in values of 𝑥1 , 𝑥2 , 𝑥3 in objective function of primal 𝑦𝑖 > 0 implies 𝑡𝑖 = 0 ; 𝑡𝑖 > 0 implies 𝑦𝑖 = 0
problem (profit) and make sure it equates to the value of If 6𝑥1 + 3𝑥2 were greater than 45, 𝑦1 would be greater
the objective function of the dual problem (cost), 98.18. than 0, and opportunity cost would be greater than profit.
Therefore, you wouldn’t produce at that value of 𝑦1 .
30𝑥1 + 20𝑥2 + 25𝑥3 ≤ 300
5𝑥1 + 10𝑥2 + 7𝑥3 ≤ 110
𝑡𝑜𝑡𝑎𝑙 𝑔𝑟𝑜𝑠𝑠 𝑝𝑟𝑜𝑓𝑖𝑡 = 𝑡𝑜𝑡𝑎𝑙 𝑜𝑝𝑝𝑜𝑟𝑡𝑢𝑛𝑖𝑡𝑦 𝑐𝑜𝑠𝑡 𝑜𝑓 𝑟𝑒𝑠𝑜𝑢𝑟𝑐𝑒𝑠
Optimal solution becomes:
If an addition unit of resource 1 is made available, the optimal
solution becomes: 𝑥1∗∗∗ = 5.73
𝑥2∗∗∗ = 3.21
𝑉𝑂𝐹(𝑥 ∗ ) = 1,265
𝑦1∗∗ = 10.21
𝑦2∗∗ = 14.94
𝑉𝑂𝐹(𝑥 ∗∗∗ ) − 𝑉𝑂𝐹(𝑥 ∗ ) = −10 = −𝑦1∗
𝑉𝑂𝐹(𝑦 ∗∗ ) = 1,280.94
95
𝑉𝑂𝐹(𝑦 ∗∗ ) − 𝑉𝑂𝐹(𝑦 ∗ ) = 1,280.94 − 1,275 = 5.94 = = 𝑥1
16
Example 1
Similarly, if 1 unit of resource 1 is lost, the optimal solution Solve the following linear programming problem by solving the
becomes: dual problem:
Optimal Solutions:
95 𝑀𝑎𝑥 𝑐0 = 𝑥1 + 2𝑥2
𝑥1∗ =
16 subject to
25
𝑥2∗ = 𝑥1 + 𝑥2 ≤ 10
8
𝑉𝑂𝐹(𝑥 ∗ ) = 1,275 −2𝑥1 + 2𝑥2 ≤ 4
𝑥1 , 𝑥2 ≥ 0
𝑦1∗ = 10
𝑦2∗ = 15 a.) Solve the problem and its dual.
b.) How will the value of the objective function in the primal
Consider a 1 peso increase in the price of 𝑦1∗ . change when the first constraint is changed to 𝑥1 + 𝑥2 ≤
Optimal solution becomes: 11?
Example
One basis of A is: General Form:
𝑀𝑎𝑥 45𝑥1 + 55𝑥2
1 1 subject to
𝐵=[ ]
2 0
6𝑥1 + 4𝑥2 ≤ 120
3𝑥1 + 10𝑥2 ≤ 180
The basic solution associated with this basis is: 𝑥1 , 𝑥2 ≥ 0
𝑥1 + 𝑥3 = 1
2𝑥1 = 1
Standard Form:
𝑀𝑎𝑥 45𝑥1 + 55𝑥2
1
𝑥1 = subject to
2
𝑥2 = 0 6𝑥1 + 4𝑥2 + 𝑥3 + 0𝑥4 = 120
1 3𝑥1 + 10𝑥2 + 0𝑥3 + 𝑥4 = 180
𝑥3 =
2 𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
1 1
where ( , 0, ) is a basic feasible solution. Computational Form:
2 2
𝑀𝑖𝑛 − 45𝑥1 − 55𝑥2
subject to
Another basis associated with A:
6𝑥1 + 4𝑥2 + 𝑥3 + 0𝑥4 = 120
3𝑥1 + 10𝑥2 + 0𝑥3 + 𝑥4 = 180
1 1 𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
𝐵=[ ]
2 3
Notes:
The basic solution associated with this basis is:
𝑥1 + 𝑥2 = 1 Standard Form is always Max
2𝑥1 + 3𝑥2 = 1 Computational Form is always Min
If General Form is Max
𝑥1 = 2
𝑥2 = −1 a.) Retain objective function for Standard Form
𝑥3 = 0 b.) Negate equation for Computational Form to
make it Min –(OF)
where (2, −1, 0) is NOT a basic feasible solution because the value
If General Form is Min
of 𝑥2 is negative.
a.) Negate equation for Standard Form to make it (ii) Choose the pivot row r such that 𝑏𝑟 ÷ 𝐴𝑟𝑘 =
Max –(OF) 𝑚𝑖𝑛{𝑏𝑖 /𝐴𝑖 } > 0 . If there is no such r, stop. The linear
b.) Retain objective function for Computational problem is unbounded. Otherwise, continue.
Form (iii) Pivot on 𝐴𝑟𝑘 . Go to step (i).
6 4 1 0
𝐴=[ ] Computational Form:
3 10 0 1
𝑀𝑖𝑛 − 45𝑥1 − 55𝑥2
𝑥 𝐵 = [𝑥3 𝑥4 ] subject to
6𝑥1 + 4𝑥2 + 𝑥3 = 120
3𝑥1 + 10𝑥2 + 𝑥4 = 180
𝑥 𝑁 = [𝑥1 𝑥2 ]
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 ≥ 0
[−𝑐 𝐵 𝑥 𝐵 ] = −𝑐
−𝑐 𝑁 ] [ 0 Tableau 1:
𝑥𝑁
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS
𝑥𝐵 𝑏
[𝐵 𝑁] [ 𝑁 ] = [ ]
0 Ax-c’x -45 -55 0 0 0 c0
𝑥
6 4 1 0 120
𝐵𝑥 𝐵 = 𝑏 b
3 10 0 1 180
𝐼𝑥 𝐵 = 𝑏
𝑥𝐵 = 𝑏
Tableau 1 is canonical with respect to 𝑥 𝐵 = (𝑥3 , 𝑥4 )
𝑥1 = 0, 𝑥2 = 0, 𝑥3 = 120, 𝑥4 = 180 Pivot on a22 = 10
basic solution
Goal:
Steps in Simplex Algorithm
1. All values in the first row are positive.
The linear programming problem is canonical with respect to some
2. Intersection of pivot row and pivot column is equal to 1,
basis and the basic solution associated with this basis is feasible
while all other values in that column are 0.
(𝑏 ≥ 0).
(i) Choose the pivot column k such that 𝑐𝑘 < 0 and
Tableau 2:
|𝑐𝑘 | > |𝑐𝑗 | ∀ 𝑗 ≠ 𝑘. If there is no 𝑐𝑘 < 0 and 𝑏 ≥ 0,
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS
𝑐𝑘 ≥ 0, the basic solution associated with the basis, is
-57/2 0 0 11/2 990
optimal. Otherwise, continue to the next step.
24/5 0 1 -2/5 48
3/10 1 0 1/10 18
1/2 1 7/10 0 1/10 11
Tableau 2 is canonical with respect to 𝑥 = (𝑥2 , 𝑥3 )
𝐵
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒙𝟓 RHS
Tableau 3 0 0 -3/10 1/10 3/5 96
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS 1 0 11/20 1/20 -1/10 4
0 0 95/16 25/8 1275 0 1 17/40 -1/40 3/20 9
1 0 5/24 -1/12 10
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒙𝟓 RHS
Tableau 3 is canonical with respect to 𝑥𝐵 = (𝑥1 , 𝑥2 ) 6/11 0 0 7/55 6/11 1080/11
𝑥1 = 10; 𝑥2 = 15; 𝑥𝑥 = 0; 𝑥4 = 0
20/11 0 1 1/11 -2/11 80/11
Standard Form:
𝑀𝑎𝑥 𝜋 = 6𝑥1 + 8𝑥2 + 7𝑥3 When the computational form of the LPP is not canonical
subject to with respect to some basic sequence, artificial variables
30𝑥1 + 20𝑥2 + 25𝑥3 + 𝑥4 = 300 are used. This happens in 2 cases:
5𝑥1 + 10𝑥2 + 7𝑥3 + 𝑥5 = 110 a.) The original problem is a minimization problem;
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 , 𝑥5 ≥ 0
and
b.) One of the constraints in the original
Computational Form: maximization problem is a strict equality.
𝑀𝑖𝑛 𝐶 = −6𝑥1 − 8𝑥2 − 7𝑥3
The artificial variables are assigned large coefficients
subject to
relative to the coefficients in the objective function.
30𝑥1 + 20𝑥2 + 25𝑥3 + 𝑥4 = 300
For (a), choose a large positive number. For (b), choose a
5𝑥1 + 10𝑥2 + 7𝑥3 + 𝑥5 = 110
𝑥1 , 𝑥2 , 𝑥3 , 𝑥4 , 𝑥5 ≥ 0 large negative number. This ensures that the optimal
solution doesn’t include any artificial variable.
Tableau 1
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒙𝟓 RHS Example
Tableau 2
𝑤
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒚𝟏 RHS
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒚𝟏 RHS Example
x1
JRB manufactures tables (𝑥1 ) and chairs (𝑥2 ) and derives a per unit
Tableau 1 profit of Php6 and Php8, respectively. Only 2 resources are
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒙𝟓 RHS consumed in manufacturing: wood (300 board feet in inventory)
and labor (110 hours available). JRB uses 30 board feet to produce a
-3 -2 0 0 0 0
table and 20 board feet to produce a chair. He also uses 5 hours of
1 0 1 0 0 4
labor to produce a table and 10 hours to produce a chair.
0 1 0 1 0 6
1 0 1 0 0 4 𝑥2
0 1 0 1 0 6 15
0 2 -3 0 1 6
11
(4,9)
Tableau 3
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒙𝟓 RHS 𝑥1
0 0 0 0 0 18 10 22
1 0 1 0 0 4
Notes:
0 0 3/2 1 -1/2 3
Instruments: x1 and x2
0 1 -3/2 0 1/2 3 Constraint Constants: 300 and 100
Coefficients of Objective Function: 6 and 8
Coefficients of Constraints: 30, 20, 5 and 10
Tableau 1
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS
Tableau 4
-6 -8 0 0 0
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 𝒙𝟓 RHS
30 20 1 0 300
0 0 0 0 1 18
5 10 0 1 110
1 0 0 -2/3 1/3 2
-2 0 0 4/5 88
20 0 1 -2 80
Sensitivity Analysis
1/2 1 0 1/10 11
Change in Constraint Constant: Labor
𝑥2
Tableau 3
𝒙𝟏 𝒙𝟐 𝒙𝟑 𝒙𝟒 RHS
0 0 1/10 3/5 96 𝑒
1 0 1/20 -1/10 4
𝑑
0 1 -1/40 3/20 9 𝑥1
𝑐
𝑎
𝑏
Example
Finding the Wood Exchange Coefficient using Matrices
𝑥1
𝐴𝑥 = 𝑏
𝐴−1 𝐴𝑥 = 𝐴−1 𝑏
Point A: No slack. Wood and labor are fully utilized. 𝑥 = 𝐴−1 𝑏
Point B: Wood constraint increased to 500. More tables
(x1) and less chairs (x2) are produced. 30 20 𝑥1 1
[ ][ ] = [ ]
5 10 𝑥2 0
Point C: Wood constraint decreased to 240. More chairs
and less tables are produced. det(𝐴) = (30)(10) − (20)(5) = 200
1 10 −5
𝐴−1 = [ ]
200 −20 30
10⁄
𝐴−1 𝑏 = [ 200 −20/200] [1]
−5/200 30/200 0
1/20 −1/10
[ ] and [ ]
−1/40 3/20
are the shadow prices of wood and labor, respectively.
You can also find the exchange coefficients from your final tableau:
Slack Slack
(wood) (labor)
𝑥1 (tables) 1/20 -1/10
𝑥2 (chairs) -1/40 3/20
𝑈𝐶𝐶𝑆𝐿 = ∞
𝐿𝑂𝐶𝑆𝐿 = 𝑜𝑟𝑖𝑔𝑖𝑛𝑎𝑙 𝑙𝑒𝑣𝑒𝑙 − 𝑠𝑚𝑎𝑙𝑙𝑒𝑠𝑡 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 𝑟𝑎𝑡𝑖𝑜 (𝑜𝑟
− ∞ 𝑖𝑓 𝑛𝑜 𝑟𝑎𝑡𝑖𝑜 𝑖𝑠 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒)
Slack Slack
(wood) (labor)
𝑥1 (tables) 1/20 -1/10 𝑈𝑂𝐶𝑆𝐿 = 𝑜𝑟𝑖𝑔𝑖𝑛𝑎𝑙 𝑙𝑒𝑣𝑒𝑙
𝑥2 (chairs) + 𝑠𝑚𝑎𝑙𝑙𝑒𝑠𝑡 𝑎𝑏𝑠𝑜𝑙𝑢𝑡𝑒 𝑣𝑎𝑙𝑢𝑒 𝑜𝑓 𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒 𝑟𝑎𝑡𝑖𝑜
-1/40 3/20 (𝑜𝑟 ∞ 𝑖𝑓 𝑛𝑜 𝑟𝑎𝑡𝑖𝑜 𝑖𝑠 𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒)
6⁄
Yes, because total cost is less than the profit you make.
10 = 4
3⁄
20 Notes:
Check shadow prices of each input. Determine the total
Lower objective variable (max) sensitivity limit
cost of the inputs of new product.
Compare that total cost to the profit.
8−4 = 4
If profit > cost, produce. If profit < cost, don’t produce.
203.67 and 4 tons of low-grade ore. Mine B produces 2, 2, and 12 tons per
= 2.26
90 day of each grade, respectively.
3 − 2.26 = 0.74
Management’s problem is to determine how many days per week
to operate each mine under current conditions.
Notes:
Look at allowable decrease of revenue of watermelon.
a.) How much, if any, excess production would result if the
Subtract 66.33 from 270 then divide answer by 90 to get
operating decision is based on minimizing costs?
the lowest possible price.
b.) What would be the cost effect of increasing low-grade ore
sales by 50%?
b.) How much does the price of cantaloupes have to increase
c.) What is ER’s minimum acceptable price per ton if it is to
before it is optimal to only grow cantaloupes?
renew a current contract to provide one of its customers
1.33 − 1 = 0.33 e.) What increase in the cost of operating Mine B would
cause ER to change its current operating decision?
c.) Suppose the price of watermelons drops by $60 per acre,
and the price of cantaloupes increases by $50 per acre. Is Degeneracy
If slope of objective function and slope of at least 1 optimal solution to the problem.
4. How would the solution change if the plant in Clermont is
constraint are not the same, then you have a Degenrate I
forced to shut for one day resulting in a loss of 4 tons of
problem.
production capacity?
Problem above:
5. What would the optimal objective function value be if the
a.) Slope of OF: -1/3 processing capacity in Eustis was reduced by 5 tons?
b.) Slope of constraint 1: -1/4 6. Interpret the reduced cost for shipping from Eustis to
c.) Slope of constraint 2: -1/2 Miami.
Each machine must be run by one of 19 cross-trained workers who following requirements.
are each available 34 hours per week. The plant has 10 type 1 Plant Capacity Warehouse Demand
why not.
Blending Problem
Jason Bourne manufactures a coffee product by blending 3 types
Employee Scheduling
of coffee beans. The cost per pound and the available pounds of
UP police schedules officers for 8-hour shifts. The beginning times
each bean are as follows:
for shifts are 8am, 12nn, 4pm, 8pm, 12mn and 4am. An officer
beginning a shift at one of these times work for the next 8 hours.
Bean Cost per Pound Available Pounds
During normal weekday operations, the number of officers needed
1 0.50 500
varies depending on the time of day. The staffing guidelines
2 0.70 600
require the following minimum umber of officers on duty:
3 0.45 400
Time 1 73 86
Start End 1 2 3 4 5 6 2 85 88
8am 4pm 𝑥11 𝑥12
3 60 75
12nn 8pm 𝑥22 𝑥23
4pm 12mn 𝑥34 𝑥35 Assume that the aroma and taste attributes of the coffee blend will
8pm 4am 𝑥43 𝑥44 be weighted average of the attributes of the beans used in the
4am 12nn 𝑥61 𝑥66 1. What is the minimum-cost blend that will meet the quality
i = shifts = 1, 2, …, 6
j = time of shifts = 1, 2, …, 6 Variables:
(e.g. x11 is the first shift, first period of the day) 𝑥1 Percentage of bean 1
𝑥2 Percentage of bean 2
Determine the number of police officers that should be scheduled 𝑥3 Percentage of bean 3
to begin the 8-hour shifts at each of the six times (8am, 12nn, 4pm,
8pm, 12mn, 4pm) to minimize the total number of officers required.
𝑀𝑖𝑛 𝐶 = 0.50(1,000)𝑥1 + 0.70(1,000)𝑥2 + 0.45(1,000)𝑥3
Subject to
𝑀𝑖𝑛 𝑥11 + 𝑥12 + ⋯ , + 𝑥66
73𝑥1 + 85𝑥2 + 60𝑥3 ≥ 75
86𝑥1 + 88𝑥2 + 75𝑥3 ≥ 80
subject to 1,000𝑥1 ≤ 500
𝑥11 + 𝑥61 ≥ 5 1,000𝑥2 ≤ 600
𝑥12 + 𝑥22 ≥ 6 1,000𝑥3 ≤ 400
𝑥1 + 𝑥2 + 𝑥3 = 1 Acme has 120 units in inventory on hand for this product. To
maintain a level workforce, the company wants to produce at least
𝑥1 = 0.5 𝑜𝑟 50% 500 pounds
400 units per month. It also wants to maintain a safety stock of at
𝑥2 = 0.34 𝑜𝑟 34% 340 pounds
least 50 units per month. Acme wants to determine how many
𝑥3 = 0.16 𝑜𝑟 16% 160 pounds
appliances to manufacture during each of the next 4 months to
meet the expected demand at the lowest possible total cost.
2. What is the cost per pound for the coffee blend?
C 1, 4 3 5.8%
𝑥1 = 0.4166 𝑜𝑟 41.67% 416.70 pounds
D 1 6 11.0%
𝑥2 = 0.5833 𝑜𝑟 58.33% 583.30 pounds
𝑥3 = 0 𝑜𝑟 0% 0 pounds
JR wants to minimize the amount of money he must invest in
Production and Inventory Problem month 1 to meet the required payments for this project.
these appliances during the next 4 months is shown in the What you have at the beginning of the month, you use to
following table along with the expected production costs and the pay or invest.
expected capacity for producing these items. What is available to me at the beginning of the month is
the money I have invested in previous periods that have
Demand 420 580 310 540 anything yet so nothing has matured.
The company makes its electric trimmer in-house for $55 and its
Questions
gas trimmer for $85. Alternatively, it can buy electric gas trimmers
1. How much investment in A will JR make in month 2?
from another source for $67 and $95, respectively.
2. How much investment in B will JR make in month 3?
3. How much investment in C will JR make in month 4?
1. How many gas and electric trimmers should Weedmacker
4. How much investment in D will JR make in month 1?
make and buy?
5. Use the dual price to determine how much more JR
2. How much would electric trimmers have to cost in order
should be willing to pay to delay the payment due at the
for the company to consider purchasing these items
end of the second month to the end of the third month.
rather than making them?
𝑀𝑎𝑥 ∑ 𝑂𝑖𝑗 𝑤𝑗
DEA efficiency for each branch office.
𝑗=1
Subject to
New Satisfaction Labor Operation 𝑛0 𝑛1
Branch R.O.A.
Loans Rating Hours Costs ∑ 𝑂𝑖𝑗 𝑤𝑗 − ∑ 𝐼𝑖𝑗 𝑣𝑗 ≤ 0
1 5.32 770 92 3.73 6.34 𝑗=1 𝑗=1
𝑛𝐼
would be higher.
Branches 6 and 8 serve as models for branch 3, because
the combined operations/characteristics, if emulated by
branch 3, would make branch 3 efficient because it will
allow branch 3 to produce more output with less input.
Sometimes, reference branch and composite branch will
DOSS
1. Do the thing 5 times.
2. Weights * output of composite
3. Shadow * input