Documente Academic
Documente Profesional
Documente Cultură
TEORÍA DE DUALIDAD
PRIMAL DUAL
PROBLEMA DE MAXIMIZACIÓN NORMAL
m𝑖𝑛 𝑤 = 𝑏1 𝑦1 + 𝑏2 𝑦2 + ⋯ + 𝑏𝑚 𝑦𝑚
max 𝑧 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
Primal / Dual /
Dual Primal
Objetivo Maximización Minimización
<= >=
Tabla de Tucker Restricciones >= <= Variables
= libre
>= >=
Variables <= <= Restricciones
libre =
5
TEORÍA DE DUALIDAD
Ejemplo 1:
Primal Dual
6
TEORÍA DE DUALIDAD
Primal Dual
7
TEORÍA DE DUALIDAD
Primal Dual
8
TEORÍA DE DUALIDAD
Primal Dual
9
TEORÍA DE DUALIDAD
Primal Dual
10
TEORÍA DE DUALIDAD
Primal Dual
11
TEORÍA DE DUALIDAD
Primal Dual
12
TEORÍA DE DUALIDAD
Primal Dual
13
TEORÍA DE DUALIDAD
Ejemplo 2:
Primal Dual
𝑥1 , 𝑥2 ≥ 0 𝑤1 , 𝑤2 ≥ 0
14
TEORÍA DE DUALIDAD
Ejemplo 2:
Dual
𝑤1 , 𝑤2 ≥ 0
15
TEORÍA DE DUALIDAD
Ejemplo 2:
Primal Dual
𝑥1 , 𝑥2 ≥ 0 𝑤1 , 𝑤2 ≥ 0
16
TEORÍA DE DUALIDAD
Teorema
El problema dual asociado al dual es el problema primal.
17
TEORÍA DE DUALIDAD
Ejemplo:
La compañía relojera Rolox produce dos tipos de relojes, el reloj de gama media payless
y el reloj de gama alta timeless, los cuales vende a 2 y 3 dólares respectivamente. Para
producir un reloj payless se necesita un gramo de platino y dos gramos de oro,
mientras que para producir un reloj timeless se necesita un gramo de oro y un gramo
de platino.
Rolox cuenta en sus cajas fuertes con 3 gramos de platino y 4 de oro. El objetivo de la
compañía es maximizar sus ingresos por la venta de relojes.
¿Qué cantidad debería producir Rolox de cada tipo de reloj?
18
TEORÍA DE DUALIDAD
𝑥1 , 𝑥2 ≥ 0
TEORÍA DE DUALIDAD
x1 x2 s1 s2 Solución
z -2 -3 0 0 0
s1 1 1 1 0 3
s2 2 1 0 1 4
Entra x2
Sale s1
20
TEORÍA DE DUALIDAD
x1 x2 s1 s2 Solución
z 1 0 3 0 9
x2 1 1 1 0 3
s2 1 0 -1 1 1
Solución optima
Z=9
X1 = 0
X2 = 3
¿compraría un gramo más de oro? ¿un gramo más de platino?
21
TEORÍA DE DUALIDAD
𝑤1 , 𝑤2 ≥ 0
23
TEORÍA DE DUALIDAD
w1 w2 s1 s2 R1 R2 Solución
z -3 -4 0 0 -100 -100 0
R1 1 2 -1 0 1 0 2
R2 1 1 0 -1 0 1 3
24
TEORÍA DE DUALIDAD
w1 w2 s1 s2 R1 R2 Solución
z 197 296 -100 -100 0 0 500
R1 1 2 -1 0 1 0 2
R2 1 1 0 -1 0 1 3
Entra w2
Sale R1
25
TEORÍA DE DUALIDAD
w1 w2 s1 s2 R1 R2 Solución
z 49 0 48 -100 -148 0 204
w2 0,5 1 -0,5 0 0,5 0 1
R2 0,5 0 0,5 -1 -0,5 1 2
Entra w1
Sale w2
26
TEORÍA DE DUALIDAD
w1 w2 s1 s2 R1 R2 Solución
z 0 -98 97 -100 -197 0 106
w1 1 2 -1 0 1 0 2
R2 0 -1 1 -1 -1 1 1
Entra s1
Sale R2
27
TEORÍA DE DUALIDAD
w1 w2 s1 s2 R1 R2 Solución
z 0 -1 0 -3 -100 -97 9
w1 1 1 0 -1 0 1 3
s1 0 -1 1 -1 -1 1 1
Optimo
w1 = 3
w2 = 0
28
TEORÍA DE DUALIDAD
x1 x2 s1 s2 Solución
z 1 0 3 0 9
x2 1 1 1 0 3
s2 1 0 -1 1 1
Comparemos
w1 w2 s1 s2 R1 R2 Solución
z 0 -1 0 -3 -100 -97 9
w1 1 1 0 -1 0 1 3
s1 0 -1 1 -1 -1 1 1
29
TEORÍA DE DUALIDAD
Cuanto está dispuesto a pagar Rolox por una unidad más de recurso (precio
sombra, precio marginal)
m𝑖𝑛 𝑤 = 𝑏1 𝑦1 + 𝑏2 𝑦2 + ⋯ + 𝑏𝑚 𝑦𝑚
max 𝑧 = 𝑐1 𝑥1 + 𝑐2 𝑥2 + ⋯ + 𝑐𝑛 𝑥𝑛
⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮
La Dakota Furniture Company fabrica escritorios, mesas y sillas. Para la manufactura de cada tipo de mueble se requiere
madera y dos tipos de mano de obra calificada: acabado y carpintería. La cantidad de recursos necesarios para elaborar
cada tipo de muebles se da en la tabla adjunta. Se encuentra en la actualidad con 48 pies de tablón de madera, 20 horas
de acabado y 8 horas de carpintería. Un escritorio se vende en 60 dólares, una mesa en 30 dólares y una silla en 20
dólares. Puesto que los recursos disponibles ya se compraron Dakota quiere maximizar el ingreso total.
8𝑥1 + 6𝑥2 + 𝑥3 ≤ 48
4𝑥1 + 2𝑥2 + 1.5𝑥3 ≤ 20
2𝑥1 + 1.5𝑥2 + 0.5𝑥3 ≤ 8
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
PARA EL EJEMPLO ANTERIOR RESOLVER LAS SIGUIENTES
PREGUNTAS:
PRIMAL DUAL
Minimización Maximización
Normal Normal
PRIMAL DUAL
Maximización Minimización
Normal Normal
REGLAS DEL PROBLEMA DUAL
𝑥1 ≥ 0 𝑥2 ≥ 0 … 𝑥𝑛 ≥ 0
0 ≤ 𝑦1 𝑎11 𝑎12 … 𝑎1𝑛 ≤ 𝑏1
0 ≤ 𝑦2 𝑎21 𝑎22 … 𝑎2𝑛 ≤ 𝑏2
Min w
⋮ ⋮ ⋮ ⋮ ⋮ ⋮
0 ≤ 𝑦𝑚 𝑎𝑚1 𝑎𝑚2 … 𝑎𝑚𝑛 ≤ 𝑏𝑚
≥ 𝑐1 ≥ 𝑐2 … ≥ 𝑐3
PROBLEMA DUAL MAXIMIZACIÓN– EJEMPLO
8𝑥1 + 6𝑥2 + 𝑥3 ≤ 48
4𝑥1 + 2𝑥2 + 1.5𝑥3 ≤ 20
2𝑥1 + 1.5𝑥2 + 0.5𝑥3 ≤ 8
𝑥1 , 𝑥2 , 𝑥3 ≥ 0
PROBLEMA DUAL MINIMIZACIÓN– EJEMPLO
max 𝑧 = 2𝑥1 + 𝑥2
𝑥1 + 𝑥2 = 2
2𝑥1 − 𝑥2 ≥ 3
𝑥1 − 𝑥2 ≤ 1
𝑥1 ≥ 0 , 𝑥2 𝑛𝑟𝑠