• Non ci sono risultati.

( Fourier-Motzkin’s Method )

N/A
N/A
Protected

Academic year: 2021

Condividi "( Fourier-Motzkin’s Method ) "

Copied!
27
0
0

Testo completo

(1)

Compatible Systems of Linear Inequalities

( Fourier-Motzkin’s Method )

Claudio Arbib

Università degli Studi di L’Aquila

(2)

Contents

1. Polyhedra

2. Implied inequalities 3. Compatible polyhedra 4. Projecting a polyhedron

Definitions Examples

5. Fourier’s Theorem

6. Fourier-Motzkin’s Algorithm

7. Applications

(3)

1. Polyhedra

Definition:

Let a ∈ IR

n

, b ∈ IR. The set

H = {x ∈ IR

n

: ax = b} ⊆ IR

n

is called a hyperplane.

The set

S = {x ∈ IR

n

: ax < b} ⊆ IR

n

is called a closed halfspace.

Definition:

A polyhedron is the intersection of a finite set of m closed halfspaces in IR

n

. So ∀ A ∈ IR

m×n

, b ∈ IR

m

the set

P (A, b) = {x ∈ IR

n

: Ax < b} ⊆ IR

n

defines a polyhedron. In particular, ∅, H, S, IR

n

are polyhedra.

(4)

2. Implied inequalities

Definition:

A linear inequality β β β βx ≤ γ is implied by the system Ax ≤ b if every x such that Ax ≤ b verifies also β β βx ≤ β γ

3x

1

+ x

2

≤ 1

x1 x2

P

x

2

≥ 0 x

1

+ 2x

2

≤ 1

x

1

≥ 0

2.5x

1

+ 2.5x

2

≤ 1.5

(5)

Implied inequalities

Definition:

A system of linear inequalities is minimal if it does not contain any implied inequality

Definition:

β β β

βx ≤ γ is a conic combination of the inequalities in Ax ≤ b ≡ ≡ ≡ {a ≡

i

x ≤ b

i

, i = 1, …, m}

if and only if

(β β β, γ) = β λ

i

(a

i

, b

i

) λ

i

≥ 0 Theorem:

Every linear inequality obtained as a conic combination of those in Ax ≤

b is an implied inequality

(6)

1( ) +

0.5( ) =

0( ) +

0( ) +

2.5x

1

+ 2.5x

2

≤ 1.5

Implied inequalities

Example:

3x

1

+ x

2

≤ 1 x

2

≥ 0 x

1

+ 2x

2

≤ 1

x

1

≥ 0

x1

x2

P

2.5x

1

+ 2.5x

2

≤ 1.5

λ λ λ

λ = (1, 0.5, 0, 0)

(7)

3. Compatible polyhedra

Definition:

A polyhedron is said to be compatible (incompatible) if it (does not) admit a solution

Problem:

Decide whether a given polyhedron P(A, b) is compatible or not Principle:

All that exists, has a shade

(Corollary: vampires do not exist)

(8)

4. Projecting a polyhedron

Definition: Let P(A, b) ⊆ IR

n

be a polyhedron.

Then the polyhedron P(A’, b’) ⊆ IR

n–1

is a projection of P(A, b) if x ∈ P(A’, b’) ⇔ ∃z ∈ IR such that (x, z) ∈ P(A, b).

Example:

P : x

1

> 0, x

2

> 0, 3x

1

+ 2x

2

< 6 P’ : 0 < x

1

< 2

set z = (6 – 3x

1

)/2 > 0 ∀x

1

∈ P’

clearly (x

1

, (6 – 3x

1

)/2) ∈ P ∀x

1

∈ P’

(9)

Projecting a polyhedron

Example:

P : x

1

> 0 x

2

> 0 3x

1

+ 2x

2

< 6

P’ : 0 < x

1

< 2

∀x

1

∈P’, ∃z: (x

1

, z) ∈P P’ is a projection of P

P

P’

(10)

Projecting a polyhedron

Example:

P : x

1

> 0 x

2

> 1 3x

1

+ 2x

2

< 6

P’ : 0 < x

1

< 2

∃ x ∈ P such that x

1

= 2

P’ is not a projection of P

P

P’

(11)

Projecting a polyhedron

Example:

P : x

1

> 0 x

2

> 1 3x

1

+ 2x

2

< 6

P’ : 0 < x

1

< 4/3

Is P’ a projection of P?

P

P’

(12)

Projecting a polyhedron

Example:

P : x

1

> 0 x

2

> 1 3x

1

+ 2x

2

< 6

P’ : 0 < x

1

< 1

Is P’ a projection of P?

P

P’

(13)

5. Fourier’s Theorem

Consider the polyhedron P

a

11

x

1

+ a

12

x

2

+ … + a

1n

x

n

< b

1

a

21

x

1

+ a

22

x

2

+ … + a

2n

x

n

< b

2

a

m1

x

1

+ a

m2

x

2

+ … + a

mn

x

n

< b

m

Partition the row set R in 3 subsets:

R

0

= {i ∈ R: a

i1

= 0}, R

+

= {i ∈ R: a

i1

> 0}, R

= {i ∈ R: a

i1

< 0}

Construct a new polyhedron P’ containing:

1) all the inequalities in R

0

2) a new inequality for any pair in R

+

× R

(14)

Fourier’s Theorem

• Any inequality of type (2) corresponds to one row h ∈ R

+

and another k

∈ R

a

h1

x

1

+ a

h2

x

2

+ … + a

hn

x

n

< b

h

a

k1

x

1

+ a

k2

x

2

+ … + a

kn

x

n

< b

k

a

h1

a

h1

( + a

k1

) x

1

+ ( + ) x

2

+ … + ( + ) x

n

< ( + )

|a

k1

|

a

h2

a

h1

a

k2

|a

k1

|

a

hn

a

h1

a

kn

|a

k1

|

b

h

a

h1

b

k

|a

k1

|

row h row k

• The inequality of P’ is a special conic combination of these two inequalities, obtained by

– dividing the former by ah

1

– dividing the latter by |ak1| – summing them up

(15)

Fourier’s Theorem

Observation: The new system P’ of linear inequalities does not contain variable x

1

Theorem (Fourier) P’ is a projection of P in the space of variables x

2

, …, x

n

.

Proof

• Let w = (w

2

, …, w

n

) ∈ P’. We must show that there exists a real z such that (z, w

2

, …, w

n

) ∈ P.

• For any i ∈ R

0

one has a

i2

w

2

+ … + a

in

w

n

< b

i

• Moreover for any h ∈ R

+

, k ∈ R

( a

h2

+ ) w

2

+ … + ( + ) w

n

< ( + )

a

h1

a

k2

|a

k1

|

a

hn

a

h1

a

kn

|a

k1

|

b

h

a

h1

b

k

|a

k1

|

(16)

Fourier’s Theorem

• Rewrite the latter condition

+ … + – < – a

h2

w

2

– … –

a

h1

a

k2

w

2

|a

k1

|

a

hn

w

n

a

h1

a

kn

w

n

|a

k1

|

b

h

a

h1

b

k

|a

k1

|

• As k ranges in R

(as h ranges in R

+

) the left (right) had side describes a class C (a class D) of real numbers, and all the elements of C turn out to be < than those of D

• Hence there exists a separating element z such that:

+ … + – < z

a

k2

w

2

|a

k1

|

a

kn

w

n

|a

k1

|

b

k

|a

k1

| ∀k ∈ R

z < – a

h2

w

2

a

h1

a

hn

w

n

a

h1

b

h

a

h1

∀h ∈ R

+

(17)

Fourier’s Theorem

• The latter two inequalities rewrite:

a

k1

z + a

k2

w

2

+ … a

kn

w

n

< b

k

∀k ∈ R

• Also, ∀i ∈ R

0

one has

a

h1

z + a

h2

w

2

+ … a

hn

w

n

< b

h

∀h ∈ R

+

0z + a

i2

w

2

+ … a

in

w

n

< b

i

• Therefore (z, w

2

, …, w

n

) ∈ P

• To complete the proof, vice-versa, we must show that for any w ∉ P’

there is no z ∈ IR such that (z, w) ∈ P.

(18)

Fourier’s Theorem

• Saying w ∉ P’ means to say

a

i2

w

2

+ … a

in

w

n

> b

i

for some i ∈ R

0

for some (h, k) ∈ R

+

×R

• In the first case, the corresponding inequality of P is obviously violated

• In the second, there is an element of class C which is greater than an element of class D, thus these classes do not have any separator z.

End of proof

+ … + – >a

h2

w

2

– … –

a

h1

a

k2

w

2

|a

k1

|

a

hn

w

n

a

h1

a

kn

w

n

|a

k1

|

b

h

a

h1

b

k

|a

k1

|

D

C ∋

, or

• To complete the proof, vice-versa, we must show that for any w ∉ P’

there is no z ∈ IR such that (z, w) ∈ P.

(19)

6. Fourier-Motzkin’s Algorithm

• Fourier’s Theorem allows us to reduce the problem of deciding whether a polyhedron is empty or not to that of deciding whether one of its

projections is such

• Because the projection of a polyhedron still is a polyhedron, the theorem can be repeatedly applied, until one finds a polyhedron where the

decision problem is trivial

• For instance, one can apply the theorem n – 1 times: in this case the resulting polyhedron P

(n–1)

will be an interval of the real axis, possibly empty or unbounded

• Or, one can apply the theorem n times: in this case the resulting

polyhedron P

(n)

will be of the form 0·x < t. Two cases are then possible:

– if t > 0, P(n) is trivially compatible, since it describes the whole IRn, and so also P is compatible;

– If there exists an index i such that ti < 0, then P(n) is trivially incompatible, and so is P.

(20)

7. Applications

• The repeated application of Fourier’s Theorem is, in fact, Fourier- Motzkin’s Elimination Method

• This method can be applied to

– decide whether a polyhedron is empty or not

– find an implicit representation of conv(S) for any finite set S ⊂ IRn – solve a linear program

(21)

Example

Let P be the polyhedron of the x ∈ IR

3

such that

3x

1

– x

2

< 4

x

1

– 2x

3

< – 6 2x

1

+ 2x

2

+ x

3

< 2

x

1

> 0

We want to check P ≠

(22)

Example

Change all the inequalities into <, and build a table containing all the system coefficients

1) 3 – 1 0 4

2) 1 0 –2 –6

3) 2 2 1 2

4) –1 0 0 0

(red = right-hand side, blue = row indexes)

(23)

Example

Select a variable (column) to be suppressed. The choice can be based on the number of new rows that the suppression will generate.

• Eliminating column 1 we generate 3×1 = 3 new rows

• Eliminating column 2 or column 3 we generate 2 + 1×1 = 3 new rows

So we decide to suppress column 2, in fact 2 of the new rows derive from R

0

, and are therefore already present in the table

1) 3 – 1 0 4

2) 1 0 –2 –6

3) 2 2 1 2

4) –1 0 0 0

(24)

Example

The sets R

0

, R

+

and R

are then the following:

S

0

= {2, 4} S

+

= {3} S

= {1}

Hence, R

+

× R

contains pair 31 only. The relevant row is computed by multiplying row 1 by 2 and by summing the result to row 3. The table becomes

1) 3 – 1 0 4

2) 1 0 –2 –6

3) 2 2 1 2

4) –1 0 0 0

2) 1 0 –2 –6

4) –1 0 0 0

31) 8 0 1 10

(25)

Example

It is now convenient to apply the method to column 3. We have R

0

= {2}, R

+

= {3}, R

= {1}

and R

+

× R

again contains only pair 31.

The relevant row is computed by multiplying row 3 by 2 and summing up the result to row 1. The table now becomes

1) 1 0 –2 –6

2) –1 0 0 0

3) 8 0 1 10

Re-number the rows so obtained

2) –1 0 0 0

31) 17 0 0 14

(26)

Example

The projection P” of P on the x

1

axis consists then of the (non-empty) interval [0, 14/17]. Then, also P is non-empty. In particular we can find a point of P by choosing any x

1

∈ P”, and computing x

2

and x

3

from the previous tables.

Take for example x

1

= 0. From the first table in the previous page we derive the conditions

1) x

1

> 0

2) 17x

1

< 14

This table describes the system

1) –2x

3

< –6 that is x

3

> 3

3) x

3

< 10

Hence x

3

∈[3, 10]. We can for instance choose x

3

= 4.

(27)

Example

Replacing now x

1

= 0 and x

3

= 4 in the initial table

1) 3 –1 0 4

2) 1 0 –2 –6

3) 2 2 1 2

4) –1 0 0 0

we obtain the conditions

–x

2

< 4

2x

2

+ 4 < 2

namely x

2

∈[–4, –1]. A solution of the initial system is then, for instance

x

1

= 0 x

2

= –1 x

3

= 4

Riferimenti

Documenti correlati

Since the aim of this research is to prove the effectiveness of abrasive recycling with an economical approach, the final result will be the economics of the recycled GMA

More than ten years ago, Ross Balzaretti published a highly interpretive article that discussed in partic- ular northern Italy’s economy between the eighth and the ninth centuries; 7

A discrete model of such system, based on the simple symmetric random walk on Z, has been inves- tigated in [9], notably in the weak polymer–solvent coupling limit, where

A discrete model of such system, based on the simple symmetric random walk on Z, has been investigated in [8], notably in the weak polymer-solvent coupling limit, where the

the Fascism of Ragusa which could be defined as Pennavarian, taking its leader’s name, Filippo Pennavaria; that of Modica with its notable specificity; while that of

The bund1e E can be regarded as having

essential facilities doctrine – la quale stabilisce che il titolare dell’infrastruttura non duplicabile, la cosiddetta essential facility, in talune circostanze può

Fill in the blanks with “can” or “can’t” and number the pictures1. swim