Docsity

Tema4, Apuntes de Matemáticas

Toggle sidebar
bg1
Métodos de “Branch and Bound”
Jos´
e M. Belenguer
Departament d’Estad´ıstica i Investigaci´
o Operativa
Universitat de Val`
encia
Programaci´
on Lineal Entera– p.1/39
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27

Vista previa parcial del texto

¡Descarga Tema4 y más Apuntes en PDF de Matemáticas solo en Docsity!

Métodos de “Branch and Bound”

Jos ´

e M. Belenguer

Departament d’Estad´

ıstica i Investigaci ´

o Operativa

Universitat de Val `

encia

Programaci ´

Índice

Divide y vencer ´

as.

Enumeraci ´

on impl´

ıcita.

Un ejemplo de Branch and Bound. Algoritmo de Branch and Bound. Branch and Bound con relajaci ´

on lineal.

Programaci ´

Divide y vencerás (II)

Diremos que

S

i

ki

=

1

es una

división de

S

si

k i

=

1

S

i

S

Una división de

S

es una

partición

si

S

i

S

j

, para todo

i

j

k

i

j

Proposici ´

on

:

Sea

S

i

ki

=

1

una

división de

S

y

sea

z

i

max

cx

x

S

i

para

i

k

. Entonces

z

max

z

i

i

k

La forma típica de representar esta aproximación es vía un árbol de enumeración

Programaci ´

on Lineal Entera– p.4/

Divide y vencerás (III)

Árbol de enumeración de un problema binario con 3 variables

S

S

x 0

1

= 0

S

00

x

2

= 0

S

000

x

3

= 0

S

x 001

3

= 1

S

01

x

2

= 1

S

010

x

3

= 0

S

x 011

3

= 1

S

1

x

1

= 1

S

10

x

2

= 0

S

100

x

3

= 0

S

x 101

3

= 1

S

11

x

2

= 1

S

110

x

3

= 0

S

x 111

3

= 1

Programaci ´

on Lineal Entera– p.5/

Enumeración implícita (I)

La

enumeración completa

es totalmente

inviable

para la

mayoría de los problemas enteros

si el número de variables

enteras grande

n

log n

n

0

5

n

2

n

n

2

×

3

×

6

4

×

30

×

157

6

×

301

×

2567

Programaci ´

Enumeración implícita (II)

¿Cómo podemos usar

algunas

cotas sobre

el valor de

z

i

inteligentemente? Usar

enumeración implícita

branch and bound

Proposici ´

on

:

Sean

S

k i

=

1

S

i

una división de

S

z

i

max

cx

x

S

i

para

i

,... , k

z

i

una cota superior sobre

z

i

y

z

i

una cota

inferior sobre

z

i

. Entonces

z

max

z

i

i

k

es una

cota superior sobre

z

y

z

max

z

i

i

k

es una

cota inferior sobre

z

Programaci ´

on Lineal Entera– p.8/

Enumeración implícita (IV)

S

S

1

S

2

MAX

27 13

20 20

25 15

S

S

1

S

2

25 15

20 20

25 20

Notar que

z

max

z

1

z

2

max

y

z

max

z

1

z

2

max

Como las

cotas inferior y superior

sobre

z

1

son

iguales

z

1

, y

no hay que examinar más el conjunto

S

1

En consecuencia,

la rama

S

1

del árbol de enumeración

puede

cortarse

por optimalidad

Programaci ´

Enumeración implícita (V)

S

S

1

S

2

MAX

27 13

20 18

26 21

S

S

1

S

2

26 21

20 18

26 21

Notar que

z

max

z

1

z

2

max

y

z

max

z

1

z

2

max

Como

el valor óptimo tiene un valor de al menos 21, y la cota

superior

z

1

(esto es,

z

1

z

ninguna solución óptima

puede caer

en el conjunto

S

1

Por tanto,

la rama

S

1

del árbol de enumeración

puede

cortarse

por cota

Programaci ´

Enumeración implícita (VII)

Hay

tres razones que nos permitan “podar" el árbol

y así

eliminar implícitamente un gran número de soluciones:

Cortar por optimalidad

max

cx

x

S

t

ha sido resuelto

Cortar por cota

z

t

z

Cortar por imposibilidad

S

t

Algunas

cuestiones pendientes

¿Qué relajación usar para obtener cotas superiores? ¿Cómo separar la región posible

en regiones más

pequeñas

S

S

1

S

k

¿debemos separarla en dos

o en más partes?

¿En que orden debemos explorar los subproblemas?

Programaci ´

on Lineal Entera– p.13/

Un ejemplo de Branch and Bound (I)

z

M ax

x

1

x

2

s.a.

x

1

x

2

x

2

x

1

x

2

x

1

, x

2

Z

2

3 2 1

1

2

3

0

(

3 2

,

0

)

(

11

5

,

7 10

)

(

20

7

,

3

)

S

0

=

S







z

=

−∞

≤

z

≤

¯z

= +

∞

Programaci ´

Un ejemplo de Branch and Bound (III)

Como

z

z

y

x

0 R

S

0

, necesitamos dividir (

ramificar

¿ Como deberíamos dividir la región posible? Idea

: Elegir una

variable entera que sea básica y fraccionaria

en la solución lineal, y dividir el problema en dos a partir deeste valor fraccionario.Si

x

j

x

j

Z

, uno puede tomar

S

1

S

0

x

x

j

≤ b

x

j

c }

S

2

S

0

x

x

j

≥ d

x

j

e }

Es obvio que

S

0

S

1

S

2

y

S

1

S

2

Además,

x

0 R

PL

S

0

pero

x

0 R

PL

S

1

y

x

0 R

PL

S

2

Si no hay degeneración

max

z

1

z

2

z

Programaci ´

Un ejemplo de Branch and Bound (IV)

En el ejemplo,

como

x

1

Z

, tomamos

S

1

S

0

x

x

1

y

S

2

S

0

x

x

1

Tenemos el

árbol Branch-and-Bound parcial

S

0

S

1

S

2

59/ −∞

x

1

x

1

Los

subproblemas (nudos) que deben todavía ser

examinados

se llaman

activos

Programaci ´

Un ejemplo de Branch and Bound (VI)

La tabla óptima de la

relajación lineal de

S

1

es:

x

1

x

2

x

3

x

4

x

5

h

1

LD

z

1 2

15

2

x

1

x

2

1 2

1 2

x

3

x

4

1 2

5 2

Por tanto,

¯z

1

15

2

x

1 R

1 2

y

z

1

Como

x

1 R

S

1

debemos

ramificar

Programaci ´

Un ejemplo de Branch and Bound (VII)

Como

x

2

1 2

Z

, definimos:

S

3

S

1

x

x

2

y

S

4

S

1

x

x

2

y, por tanto, los

nudos vivos

son

S

2

S

3

y

S

4

Árbol de enumeración parcial

es:

S

0

S

1

S

2

S

3

S

4

59

7

−∞

x

1

≤

2

x

1

≥

3

x

2

≤

0

x

2

≥

1

15

2

15

2

15

2

59

/\ 7

59

7

Programaci ´