Académique Documents
Professionnel Documents
Culture Documents
APPLIED MATHEMATICS
ASSIGNMENT No. 2
Linear Programming
Page 1 of 12
Z = 4x1 + 8x2
x1 + x2 20
2x1 + x2 32
x1, x2 0
Find constraints
C1 = x1 + x2 = 20
C1 = x1/20 + x2/20 = 1
C2 = 2x1 + x2 = 32
C2 = 2x1/32 + x2 /32 = 1
C2 = x1/16 + x2 /32 = 1
Put (0,0)
C1 = x1 + x2 20
C1 = 0 20 (True)
C2 =2x1 + x2 32
C2 = 0 32 (True)
Point B intersecting C1 & C2
x1 + x2 = 20
2x1 + x2 = 32
subtract the equation
-x1 = -12
X1 =
12
Put the value of x1 in C1
x1 + x2 = 20
12 + x2 = 20
Page 2 of 12
X2 =
8
Corners Z = 4x1 +
8x2
A (16, 0) 4 (16) + 8
(0)
B (12, 8) 4 (12) + 8
(8)
C (0, 20) 4 (0) + 8
(20)
D ( 0, 0) 4 (0) + 8
(0)
= 64
= 11
2
= 16
0
= 0
Page 3 of 12
Q 23)
Maximiz
e
subject
to
Z = 30x1 + 20x2
3x1 + x2 18
x1 + x2 12
x1 2
x2 5
x1, x2 0
Find constraints
C1 = 3x1 + x2 = 18
C1 = 3x1/18 + x2/18 = 1
C1 = x1/6 + x2/18
=1
C2 = x1 + x2 = 12
C2 = x1/12 + x2 /
12 = 1
C3 = x1 = 2
C3 = x1/2 =
1
C4 = x2 = 5
C4 = x2/5 =
1
Put (0,0)
C1 = 3x1 + x2 18
C1 = 0 18 (True)
C2 = x1 + x2 12
C2 = 0 12 (True)
Page 4 of 12
C3 = x1 2
C3 = 0 2 (False)
C4 =x2 5
C4 =0 5 (False)
Point B intersecting C2 & C3
X1 + X2 = 12
X1
= 2
subtract the equation
10
2
X2 =
X1 =
X2 =
9
Point D intersecting C1 & C4
3x1 + x2 = 18
Since X2 = 5
Putting the value of X2 in C1
3x1 + 5 = 18
X1 =
13/3
Corners
A (2, 5)
Page 5 of 12
Z = 30x1 +
20x2
30 (2) + 20 (5)
= 160
B (2, 10)
C (3, 9)
D ( 13/3,
5)
Page 6 of 12
Q 33)
Department
1
Department
2
Profit
Margin
Product A
Product B
Weekly
Hour
60
80
$3 per
unit
$ 4 per
unit
Page 7 of 12
C2 = x1/20 + x2 /
40 = 1
Put (0,0)
C1 = 2x1 + 3x2 60
C1 = 0 60 (True)
C2 = 4x1 + 2x2 80
C2 = 0 80 (True)
Point B intersecting C1 & C2
2x1 + 3x2 = 60
4x1 + 2x2 = 80(Multiply Eq.1 by 4 and Eq.2 by 2 and then subtract
the Equation)
Z = 3x1 + 4x2
3 (20) + 4 (0)
3 (15) + 4 (10)
3 (0) + 4 (20)
3 (0) + 4 (0)
= 60
= 85
= 80
= 0
Page 9 of 12
Q) 35
Vitamin 1
Vitamin 2
Cost per oz
Food 1
Food 2
2 mg/oz
4 mg/oz
$0.12
3 mg/oz
2 mg/oz
$0.15
Min. daily
Req.
18 mg
22 mg
11
2
x2 /11 = 1
Page 10 of 12
Put (0,0)
C1 = 2x1 + 3x2 18
C1 = 0 18 (False)
C2 = 4x1 + 2x2 22
C2 = 0 22 (False)
Page 11 of 12
8x1 + 12x2 = 72
8x1 + 4x2 = 44
(subtract the equation)
8x2 = 28
X2 =
7/2
Putting the value of X2 in C1
2x1 + 3x2 = 18
2x1 + 3(7/2) = 18
X1 =
15/4
Corners
A (9, 0)
B(
15 7
,
4 2
C (0, 11)
Z = 0.12x1 +
0.15x2
0.12 (9) + 0.15 (0) = 1.08
0.12 (15/4) + 0.15
= 0.9
(7/2)
75
0.12 (0) + 0.15 (11) = 1.65
b) Minimum Z = 0.975 at B (
15 7
,
4 2
) where X1 = 15/4 or
Page 12 of 12