02 Introduction To LP Part1
02 Introduction To LP Part1
5 6
8
Linear Programming Classification of Mathematical Models
a ) max 3x1 14 x2 7 x3 b) max 3x1 14 x2 7 x3 c ) max 7 x1 x2 17 x2 x3 27 x1 x3
x1 , x2 , x3
x1 , x2 , x3 x1 , x2 , x3
x12 x22
log( x1 )
x log (7) x
1 2 2
1 1
d ) min
x1 , x2 , x3
7 x1 sin( x2 ) 8 / x3
s.t. 4 x1 16 x2 x3 29
e) min 12 x1 4 x2
x1 , x2 , x3
s.t. x1 x2 x3 1
f ) max x1 2 x2
x1 , x2 , x3
s.t. x1 / x2 5
x1 x2 0 x j 1 j 1, 2,3 0 x j j 1, 2 0 x j j 1, 2,3
x3 {0,1}
x1 x2
9 10
• Decision variables
T=Number of tables to be produced
C=Number of chairs to be produced
15 16
LP modeling example-1 LP modeling example-2
• Write the objective function in terms of T and C A poultry farm is considering buying two different chicken feeds
and mixing them to obtain a low-cost and nutritious feed mix.
Write an LP that determines how many kg. of which feed should
be purchased.
• Write the mathematical equations for constraints
blank Feed Content per kg blank
Amount Needed per
Protein Feed 1 Content Feed 2 Content
Chicken
A 5 10 90
B 4 3 48
C 0.5 0 1.5
price per kg 2TL 3TL blank
• T and C values must be positive
17 18
LP modeling example-2
Decision variables
Obj.Function
Constraints
19