Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Ejemplos PL ENTERA PDF
Ejemplos PL ENTERA PDF
• Resolución gráfica
(PL) z PL = max c1 x1 + · · · + cn xn
sujeto a
ai1 x1 + · · · + ain xn ≤ bi , i = 1, . . . , m
xj ≥ 0, j = 1, . . . , n
(PE) z PE = max c1 x1 + · · · + cn xn
sujeto a
ai1 x1 + · · · + ain xn ≤ bi , i = 1, . . . , m
xj ≥ 0 y entera , j = 1, . . . , n
xj ∈ {0, 1} , j = 1, . . . , n
Relajaciones de programación lineal
(PE) z PE = max c1 x1 + · · · + cn xn
sujeto a
ai1 x1 + · · · + ain xn ≤ bi , i = 1, . . . , m
xj ≥ 0 y entero , j = 1, . . . , n
(PL) z PL = max c1 x1 + · · · + cn xn
sujeto a
ai1 x1 + · · · + ain xn ≤ bi , i = 1, . . . , m
xj ≥ 0, j = 1, . . . , n
• Relación entre valores óptimos: z PE ≤ z PL ¿Por qué?
Ej: selección óptima de proyectos
Gastos/año (M e)
Proyecto 1 2 3 Retorno
1 5 1 8 20
2 4 7 10 40
3 3 9 2 20
4 7 4 1 15
5 8 6 10 30
Presupuesto 25 25 25
• Variables
⎧ de decisión:
⎨1 si se selecciona el proyecto j;
xj =
⎩0 si no
• Restricciones:
• Observación: z PE < z PL
Ej. 2: programa entero y relajación lineal
5
xPL
4
x2
3
0
xPE
0 1 2 3 4 5 6 7
x1
Ej: Soluciones óptimas: entera y lineal
ei1 x1 + · · · + ein xn ≤ fi , i = 1, . . . , p, ó Ex ≤ f ,
PE PL
(PE ) z = max c x
T
(PL ) z = max cT x
sujeto a sujeto a
Ax ≤ b Ax ≤ b
Ex ≤ f Ex ≤ f
x ≥ 0 y entero x≥0
• Relaciones entre valores: z PE = z PE ≤ z PL ≤ z PL
• La formul. (PE ) es más fuerte que (PE) si z PL < z PL
Formulaciones enteras completas
5
xPL
4
x2
3
0
xPE
0 1 2 3 4 5 6 7
x1
Ej. 2: formulación completa (PE )
I
5
x2
3
0
xPE = xPL
0 1 2 3 4 5 6 7
x1
Ej: formulación completa (PE )
PE PL
(PE ) z = max x1 + 0.64x2 (PL ) z = max x1 + 0.64x2
sujeto a sujeto a
50x1 + 31x2 ≤ 250 50x1 + 31x2 ≤ 250
− 3x1 + 2x2 ≤ 4 − 3x1 + 2x2 ≤ 4
− x1 + x2 ≤ 2 − x1 + x2 ≤ 2
x1 + x2 ≤ 6 x1 + x2 ≤ 6
3x1 + 2x2 ≤ 15 3x1 + 2x2 ≤ 15
x1 , x2 ≥ 0 y enteras x1 , x2 ≥ 0
• Tenemos que: z PE = z PE = z PL < z PL
• Observación: La región factible lineal es la envoltura
convexa de los puntos enteros factibles
Brecha de integralidad de una relajación
y su relajación lineal
(PL) z PL
= max c x : Ax ≤ b,
T
x≥0
0 < z ∗ ≤ z PE ≤ z PL
z PL − z ∗ 108.68 − 70
• La cota superior es: ∗
= ≈ 0, 55
z 70
• Ejemplo:
n
z PEM = max −x0 + 2 xj
j=1
sujeto a
n
x0 + 2 xj ≤ n
j=1
xj ∈ {0, 1}, j = 1, . . . , n
x0 ≥ 0 (esta variable es continua)
Ej: Asignación de tripulaciones a vuelos
• Coste de la asignación j : cj e
• Problema: Encontrar un conjunto de asignaciones que
cubra todos los vuelos a coste mı́nimo
Ej: Formulación de PE Binaria
• Variables de decisión:
⎧
⎨1 si se selecciona la asignación j
xj =
⎩0 si no
• Objetivo: z PE = min c1 x1 + · · · + cn xn
• Restricciones:
• Coste de la localización j : cj e
• Variables de decisión:
⎧
⎨1 si se selecciona la localización j
xj =
⎩0 si no
• Objetivo: z PE = min c1 x1 + · · · + cn xn
• Restricciones:
x1 + x2 + · · · + xn ≤ 2
x2 − x4 ≤ 0