Professional Documents
Culture Documents
As pues, la estructura general de esta tcnica consiste en: Un criterio para dividir los subconjuntos candidatos a contener la solucin ptima encontrados en cada fase. El clculo de una cota (inferior o superior) para los valores de la funcin en cada subconjunto candidato. Un criterio para seleccionar un subconjunto para una particin posterior.
La herramienta es muy flexible y permite una gran capacidad de maniobra. Pero esto mismo hace que slo la prctica sea la que permita un uso eficaz de la misma.
P0
(2.5, 4.5)
4
x
1 2 ESCUELA TCNICA SUPERIOR DE INGENIERA DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL 3 4 5 6
Branch and Bound - 24
En la etapa k tendremos disponibles una cota inferior z* y una lista de programas linales que difieren entre s en las cotas entre las que se encuentran las variables de decisin de cada uno de ellos.
En la etapa inicial la lista de programas contiene tan slo el programa propuesto, relajando (es decir, prescindiendo de ) la condicin de que las variables sean enteras. En cada iteracin, la tcnica se desarrollar segn el procedimiento que se describe en la siguiente diapositiva.
ESCUELA TCNICA SUPERIOR DE INGENIERA DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL
PROCEDIMIENTO
1: Si la lista de programas est vaca el proceso ha finalizado. En caso contrario seleccionar y estudiar uno de los programas contenidos en ella. 2: Resolver el programa seleccionado. Si no tiene solucin o si el valor ptimo de la funcin objetivo no es mayor que z* , z* es la cota inferior de la etapa siguiente y volvemos al paso 1. En otro caso, pasamos al paso 3. 3: Si la solucin obtenida satisface el carcter entero de las variables, se retienen dichos valores, el valor de la funcin objetivo es la nueva cota inferior y volvemos al paso 1. Si no es este el caso, se ejecuta paso 4. 4: Seleccionar una de las variables que, debiendo ser entera, no lo sea en la solucin encontrada en el paso 3. Supongamos que dicha variable es x y que su valor no entero es a. Entonces aadimos dos nuevos programas a la lista que son idnticos al programa que nos proporcion esa solucin, excepto que en uno de ellos hay una nueva restriccin que establece que la cota inferior de x es E(a) + 1 y en el otro la nueva restriccin establece que la cota superior de x es E(a). La cota inferior de Z se mantiene como referencia para estos dos nuevos programas.
ESCUELA TCNICA SUPERIOR DE INGENIERA DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL
Branch and Bound - 26
P0:
x + 5 y 25 9 x + 6 y 49.5 x 0, y 0
y
(2.5, 4.5) Con fondo amarillo el conjunto de restricciones relajado, eliminando la condicin de que x e y sean enteros.
x
1 2 ESCUELA TCNICA SUPERIOR DE INGENIERA DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL 3 4 5 6
Branch and Bound - 28
2) Se ramifica el problema P0 en dos direcciones segn que y 4 o y 5 , ya que no puede haber ninguna solucin entera con 4 < y < 5 . P0
y5
P1
Max Z = x +1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 5
y4
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
(0, 5)
P1
(2.5, 4.5)
4
x
ESCUELA TCNICA SUPERIOR DE INGENIERA 1 2 DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL
6
Branch and Bound - 30
P0
y5
P1
Max Z = x +1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 5
y4
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
Solucin ptima : Z* = 6 x = 0, y = 5
1 Cota entera
ESCUELA TCNICA SUPERIOR DE INGENIERA DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL
P2
(2.833, 4)
x
ESCUELA TCNICA SUPERIOR DE INGENIERA 1 2 DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL
P0
y5
P1
Max Z = x +1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 5
y4
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
Solucin ptima Z* = 6 x = 0, y = 5
Solucin no entera, pero superior a la cota entera encontrada. Hay que seguir ramificando.
1 Cota entera
P0
y5 P1
Max Z = x +1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 5
y4
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
x2
P3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
x3
Solucin ptima
P4
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
Z* = 6 x = 0, y = 5
1 Cota entera
Solucin ptima Z * = 6. 8 x = 2, y = 4
2 Cota entera. Mejora la 1. Nueva referencia
P4
Max Z = x + 1.2 y x + 5 y 25
9 x + 6 y 49.5 x 3, y 4
x
1 DE INGENIERA 2 ESCUELA TCNICA SUPERIOR DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL 3 4 5 6
Branch and Bound - 37
P0
y5 P1
Max Z = x +1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 5
y4
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
x2
P3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
x3
Solucin ptima
P4
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
Z* = 6 x = 0, y = 5
1 Cota entera
Solucin no entera mejor que la 2 cota entera obtenida. Hay que seguir ramificando
Branch and Bound - 38
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
x2
P3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
x3
P4
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
y3
y4
P6
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 3
P5
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4, y 4
P5
Max Z = x + 1.2 y x + 5 y 25
9 x + 6 y 49.5 x 3, y 4, y 4
x
ESCUELA TCNICA SUPERIOR DE INGENIERA 1 2 DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL
6
Branch and Bound - 40
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
x2
P3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
x3
P4
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
y3
y4
P6
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 3
P5
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4, y 4
Infactible
P6
Max Z = x + 1.2 y x + 5 y 25
9 x + 6 y 49.5 x 3, y 3
(3.5, 3)
x
ESCUELA TCNICA SUPERIOR DE INGENIERA 1 2 INDUSTRIAL DEPARTAMENTO DE ORGANIZACIN
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
x2
P3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
x3
P4
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
y3
y4
P6
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 3
P5
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4, y 4
Infactible
x = 3.5, y = 3
Solucin no entera mejor que la 2 cota entera obtenida. Hay que seguir ramificando
Branch and Bound - 43
P2
x2
P3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
x3
P4
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
y3
y4
P6
Max Max ZZ == xx ++ 1.1 2 .2 yy xx yy ++ 55 25 25 xx yy 99 ++ 66 49 49 .5 .5 xx 3,3, y y 33
P5
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5
x3
x4
P7
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 3, x 3
ESCUELA TCNICA SUPERIOR DE INGENIERA DEPARTAMENTO DE ORGANIZACIN INDUSTRIAL
P8
x 3, y 4, y 4
Infactible
P7
4
(3, 3)
x
ESCUELA TCNICA SUPERIOR DE INGENIERA 1 2 INDUSTRIAL DEPARTAMENTO DE ORGANIZACIN
P2
x2
P3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
x3
P4
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
Solucin ptima
Solucin entera peor que P3
y3
y4
Z * = 6.8 x = 2, y = 4
P6
Max Max ZZ == xx ++ 1.1 2 .2 yy xx yy ++ 55 25 25 xx yy 99 ++ 66 49 49 .5 .5 xx 3,3, y y 33
P5
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5
x3
x4
P7
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 3, x 3
P8
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 4, y 3
x 3, y 4, y 4
Infactible
P8
Max Z = x + 1.2 y x + 5 y 25
9 x + 6 y 49.5 x 4, y 3
(4, 2.25)
2
x
ESCUELA TCNICA SUPERIOR DE INGENIERA 1 2 INDUSTRIAL DEPARTAMENTO DE ORGANIZACIN
P2
x2
P3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
x3
P4
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
y3
y4
P6
Max Max ZZ == xx ++ 1.1 2 .2 yy xx yy ++ 55 25 25 xx yy 99 ++ 66 49 49 .5 .5 xx 3,3, y y 33
P5
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5
x3
x4
P7
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5
P8
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 4, y 3
x 3, y 4, y 4
Infactible
Finalizado el proceso de ramificacin y poda, la solucin ptima entera corresponde al subprograma P3:
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
La solucin ptima es Z * = 6. 8 x = 2, y = 4
Resumen
Z * = 7.633 x = 2.833, y = 4
Max Z = x + 1.2 y
P0
y5
P2
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 4
y4
sujeto a : x + 5 y 25 9 x + 6 y 49.5 x 0, y 0
P1
Max Z = x +1.2 y x + 5 y 25 9 x + 6 y 49.5 x 0, y 5
x2
P3
Max Z = x + 1 .2 y
P4
x3
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 4
Z* = 6 x = 0, y = 5
1 Cota entera
x + 5 y 25 9 x + 6 y 49.5 x 2, y 4
Z = 7.5 x = 3, y = 3.75
*
y3
y4
P5
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5
P6
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 3, y 3
x = 2, y = 4
2 Cota entera. Mejora la 1. Nueva referencia
x3
x4
x 3, y 4, y 4
P7
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5
P8
Max Z = x + 1.2 y x + 5 y 25 9 x + 6 y 49.5 x 4, y 3
Infactible
Z * = 6.7 x = 4, y = 2.25
Branch and Bound - 50
Z = 6.6 x = 3, y = 3
*
Z * = 7.1 x = 3.5, y = 3