Linear Programming Chapter 1-2.2 Bjrn Morn 3 Convex Func- 1 - - PowerPoint PPT Presentation

linear programming
SMART_READER_LITE
LIVE PREVIEW

Linear Programming Chapter 1-2.2 Bjrn Morn 3 Convex Func- 1 - - PowerPoint PPT Presentation

Linear Programming Chapter 1-2.2 Bjrn Morn 3 Convex Func- 1 Introductjon tjons 2 System of Linear Definitjons sets Equalitjes Definitjons func- Gauss Jordan tjons Linear Inequalitjes Propertjes 3 Convex Func- 1 Introductjon


slide-1
SLIDE 1

Linear Programming

Chapter 1-2.2

Björn Morén

slide-2
SLIDE 2

1 Introductjon 2 System of Linear Equalitjes

Gauss Jordan Linear Inequalitjes

3 Convex Func- tjons

Definitjons sets Definitjons func- tjons Propertjes

slide-3
SLIDE 3

1 Introductjon 2 System of Linear Equalitjes

Gauss Jordan Linear Inequalitjes

3 Convex Func- tjons

Definitjons sets Definitjons func- tjons Propertjes

slide-4
SLIDE 4

Linear Programming Björn Morén October 20, 2016 3 / 24

Background

x1 + x2 − x3 = 5 −2x1 − x2 + x3 = −9 x1 + 3x2 − 3x3 = 7

  • System of linear equalities, 2000 years ago
  • System of linear inequalities, 18th century
  • Linear programming, 20th century
slide-5
SLIDE 5

Linear Programming Björn Morén October 20, 2016 4 / 24

Repetjtjon Gauss Jordan (GJ)

1 1

  • 1

5

  • 2
  • 1

1

  • 9

1 3

  • 3

7 1 1

  • 1

5 1

  • 1

1 2

  • 2

2 1 1

  • 1

5 1

  • 1

1 Feasible solution, one redundant row

slide-6
SLIDE 6

Linear Programming Björn Morén October 20, 2016 4 / 24

Repetjtjon Gauss Jordan (GJ)

1 1

  • 1

5

  • 2
  • 1

1

  • 9

1 3

  • 3

7 1 1

  • 1

5 1

  • 1

1 2

  • 2

2 1 1

  • 1

5 1

  • 1

1 Feasible solution, one redundant row

slide-7
SLIDE 7

Linear Programming Björn Morén October 20, 2016 4 / 24

Repetjtjon Gauss Jordan (GJ)

1 1

  • 1

5

  • 2
  • 1

1

  • 9

1 3

  • 3

7 1 1

  • 1

5 1

  • 1

1 2

  • 2

2 1 1

  • 1

5 1

  • 1

1 Feasible solution, one redundant row

slide-8
SLIDE 8

Linear Programming Björn Morén October 20, 2016 5 / 24

Repetjtjon Gauss Jordan (GJ)

1 1

  • 1

5

  • 2
  • 1

1

  • 9

1 3

  • 3

8 1 1

  • 1

5 1

  • 1

1 2

  • 2

3 1 1

  • 1

5 1

  • 1

1 1 Last row shows infeasibility

slide-9
SLIDE 9

Linear Programming Björn Morén October 20, 2016 5 / 24

Repetjtjon Gauss Jordan (GJ)

1 1

  • 1

5

  • 2
  • 1

1

  • 9

1 3

  • 3

8 1 1

  • 1

5 1

  • 1

1 2

  • 2

3 1 1

  • 1

5 1

  • 1

1 1 Last row shows infeasibility

slide-10
SLIDE 10

Linear Programming Björn Morén October 20, 2016 5 / 24

Repetjtjon Gauss Jordan (GJ)

1 1

  • 1

5

  • 2
  • 1

1

  • 9

1 3

  • 3

8 1 1

  • 1

5 1

  • 1

1 2

  • 2

3 1 1

  • 1

5 1

  • 1

1 1 Last row shows infeasibility

slide-11
SLIDE 11

1 Introductjon 2 System of Linear Equalitjes

Gauss Jordan Linear Inequalitjes

3 Convex Func- tjons

Definitjons sets Definitjons func- tjons Propertjes

slide-12
SLIDE 12

Linear Programming Björn Morén October 20, 2016 7 / 24

Theorem

  • f

alternatjves for systems

  • f

linear equatjons

Theorem 1. Excactly one of the following two systems has a solution.

  • 1. Ax = b
  • 2. π = (π1, . . . , πm)
slide-13
SLIDE 13

Linear Programming Björn Morén October 20, 2016 8 / 24

Memory Matrix in GJ

slide-14
SLIDE 14

Linear Programming Björn Morén October 20, 2016 8 / 24

Memory Matrix in GJ

slide-15
SLIDE 15

Linear Programming Björn Morén October 20, 2016 8 / 24

Memory Matrix in GJ

slide-16
SLIDE 16

Linear Programming Björn Morén October 20, 2016 9 / 24

Memory Matrix in GJ: Example

slide-17
SLIDE 17

Linear Programming Björn Morén October 20, 2016 9 / 24

Memory Matrix in GJ: Example

slide-18
SLIDE 18

Linear Programming Björn Morén October 20, 2016 9 / 24

Memory Matrix in GJ: Example

slide-19
SLIDE 19

Linear Programming Björn Morén October 20, 2016 9 / 24

Memory Matrix in GJ: Example

slide-20
SLIDE 20

Linear Programming Björn Morén October 20, 2016 10 / 24

Memory Matrix in GJ: Example

Last row is proof of infeasibility Where π = (-3 -5 0 -1 1) such that πA = 0 and πb = 6 = 0

slide-21
SLIDE 21

Linear Programming Björn Morén October 20, 2016 11 / 24

Revised GJ with Explicit Basis Inverse

  • ¯

A is not stored at each iteration

  • ¯

A can be computed: columns ¯ A.j = ¯ MA.j and rows ¯

  • Ai. = ¯

Mi.A

  • Used in computer implementations to save

memory

  • Similar to Dantzigs revised simplex method
  • Memory matrix referred to as basis inverse,

denoted

slide-22
SLIDE 22

Linear Programming Björn Morén October 20, 2016 11 / 24

Revised GJ with Explicit Basis Inverse

  • ¯

A is not stored at each iteration

  • ¯

A can be computed: columns ¯ A.j = ¯ MA.j and rows ¯

  • Ai. = ¯

Mi.A

  • Used in computer implementations to save

memory

  • Similar to Dantzigs revised simplex method
  • Memory matrix referred to as basis inverse,

denoted B−1

slide-23
SLIDE 23

Linear Programming Björn Morén October 20, 2016 12 / 24

Revised GJ with Explicit Basis Inverse

Method

  • 1. Select pivot row i
  • 2. Compute row i: ¯

Ai.

  • 3. If ¯

Ai = 0, select nonzero pivot element j If ¯ Ai = 0, either row is redundant, go to 1 or problem is infeasible, method finishes.

  • 4. Compute column j: ¯
  • Aj. and perform pivot step
  • 5. Stop when pivot step has been done for all rows
slide-24
SLIDE 24

Linear Programming Björn Morén October 20, 2016 13 / 24

Revised GJ: Example

slide-25
SLIDE 25

Linear Programming Björn Morén October 20, 2016 13 / 24

Revised GJ: Example

slide-26
SLIDE 26

Linear Programming Björn Morén October 20, 2016 13 / 24

Revised GJ: Example

slide-27
SLIDE 27

Linear Programming Björn Morén October 20, 2016 13 / 24

Revised GJ: Example

slide-28
SLIDE 28

Linear Programming Björn Morén October 20, 2016 14 / 24

Systems of Linear Inequalitjes

slide-29
SLIDE 29

Linear Programming Björn Morén October 20, 2016 15 / 24

Systems of Linear Inequalitjes

Start with x0 and P0 indices of active constraints.

  • If P0 = ∅: Select a constraint i and a point ¯

x on the

  • constraint. If ¯

x is infeasible. Find maximum λ such that x1 = x0 + λ(¯ x − x0) is feasible. In iteration

  • 1. If

is unique solution to system, terminate.

  • 2. Let

be basis for

  • 3. If

terminate

  • 4. Otherwise, take

such that for some . Find maximum such that is feasible.

slide-30
SLIDE 30

Linear Programming Björn Morén October 20, 2016 15 / 24

Systems of Linear Inequalitjes

Start with x0 and P0 indices of active constraints.

  • If P0 = ∅: Select a constraint i and a point ¯

x on the

  • constraint. If ¯

x is infeasible. Find maximum λ such that x1 = x0 + λ(¯ x − x0) is feasible. In iteration r

  • 1. If xr is unique solution to system, terminate.
  • 2. Let

be basis for

  • 3. If

terminate

  • 4. Otherwise, take

such that for some . Find maximum such that is feasible.

slide-31
SLIDE 31

Linear Programming Björn Morén October 20, 2016 15 / 24

Systems of Linear Inequalitjes

Start with x0 and P0 indices of active constraints.

  • If P0 = ∅: Select a constraint i and a point ¯

x on the

  • constraint. If ¯

x is infeasible. Find maximum λ such that x1 = x0 + λ(¯ x − x0) is feasible. In iteration r

  • 1. If xr is unique solution to system, terminate.
  • 2. Let {y} be basis for {Ai.y = 0; i ∈ Pr}
  • 3. If

terminate

  • 4. Otherwise, take

such that for some . Find maximum such that is feasible.

slide-32
SLIDE 32

Linear Programming Björn Morén October 20, 2016 15 / 24

Systems of Linear Inequalitjes

Start with x0 and P0 indices of active constraints.

  • If P0 = ∅: Select a constraint i and a point ¯

x on the

  • constraint. If ¯

x is infeasible. Find maximum λ such that x1 = x0 + λ(¯ x − x0) is feasible. In iteration r

  • 1. If xr is unique solution to system, terminate.
  • 2. Let {y} be basis for {Ai.y = 0; i ∈ Pr}
  • 3. If {Ai.y = 0; ∀y, i} terminate
  • 4. Otherwise, take

such that for some . Find maximum such that is feasible.

slide-33
SLIDE 33

Linear Programming Björn Morén October 20, 2016 15 / 24

Systems of Linear Inequalitjes

Start with x0 and P0 indices of active constraints.

  • If P0 = ∅: Select a constraint i and a point ¯

x on the

  • constraint. If ¯

x is infeasible. Find maximum λ such that x1 = x0 + λ(¯ x − x0) is feasible. In iteration r

  • 1. If xr is unique solution to system, terminate.
  • 2. Let {y} be basis for {Ai.y = 0; i ∈ Pr}
  • 3. If {Ai.y = 0; ∀y, i} terminate
  • 4. Otherwise, take ¯

y such that Ai.¯ y < 0 for some i. Find maximum λ such that xr+1 = xr + λ(¯ y − xr) is feasible.

slide-34
SLIDE 34

1 Introductjon 2 System of Linear Equalitjes

Gauss Jordan Linear Inequalitjes

3 Convex Func- tjons

Definitjons sets Definitjons func- tjons Propertjes

slide-35
SLIDE 35

Linear Programming Björn Morén October 20, 2016 17 / 24

Convex sets

Definition 1. A set K is convex if for x, y ∈ K, 0 ≤ α ≤ 1, then z = αx + (1 − α)y ∈ K

slide-36
SLIDE 36

Linear Programming Björn Morén October 20, 2016 18 / 24

Convex functjons

Jensen’s inequality Let 0 ≤ α ≤ 1 and y1, y2 ∈ Γ where Γ is a convex set. Definition 2. A function g(y) is convex if g(αy1 + (1 − α)y2) ≤ αg(y1) + (1 − α)g(y2)

slide-37
SLIDE 37

Linear Programming Björn Morén October 20, 2016 19 / 24

Concave functjons

Let 0 ≤ α ≤ 1 and y1, y2 ∈ Γ where Γ is a convex set. Definition 3. A function h(y) is concave if h(αy1 + (1 − α)y2) ≥ αh(y1) + (1 − α)h(y2)

slide-38
SLIDE 38

Linear Programming Björn Morén October 20, 2016 20 / 24

Gradient support inequality

Theorem 2. Let g(y) be a real-valued differentiable real-valued function defined on Rn. Then g(y) is convex iff g(y) ≥ g(¯ y) + ∇g(¯ y)(y − ¯ y)

slide-39
SLIDE 39

Linear Programming Björn Morén October 20, 2016 21 / 24

Gradient support inequality

slide-40
SLIDE 40

Linear Programming Björn Morén October 20, 2016 22 / 24

Differentjable functjon

Theorem 3. Let g(y) be a real-valued differentiable real-valued function defined on Rn. Then g(y) is convex iff (∇g(y2) − ∇g(y1))(y2 − y1) ≥ 0

slide-41
SLIDE 41

Linear Programming Björn Morén October 20, 2016 23 / 24

Twice differentjable functjon

Theorem 4. Let g(y) be a twice continously differentiable real-valued function defined on Rn.

  • 1. g(y) is convex iff the Hessian H(g(y)) = ( ∂2g(y)

∂yi∂yj ) is

positive semi-definite.

  • 2. g(y) is concave iff the Hessian is negative

semi-definite.

slide-42
SLIDE 42

Linear Programming Björn Morén October 20, 2016 24 / 24

Twice differentjable functjon: In practjce

Using Hessian to check convexity

  • Hard in the general case
  • Easy for quadratic functions f(x) = xDx + cx + c0

Hessian equals D+DT

2

and is constant

slide-43
SLIDE 43

Björn Morén

www.liu.se