Beruflich Dokumente
Kultur Dokumente
Optimization Problem
Problems which seek to maximize or minimize an
objective function of a finite number of variables
subject to certain constraints are called optimization
problems
Example
x1 = s1 , x 2 = s2 ,..........,x n = sn will be a
j=1
,=,
z = c jx j
. Here a ij , b i and
j=1
z=
c x
j
j=1
Subject to
n
a x { ,=, }b
ij
(i= 1, 2,....,m)
j=1
x j > 0 j (j = 1, 2,............,n)
Application of LPM
(i) Linear programming problem is widely applicable in
business and economic activities
(ii) It is also applicable in government, military and
industrial operations
(iii) It is also extensively used in development and
distribution of planning.
4
Objective Function
In a linear programming problem, a linear function of
n
the type
z = c jx j
j=1
z = c jx j +k
j=1
A1 , A2 ,.........,Am are
P1 , P2 ,.........Pn .
producing
P2
a11
a12 a1n
a 21
a 22
Machines
A1
A2
Pn
b2
a 2n
.
.
.
Am
a m1
Unit Profits
c1
a m2
c2
a mn
.
bm
c n
x j 0 (j = 1, 2, 3, 4) .
The weekly profit is given by z = c1x1 +c2 x 2 +.............+cn x n .
Now we wish to determine the values of the variables
x j 's for
Subject to
a11x1 +a12 x 2 +.............+a1n x n b1
a 21x1 +a 22 x 2 +.............+a 2n x n b 2
.
.
.
a m1x1 +a m2 x 2 +.............+a mn x n b m
and
x j 0 (j = 1, 2, 3, 4)
Formulation of Linear Programming Problem
(i) Transportation Problem
Suppose given amount of uniform product are available
at each of a no. of origins say warehouse. We wish to
send specified amount of the products to each of a no.
of different destinations say retail stores. We are
interested in determining the minimum cost-routing
from warehouse to the retail stores.
Let use define,
m = no. of warehouses
n = no. of retail stores
a1
c11:x11
x11
x 22
b1
x12
x 21
a2
b2
.
m Origins
x m2
n Destinations
x m1
am
x 2n x1n
n
cmn :x mn
bn
x ij 0 i, j
retail store.
Since we cannot supply more than the available amount
of the product from ith warehouse to the different retail
stores, therefore we have
8
i= 1, 2,..,m
a b
i
i=1
j=1
Let us define cij is the per unit cost of shifting from ith
warehouse to the jth retail store, then the total cost of
shifting is given by;
m
z= cij x ij
i=1 j=1
z= cij x ij
i=1 j=1
z = c jx j
j=1
z = c jx j
subject
j=1
to the constraints
n
xj 0
This is called the linear programming problem.
Feasible Solution
Any set of values of the variables x j which satisfies
n
the constraints
a x {, , b
ij
j=1
11
, where a ij and bi
solution
In other words, any feasible solution which satisfies the
following conditions;
n
(i)
a x {, , b
ij
j=1
(ii) x j 0
n
c jx j , is called a
(iii) optimize objective function z =
j=1
12
a h1x1 +a h2 x 2 +..............+a hn x n bh
(1)
(2)
be written as;
a k1x1 +a k2 x 2 +..............+a kn x n bk
(3)
(4)
x1 -2x 2 4
-x1 +x 2 3
14
x1 , x 2 > 0
Now introducing two new variables x 3 and x 4 , the
problem can be written as;
P1
such that
Optimize
(1)
(2)
Where one and only one of the signs in the bracket hold
for each constraint
15
The
problem
is
converted
programming problem
P2
to
another
linear
such that
(3)
A= a ij
nm
(4)
column of A.
We claim that optimizing (3) subject to (4) with
X*
P2
P1
we obtain an optimal
P2
x1 +x 2 6
x2 3
x1 , x 2 0
Rank(A) = 2
2 2
of extracting B out of A
1 1
B=(a1 , a 2 ) =
0 1
(i)
1 1
B=(a1 , a 3 )=
0 0
(ii)
B-1
and hence
1 -1
B-1 =
0 1
1 -1 6 3
x B =B-1b=
=
0 1 3 3
x 0
xn = 3 =
x4 0
xB
x2 0
x1 -1 1 0 6 6
1 0
B-1 =
x B = x =B b= 0 1 3 = 3 x n = x = 0
0 1
4
3
(iii)
1 0
B=(a1 , a 4 )=
0 1
(iv)
x 2 -1 0 1 6 3
x1 0
1 1 -1 0 1
B=(a 2 , a 3 )=
B =
x B = x =B b= 1 1 3 = 3 x n = x = 0
1 0
1 1
4
3
(v)
(vi)
1 0
B=(a 2 , a 4 )=
1 1
1 0
B-1 =
-1 1
1 0
B=(a 3 , a 4 )=
0 1
1 0
B-1 =
0 1
x 0
x
1 0 6 6
x B = 2 =B-1b=
= xn = 1 =
-1 1 3 -3
x4
x3 0
x
x 0
1 0 6 6
x B = 3 =B-1b=
= xn = 1 =
0 1 3 3
x4
x2 0
18
6
0
x2 =
0
3
0
0
3
6
x3 = x 4 =
3
0
0
-3
Of which except
0
0
x5 =
6
3
x4
(x1 , x 2 )
four points.
3 6 0 0 0
, , ,
3 0 3 6 0
6
0
19
3
3
for
the
remaining
constraints
for
3x1 +5x 2 15
5x1 +2x 2 10
And
which
maximize
the
objective
function
z = 5x1 +3x 2
Solution: We introduce an x1x 2 co-ordinate system.
Any point lying in the first quadrant has x1 ,x 2 0 .
Now we show the straight lines 3x1 +5x 2 =15
and
x2
22
C(0,5)
that x1, x 2 ,......,x p >0 and that x p+1, x P+2 ,......,x n =0 . And let
a1 , a 2 ,......,a p
be
corresponding
a1 , a 2 ,......,a p
the
to
the
respective
variables
columns
of
x1, x 2 ,......,x p
A
If
pm
zero.
If a1, a 2 ,......,ap are dependent then there exist scalars
1, 2 ,......, p with at least one positive j such that
p
a
j 1
with
x j 0 j ; j 1, 2,...., p
xj =
0; j p 1, p 2,.....n
where
xj
x
; j 0 = k >0
j
k
o = Minimum
j=1,2,....,p
o x j 0 j .
Thus xj >0
Furthermore
xk = x k - 0k =x k -
xk
k =0
. Hence
positive components.
Also,
25
Ax= a jxj
j=1
n
a (x
j
0 j )
j=1
j=1
j=1
= a j x j 0 a j j
=b
x since
x1 +x 2 6
x2 3
x1 , x 2 0
x1 +x 2 x 3 =6
x 2 x 4 =3
x1 , x 2 , x 3 ,x 4 0
Rank(A) = 2
2 2
extracting B out of A
1 1
B=(a1 , a 2 ) =
0 1
(i)
1 1
B=(a1 , a 3 )=
0 0
(ii)
B-1
and hence
1 -1
B-1 =
0 1
1 -1 6 3
x B =B-1b=
=
0 1 3 3
x 0
xn = 3 =
x4 0
xB
x2 0
x1 -1 1 0 6 6
1 0
B-1 =
x B = x =B b= 0 1 3 = 3 x n = x = 0
0 1
4
3
(iii)
1 0
B=(a1 , a 4 )=
0 1
(iv)
x 2 -1 0 1 6 3
x1 0
1 1 -1 0 1
B=(a 2 , a 3 )=
B =
x B = x =B b= 1 1 3 = 3 x n = x = 0
1 0
1 1
4
3
(v)
(vi)
1 0
B=(a 2 , a 4 )=
1 1
1 0
B-1 =
-1 1
1 0
B=(a 3 , a 4 )=
0 1
1 0
B-1 =
0 1
x 0
x
1 0 6 6
x B = 2 =B-1b=
= xn = 1 =
-1 1 3 -3
x4
x3 0
x
x 0
1 0 6 6
x B = 3 =B-1b=
= xn = 1 =
0 1 3 3
x4
x2 0
27
3
3
x1 =
0
0
6
0
x2 =
0
3
0
0
3
6
x3 = x 4 =
3
0
0
-3
Of which except
x4
0
0
x5 =
6
3
(x1 , x 2 )
four points.
3 6 0 0 0
, , ,
3 0 3 6 0
constraints;
a11x1 +a12 x 2 +.........+a1n x n ( ,=, )b1
a 21x1 +a 22 x 2 +.........+a 2n x n ( ,=, )b 2
and
x j 0; j = 1, 2,.......,n
The above formulation can be written as the following
compact form by using the summation sign;
n
c jx j
Optimize (maximize or minimize) z =
j=1
j=1
and
x j 0; j = 1, 2,.......,n
where
C= c1 c2 ... ... cn 1n
x1
x2
.
X= .
.
.
x
n n 1
a 21 a 22 ...... a 2n
A= .
.
.
.
.
.
.
.
a
m1 a m2 ...... a mn m n
b1
b2
.
B= .
.
.
b
m m n
,( )
can be
x1 +x 2 b1
Is equivalent to
x1 +x 2 s1 = b1
If
x1 +x 2 b2
Is equivalent to
x1 +x 2 s1 =b2
z = c jx j
j=1
a x
ij
j=1
x j 0; j = 1, 2,.......,n
and
si 0; i = 1, 2,.....,m
In the matrix notation, the general LP problem can be
written as the following standard form;
Optimize z = CX
Subject to the conditions
AX S = B
32
X0
S0
Conversion
of
Unrestricted
Variable
into
Non-negative Variables
An unrestricted variable x j can be expressed in terms
of two non-negative variables by using substitution
33
+
+
such that x j = x j -x j ; x j ,x j 0
35