49

Click here to load reader

Lpp

Embed Size (px)

Citation preview

Page 1: Lpp
Page 2: Lpp
Page 3: Lpp

Linear Programmingis a mathematical Linear Programmingis a mathematical technique for optimum allocation of limited technique for optimum allocation of limited or scarce resources, such as labor, material, machine, money, energy and so on , to machine, money, energy and so on , to several competing activities such as products, services, jobs and so on, on the basis of a services, jobs and so on, on the basis of a given criteria of optimality.

Page 4: Lpp

Max/ min z = c x + c x + ... + cnxnMax/ min z = c x + c x + ... + cnxn

subject to:subject to:a x + a x + ... + a nxn ( , =, ) ba x + a x + ... + a nxn ( , =, ) b

:a x + a x + ... + a nxn ( , =, ) b

:am x + am x + ... + amnxn ( , =, ) bm

xj = decision variablesbi = constraint levelsbi = constraint levelscj = objective function coefficientsaij = constraint coefficientsij

Page 5: Lpp

1.1. Plot model constraint on a set of Plot model constraint on a set of 1.1. Plot model constraint on a set of Plot model constraint on a set of coordinates in a planecoordinates in a planecoordinates in a planecoordinates in a plane

2.2. Identify the feasible solution space on the Identify the feasible solution space on the graph where all constraints are satisfied graph where all constraints are satisfied graph where all constraints are satisfied graph where all constraints are satisfied simultaneouslysimultaneously

3.3. Plot objective function to find the point on Plot objective function to find the point on boundary of this space that maximizes (or boundary of this space that maximizes (or boundary of this space that maximizes (or boundary of this space that maximizes (or minimizes) value of objective functionminimizes) value of objective function

Page 6: Lpp

Solve the following LPP by graphical method

Maximize Z = X + XMaximize Z = X + X

Subject to constraints

X + X

X

X

X

X

X , X

Page 7: Lpp

The first constraint X + X

can be represented as The first constraint X + X

can be represented as

follows.

We set X + X = We set X + X =

When X = in the above constraint, we get,

x + X =

X = X =

Similarly when X = in the above constraint, we get,

X + = X + =

X = / =

Page 8: Lpp

The second constraint X can be

represented as follows,represented as follows,

We set X = We set X =

The third constraint X can be

represented as follows,

We set X = We set X =

Page 9: Lpp
Page 10: Lpp

The constraints are shown plotted in the above figure.

Point X1 X2 Z = 5X1 +3X2

0 0 0 0

A 0 700 Z = 5 x 0 + 3 x 700 = 2,100

B 150 700Z = 5 x 150 + 3 x 700 = 2,850* Maximum

B 150 700Maximum

C 400 200 Z = 5 x 400 + 3 x 200 = 2,600

D 400 0 Z = 5

x 400

+ 3

x 0

= 2,000D 400 0 Z = 5

x 400

+ 3

x 0

= 2,000

Page 11: Lpp

The Maximum profit is at point B

When X = and X = When X = and X =

Z = Z =

Page 12: Lpp

Solve the following LPP by graphical methodSolve the following LPP by graphical method

Maximize Z = X + X

Subject to constraintsSubject to constraints

X + X

X + X

X

X

X , X

Page 13: Lpp

Solution:Solution:

The first constraint X + X can be

represented as follows.represented as follows.

We set X + X =

When X = in the above constraint, we get,

x + X = x + X =

X = / = .

Page 14: Lpp

Similarly when X = in the above constraint, we get,Similarly when X = in the above constraint, we get,

X + x =

X = / = .

Page 15: Lpp

The second constraint X + X

can be represented The second constraint X + X

can be represented

as follows,

We set X + X = We set X + X =

When X = in the above constraint, we get,

x + X =

X = / = X = / =

X = / = .

Page 16: Lpp

Similarly when X = in the above constraint, we get,Similarly when X = in the above constraint, we get,

X + x =

The third constraint X

can be represented as follows,The third constraint X

can be represented as follows,

We set X =

Page 17: Lpp
Page 18: Lpp

Point X1 X2 Z = 400X1 + 200X2

0 0 0 00 0 0 0

A 0 150Z = 400 x 0+ 200 x 150 = 30,000* MaximumA 0 150 Maximum

B 31.11 80 Z = 400 x 31.1 + 200 x 80 = 28,444.4

C 44.44 0 Z = 400

x 44.44

+ 200

x 0

= 17,777.8C 44.44 0 Z = 400

x 44.44

+ 200

x 0

= 17,777.8

Page 19: Lpp

The Maximum profit is at point A

When X = and X = When X = and X =

Z = ,

Page 20: Lpp

Solve the following LPP by graphical methodSolve the following LPP by graphical method

Minimize Z = X + XMinimize Z = X + X

Subject to constraintsSubject to constraints

X + X

X + X

X + X

X + X

X , X

Page 21: Lpp

The first constraint X + X

can be The first constraint X + X

can be

represented as follows.represented as follows.

We set X + X = We set X + X =

When X = in the above constraint, we get,When X = in the above constraint, we get,

x + X =

X = / =

Page 22: Lpp

Similarly when X = in the above constraint, we get,Similarly when X = in the above constraint, we get,

X + x =

X = / =

The second constraint X + X

can beThe second constraint X + X

can be

represented as follows,represented as follows,

We set X + X =

Page 23: Lpp

When X = in the above constraint, we get,

x + X = x + X =

X = / = X = / =

Similarly when X = in the above constraint, we

get,

X + x = X + x =

X = / = X = / =

Page 24: Lpp

The third constraint X + X can be

represented as follows,

We set X + X = We set X + X =

When X = in the above constraint, we get,When X = in the above constraint, we get,

x + X = x + X =

X = / = X = / =

Page 25: Lpp

Similarly when X = in the above constraint,Similarly when X = in the above constraint,

we get,

X + x =

X = / =

Page 26: Lpp
Page 27: Lpp

Point X1 X2 Z = 20X1 + 40X2

0 0 0 00 0 0 0

A 0 18 Z = 20 x 0 + 40 x 18 = 720

B 2 6 Z = 20

x2

+ 40

x 6

= 280B 2 6 Z = 20

x2

+ 40

x 6

= 280

C 4 2Z = 20 x 4 + 40 x 2 = 160* Minimum

D 12 0 Z = 20

x 12

+ 40

x 0

= 240D 12 0 Z = 20

x 12

+ 40

x 0

= 240

The Minimum cost is at point C

When X = and X =

Z =Z =

Page 28: Lpp

Solve the following LPP by graphical methodSolve the following LPP by graphical method

Maximize Z = . X + . X

Subject to constraintsSubject to constraints

X

,X

,

X ,

. X + . X

. X + . X

X + X ,

X , X

Page 29: Lpp

The first constraint X , can be

represented as follows.

We set X = ,We set X = ,

The second constraint X

, can be The second constraint X

, can be

represented as follows,represented as follows,

We set X = ,We set X = ,

Page 30: Lpp

The third constraint . X + . X can be

represented as follows, We set . X + . X = represented as follows, We set . X + . X =

When X = in the above constraint, we get,When X = in the above constraint, we get,

. x + . X =

X = / . = ,

Similarly when X = in the above constraint, we get,Similarly when X = in the above constraint, we get,

. X + . x = . X + . x =

X = / . = ,

Page 31: Lpp

The fourth constraint X + X , can be

represented as follows, We set X + X = ,represented as follows, We set X + X = ,

When X = in the above constraint, we get,When X = in the above constraint, we get,

+ X = ,

X = ,

Similarly when X = in the above constraint, we get,Similarly when X = in the above constraint, we get,

X + = ,X + = ,

X = ,

Page 32: Lpp
Page 33: Lpp

Point X1 X2 Z = 2.80X1 + 2.20X2

0 0 0 00 0 0 0

A 0 40,000Z = 2.80 x 0 + 2.20 x 40,000 = 88,000

B 5,000 40,000Z = 2.80 x 5,000 + 2.20 x 40,000 = 1,02,000

Z = 2.80

x 10,500

+ 2.20

x 34,500

= C 10,500 34,500

Z = 2.80

x 10,500

+ 2.20

x 34,500

= 1,05,300* Maximum

D 20,000 6,000Z = 2.80

x 20,000

+ 2.20

x 6,000

= D 20,000 6,000

Z = 2.80

x 20,000

+ 2.20

x 6,000

= 69,200

E 20,000 0Z = 2.80 x 20,000 + 2.20 x 0 = 56,00056,000

Page 34: Lpp

The Maximum profit is at point C

When X = , and X = ,When X = , and X = ,

Z = , ,

Page 35: Lpp

Solve the following LPP by graphical method

Maximize Z = X + XMaximize Z = X + X

Subject to constraints

X + X

X + X

X + X

X + X

X - X -

X X

X X

Page 36: Lpp

The first constraint X + X can be

represented as follows.represented as follows.

We set X + X = We set X + X =

When X = in the above constraint, we get,When X = in the above constraint, we get,

x + X = x + X =

X =

Page 37: Lpp

Similarly when X = in the above constraint, we get,

X + =

X = / = X = / =

The second constraint X + X

can beThe second constraint X + X

can be

represented as follows,

We set X + X =

Page 38: Lpp

When X = in the above constraint, we get,When X = in the above constraint, we get,

+ X = + X =

X = / = X = / =

Similarly when X = in the above constraint, Similarly when X = in the above constraint,

we get,

X + x =

X =

Page 39: Lpp

The third constraint X - X

- can be The third constraint X - X

- can be

represented as follows,

We set X - X = -

When X = in the above constraint, we get,When X = in the above constraint, we get,

- X = -

X = - / = .X = - / = .

Similarly when X = in the above constraint, we get,Similarly when X = in the above constraint, we get,

X x = -

X = -X = -

Page 40: Lpp
Page 41: Lpp

Point X1 X2 Z = 10X1 + 8X2

0 0 0 00 0 0 0

A 0 7.5 Z = 10 x 0 + 8 x 7.5 = 60

B 3 9 Z = 10

x 3

+ 8

x 9

= 102B 3 9 Z = 10

x 3

+ 8

x 9

= 102

C 6 8 Z = 10 x 6 + 8 x 8 = 124* Minimum

D 10 0 Z = 10

x 10

+ 8

x 0

= 100D 10 0 Z = 10

x 10

+ 8

x 0

= 100

The Maximum profit is at point C

When X = and X =

Z = Z =

Page 42: Lpp
Page 43: Lpp
Page 44: Lpp
Page 45: Lpp

Product Product AVALIABLE

Machine <=

x+y<=

Machine <=

x+y<=x+ y<=

Page 46: Lpp

A=( , ) profit=A=( , ) profit=B=( , ) profit=B=( , ) profit=C=( , ) profit= *

Page 47: Lpp

Click on Tools to invoke Solver.

Objective function

=E -F

=E -F

=C *B +D *B

Decision variables bowls(x )=B ; mugs (x )=B

=C *B +D *B

Copyright John Wiley & Sons, Inc.

Supplement -

(x )=B ; mugs (x )=B

Page 48: Lpp

After all parameters and constraints have been input, click on Solve.

Objective function

Decision variablesDecision variables

C *B +D *B

C *B +D *B

Click on Add to insert constraints

Copyright John Wiley & Sons, Inc.

Supplement -

Page 49: Lpp

Copyright John Wiley & Sons, Inc.

Supplement -