linear programming - standard form maximize (minimize): subject to:

12
Linear Programming - Standard Form 0 ,..., 0 , 0 0 ,..., 0 , 0 ... . . . . ... ... ... 2 1 2 1 2 2 1 1 2 2 2 22 1 21 1 1 2 12 1 11 3 3 2 2 1 1 m n m n mn m m n n n n n n b b b x x x b x a x a x a b x a x a x a b x a x a x a x c x c x c x c Z Maximize (Minimize): Subject to:

Upload: shannon-bruce

Post on 11-Jan-2016

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Linear Programming - Standard Form

0,...,0,0

0,...,0,0

...

..

..

...

...

...

21

21

2211

22222121

11212111

332211

m

n

mnmnmm

nn

nn

nn

bbb

xxx

bxaxaxa

bxaxaxa

bxaxaxa

xcxcxcxcZMaximize (Minimize):

Subject to:

Page 2: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Linear Programming - Standard Form

0,...,0,0

0,...,0,0

...

..

..

...

...

...

21

21

2211

22222121

11212111

332211

m

n

mnmnmm

nn

nn

nn

bbb

xxx

bxaxaxa

bxaxaxa

bxaxaxa

xcxcxcxcZMaximize (Minimize):

Subject to:

ObjectiveFunction

Constraint Set

Non-negativeVariablesConstraint

Non-negativeRight-hand sideConstants

Page 3: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Linear Programming - Standard Form

0

0

b

x

bAx

cxZMaximize (Minimize):

Subject to:

Page 4: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Linear Programming - Standard Form

0

0

b

x

bAx

cxZMaximize (Minimize):

Subject to:

mnmm

n

n

aaa

aaa

aaa

...

..

...

...

21

22221

11211

A

mb

b

b

.2

1

b

nx

x

x

.2

1

x

]...[ 21 nccccwhere,

Page 5: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Linear Programming – Conversion to Standard Form

Inequality constraints: slack or surplus variables

10

10

8

8

21

1

21

1

xx

x

xx

xs.t.

=>

s.t.

=>

x2 – slack variable

x2 – surplus variable

Page 6: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Linear Programming – Conversion to Standard Form

Unrestricted variables: replace with 2 non-negative variables

0,,.s.t

2min

edunrestrictis,0.s.t

2min

432

243

431

12

21

xxx

xxxZ

xxx

xx

xxZ

set,

=>

Page 7: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Linear Programming – Conversion to Standard Form

Example:

edunrestrict

02,0

523

2

7..

32min

3

1

321

321

321

321

x

xx

xxx

xxx

xxxts

xxxZ

Page 8: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Linear Programming – Conversion to Standard Form

0,,,,,

5223

2

7..

332min

765421

5421

75421

65421

5421

xxxxxx

xxxx

xxxxx

xxxxxts

xxxxZ

Example:

Page 9: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Solving Systems of Linear Equations

22)2

73)1

5321

4321

xxxx

xxxx

Use the Gauss-Jordan elimination procedure to solve this series of linear equations.

Multiply row 1 by 2 and add to row 2.

Page 10: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Solving Systems of Linear Equations

16273)2

73)1

5431

4321

xxxx

xxxx

Divide row 2 by 3.

3

16

3

1

3

2

3

7)2

73)1

5431

4321

xxxx

xxxx

Multiply row 2 by –1 and add to row 1.

Page 11: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Solving Systems of Linear Equations

3

16

3

1

3

2

3

7)2

3

5

3

1

3

1

3

2)1

5431

5432

xxxx

xxxx

Solution: 0,0,0,3

5,

3

1654321 xxxxx

x1 and x2 are basic variables; x3 , x4 and x5 are non-basic variables

Page 12: Linear Programming - Standard Form Maximize (Minimize): Subject to:

Solving Systems of Linear Equations

Solution:

is referred to as a basic solution since all non-basic variableshave been set to 0.

This solution is also referred to as a basic feasible solution since all basic variables are non-negative.

Every corner point of the feasible region corresponds to a basicFeasible solution – fundamental building block for the simplex method.

0,0,0,3

5,

3

1654321 xxxxx