Professional Documents
Culture Documents
Linear Programming
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
Geometry of the Prototype Example
Max 3 P1 + 5 P2
s.t. P1 + < 4 (Plant 1)
P2 2 P2 < 12 (Plant 2)
3 P1 + 2 P2 < 18 (Plant 3)
P1, P2 >0 (nonnegativity)
P1
0
Geometry of the Prototype Example
Max 3 P1 + 5 P2
s.t. P1 + < 4 (Plant 1)
P2 2 P2 < 12 (Plant 2)
3 P1 + 2 P2 < 18 (Plant 3)
P1, P2 >0 (nonnegativity)
P1
(0,0) (4,0)
Geometry of the Prototype Example
Max 3 P1 + 5 P2
s.t. P1 + < 4 (Plant 1)
P2 2 P2 < 12 (Plant 2)
(0, 3 P1 + 2 P2 < 18 (Plant 3)
6) P1, P2 >0 (nonnegativity)
P1
(0,0) (4,0)
Geometry of the Prototype Example
Max 3 P1 + 5 P2
s.t. P1 + < 4 (Plant 1)
P2 2 P2 < 12 (Plant 2)
(0,6) (2,6) 3 P1 + 2 P2 < 18 (Plant 3)
P1, P2 >0 (nonnegativity)
(4,3)
(9,0)
P1
(0,0) (4,0)
Geometry of the Prototype Example
Max 3 P1 + 5 P2
s.t. P1 + < 4 (Plant 1)
P2 2 P2 < 12 (Plant 2)
(0,6) (2,6) 3 P1 + 2 P2 < 18 (Plant 3)
P1, P2 >0 (nonnegativity)
(4,3)
(9,0)
P1
(0,0) (4,0)
Max 3 P1 + 5 P2
P2 In Feasible Region
(0,6) (2,6)
Feasible region is the set of points
(solutions) that simultaneously satisfy all
the constraints. There are infinitely many
feasible points (solutions).
(4,3)
(9,0)
P1
(0,0) (4,0)
Geometry of the Prototype Example
Max 3 P1 + 5 P2
P2
(0,6) (2,6)
(9,0)
P1
(0,0) (4,0) 3 P1 + 5 P2 = 12
Geometry of the Prototype Example
3 P1 + 5 P2 = 36 Max 3 P1 + 5 P2
s.t. P1 + < 4 (Plant 1)
P2 2 P2 < 12 (Plant 2)
(0,6) (2,6) 3 P1 + 2 P2 < 18 (Plant 3)
P1, P2 >0 (nonnegativity)
(9,0)
P1
(0,0) (4,0)
LP Terminology
• solution (decision, point): any specification of values
for all decision variables, regardless of whether it is a
desirable or even allowable choice
• feasible solution: a solution for which all the
constraints are satisfied.
• feasible region (constraint set, feasible set): the
collection of all feasible solution
• optimal solution (optimum): a feasible solution that
has the most favorable value of the objective function
• optimal (objective) value: the value of the objective
function evaluated at an optimal solution
Unbounded or Infeasible Case
RESOURCE REQUIREMENTS
Labor Clay Revenue
PRODUCT (hr/unit) (lb/unit) ($/unit)
Bowl 1 4 40
Mug 2 3 50
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
x2 x1 + 2x2 = 40
40 –
4x1 + 3x2 = 120
4 x1 + 3 x2 120 lb
4x1 + 8x2 = 160
30 – -4x1 - 3x2 = -120
5x2 = 40
20 –
x1 + 2 x2 40 hr x2 = 8
10 –
8 x1 + 2(8) = 40
0– | | 24 | | x1
x1 = 24
10 20 30 40
Z = $50(24) + $50(8) = $1,360
Extreme Corner Points
x1 = 0 bowls
x2 x2 = 20 mugs
x1 = 224 bowls
Z = $1,000
40 – x2 = 8 mugs
Z = $1,360 x1 = 30 bowls
30 – x2 = 0 mugs
20 – A
Z = $1,200
10 –
B
0– | | | C|
10 20 30 40 x1
Theory of Linear Programming
An LP problem falls in one of three cases:
• Problem is infeasible: Feasible region is empty.
• Problem is unbounded: Feasible region is
unbounded towards the optimizing direction.
• Problem is feasible and bounded: then there
exists an optimal point; an optimal point is on
the boundary of the feasible region; and there is
always at least one optimal corner point (if the
feasible region has a corner point).
max Z 80 x1 60 x 2 50 x 3
x
8 x1 6 x 2 4 x3 100
5x1 4 x2 4 x 3 60
x1 , x 2 , x3 0
Now consider that there is a much bigger
company in Melbourne which has been the
lone producer of this type of furniture for
many years. They don't appreciate the
competition from this new company; so
they have decided to tender an offer to buy
all of their competitor's resources and
therefore put them out of business.
The challenge for this large company then is
to develop a linear program which will
determine the appropriate amount of money
that should be offered for a unit of each type
of resource, such that the offer will be
acceptable to the smaller company while
minimizing the expenditures of the larger
company.
Problem D1
min w 100 y1 60 y2
y
8 y1 5 y2 80
6 y1 4 y2 60
4 y1 4 y2 50
y1, y2 0
Standard form of the Primal
Problem
n
max Z cjxj
x j 1
a11 x1 a12 x 2 ... a1n xn b1
a21 x 1 a22 x 2 ... a2 n x n b2
... ... ... ...
... ... ... ...
am1 x1 a m2 x 2 ... amn x n bm
x1 , x 2 ,..., x n 0
Standard form of the Dual
Problem
m
min w bi yi
y i 1
a11 y1 a21 y 2 ... a m1 y m c1
a12 y1 a 22 y 2 ... a m2 ym c2
... ... ... ...
... ... ... ...
a1n y1 a 2 n y2 ... a mn y m cn
y1 , y 2 ,..., ym 0
Definition
s. t . s.t.
Ax b yA c
x 0 y 0
b is not assumed to be non-negative
Primal-Dual relationship
x1 0 x2 0 xn 0 w=
Z= c1 c2 cn
Example
max Z 4 x1 10 x2 9 x3
x
5 x1 18 x2 5 x3 15
8 x1 12 x2 8x3 8
12 x1 4 x 2 8 x3 10
2 x1 5 x3 5
x1, x2 , x3 0
x1 0 x2 0 x3 0 w=
y1 0 5 - 18 5 15
Dual y2 0 8 12 0 8
(min w) y3 0 12 -4 8 10
y4 0 2 0 -5 5
Z= 4 10 -9
Dual
min w 15 y1 8y2 10 y3 5y4
y
5 y1 8 y2 12 y 3 2 y4 4
18 y1 12 y 2 4 y3 10
5 y1 8y 3 5 y4 9
y1 , y2 , y 3 , y4 0
k
di xi e
i 1
k k
di xi e di x i e
i 1 i 1
k k
di xi e di x i e
i 1 i 1
Standard form!
Primal-Dual relationship
Constraint i : Variable i :
<= form yi >= 0
= form yi urs
Variable j: Constraint j:
xj >= 0 >= form
xj urs = form
♣ Duality in LP
Primal
Dual
Min b 'Y
Min biYi
'
i s.t. AY C
s.t. a ijYi c j j 1,..., n
i
Y 0
Yi 0 i 1,..., m
Example
2. Coefficient of the objective function in the dual problem come from the
right-hand side of the original problem.
3. If the original problem is a max model, the dual is a min model; if the original
problem is a min model, the dual problem is the max problem.
4. The coefficient of the first constraint function for the dual problem are the
coefficients of the first variable in the constraints for the original problem,
and the similarly for other constraints.
5. The right-hand sides of the dual constraints come from the objective function
coefficients in the original problem.
Relations between Primal and Dual
cTx* = bTy*
Weak Duality
Dual
Primal Finite optimum Unbounded Infeasible
Finite optimum 1 x x
Unbounded x x 2
Infeasible x 3 4
Jyothimon C
M.Tech Technology Management
University of Kerala
Send your feedbacks and queries to
jyothimonc@yahoo.com