BRAC Linear Programming
BRAC Linear Programming
Managerial Economics
Linear Programming (LP)
Includes:
• Production
• Total Cost
• Total Revenue
• Profit Function
Linearity means:
• Constant return to scale
• Price of output is constant
• Price of inputs are constant
• Production cost per unit is constant
• Profit per unit of output is constant
Constraint Profit Maximization
LP Model Formulation
Decision variables
mathematical symbols representing levels of activity of an
operation
Objective function
a linear relationship reflecting the objective of an operation
most frequent objective of business firms is to maximize profit
most frequent objective of individual operational units (such as a
production or packaging department) is to minimize cost
Constraint
a linear relationship representing a restriction on decision making
LP Model Formulation (cont.)
Max/min z = c1x1 + c2x2 + ... + cnxn
subject to:
a11x1 + a12x2 + ... + a1nxn (≤, =, ≥) b1
a21x1 + a22x2 + ... + a2nxn (≤, =, ≥) b2
:
am1x1 + am2x2 + ... + amnxn (≤, =, ≥) bm
xj = decision variables
bi = constraint levels
cj = objective function coefficients
aij = constraint coefficients
Structuring the Problem
Firm producing two goods, A and B. Its profit
equation,
п = aQA + bQB
Where
п = total profit
a = profit per unit of A, b = profit per unit of B
Example 1
П = 120 П = 90 П = 60
QA QB QA QB QA QB
0 120 0 90 0 60
10 90 10 60 10 30
20 60 20 30 20 0
30 30 30 0
40 0
The management problem is to maximize profit
given the resources constraints.
SUPPOSE: to produce A and B three machines (x y
z) are needed.
Structuring the Problem
Structuring the Problem: Constraints
Constraints:
For X machine
1QA + 3QB ≤ 90
For Y machine
2QA + 2QB ≤ 80
For Z machine
2QA ≤ 60
Decision variables
x1 = number of bowls to produce
x2 = number of mugs to produce
LP Formulation: Example
Maximize Z = $40 x1 + 50 x2
Subject to
x1 + 2x2 40 hr (labor constraint)
4x1 + 3x2 120 lb (clay constraint)
x1 , x2 0
40 –
4 x1 + 3 x2 120 lb
30 –
20 – Area common to
both constraints
10 – x1 + 2 x2 40 hr
0– | | | | | |
10 20 30 40 50 60 x1
Computing Optimal Values
x1 + 2x2 = 40
x2
4x1 + 3x2 = 120
40 – 4 x + 3 x 120 lb 4x1 + 8x2 = 160
1 2
-4x1 - 3x2 = -120
30 – 5x2 = 40
x2 = 8
20 –
x1 + 2 x2 40 hr x1 + 2(8) = 40
x1 = 24
10 –
8
| | x1
0– 24 | |
10 20 30 40
Z = $50(24) + $50(8) = $1,360
Simplex Method
A mathematical procedure for solving linear programming problems
according to a set of steps
Slack variables added to ≤ constraints to represent unused resources
x1 + 2x2 + s1 = 40 hours of labor
4x1 + 3x2 + s2 = 120 lb of clay
Surplus variables subtracted from ≥ constraints to represent excess
above resource requirement. For example
2x1 + 4x2 ≥ 16 is transformed into
2x1 + 4x2 - s1 = 16
Slack/surplus variables have a 0 coefficient in the objective function
Z = $40x1 + $50x2 + 0s1 + 0s2
Solving LP Problems with Excel
Click on “Tools”
to invoke “Solver.”
Objective function
=E6-F6
=E7-F7
=C6*B10+D6*B11
=C7*B10+D7*B11
Objective function
Decision variables
C6*B10+D6*B11≤40
C7*B10+D7*B11≤120
Click on “Add” to
insert constraints
Solving LP Problems with Excel (cont.)
Another Example
Suppose an MFI wants to maximize profit. It has two loan
portfolio, Business Loan (x1) and Housing Loan (x2). The
interest for x1 is 13 and for x2 is 11.
In village 1, there are 4 Groups who wants Business Loan and 5
Groups who wants Housing Loans but their loan taking capacity
is maximum of Tk. 1500 (in thousands).
In village 2, there are 5 and 3 Groups who wants Business Loans
and Housing Loans respectively. But their capacity of loan taking
is Tk. 1575 (in thousands).
In village 3, there are 1 and 2 Groups respectively with maximum
capacity of Tk. 420 (in thousands).
No loans can be negative.
Find out the amount of different loans which would maximize
the profit. [Answer Tk. 270 and Tk. 75 thousands.]
• The linear programming model for this example can be summarized as:
Another Example
…..Eq (4)
Dual Example
Maximize
Z = x1 + x2
Subject to
X1 ≥ 0
X2 ≥ 0
and
How to Transform to Dual
Objective
x1 + x2
Transform to dual problem
Minimize
4y1+ 12y2+y3
Where
y1 ≥ 0
y2 ≥ 0