Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Relaciones primal-dual
MAXIMIZACION MINIMIZACION.
RESTRICCIONES VARIABLES
= ><
VARIABLES RESTRICCIONES
>< =
Mn G() = b
s.a:
A c
>< 0, es decir, variables libres.
PREGUNTAS:
RESPUESTAS:
Min Z(x) = 2 x1 + 3 x2 + 5 x3 + 2 x4 + 3 x5
s.a:
x1 + x2 + 2 x3 + x4 + 3 x5 4
2 x1 - x2 + 3 x3 + x4 + x5 3
x1 0 , x2 0 , x3 0 , x4 0 , x5 0
Max G() = 4 1 + 3 2
s.a:
1 + 2 2 2
1 - 2 3
2 1 + 3 2 5
1 + 2 2
3 1 + 2 3
1 0 , 2 0
Este problema solo tiene dos variables y cinco restricciones
por tanto se puede resolver grficamente:
-1
-1 0 1 2 3 4
Grfico 2
x1 + 3 x5 = 4
2 x1 + x5 = 3
La solucin de este sistema es : x1 = 1 y x5 = 1, lo cual nos
proporciona un valor de la funcin objetivo de Z(x) = 5, idntico
a la solucin del dual
Mx Z(x) = ct x
s.a:
Axb
x0
L(x,) = c x + ( b - Ax )
L
x = ( c - A ) x = 0
x
x0
L
= b - Ax 0
L
= ( b - Ax ) = 0
L
= b - Ax 0
L
= ( b - Ax ) = 0
L
= c - A 0
x
L
x = ( c - A ) x = 0
x
x0
L(,x) = b +( c - A )x = b + cx-Ax = cx + ( b - Ax )
L(x,) = c x + ( b - Ax ) L(,x) = b + ( c - A ) x
VARIABLES VARIABLES
L L
= c A 0 = b Ax 0
x
L L
x = ( c A ) x = 0 = ( b Ax) 0
x
x0 0
MULTIPLICADORES MULTIPLICADORES
L L
= b Ax 0 = c A 0
x
L L
= ( b Ax) 0 x = ( c A ) x = 0
x
0 x0
6.3 Teoremas de dualidad.
Teorema de existencia.
La condicin necesaria y suficiente para que un problema de
programacin lineal tenga solucin es que, tanto el conjunto de
oportunidades del primal (S) como en conjunto de oportunidades
del dual (S) no sean vacos, es decir, que ambos problemas sean
factibles.
( x* , * ) S S
Corolario del teorema de existencia.
x* * / Z(x*) = G(*)
( c - * A ) x* = 0
* ( b - A x* ) = 0
6.4.Relaciones entre las soluciones del programa primal y del
programa dual.
n
(cj - a1j 1 - a2j 2 -.... - amj m ) xj = 0
j=1
m
i(bi - ai1 x1 - ai2 x2 -.... - ain xn) = 0
i=1
jh x j = 0
x ih i = 0
En consecuencia tenemos:
Z(x*) = G(*)
c x* = * b
como cx* = cB B-1 b
xB = B-1 b = b* 0.
wj = c j - z j 0 j.
wj = cj - cB B-1 Pj = cj - Pj 0 , j.
xB = B-1 b = b* 0.
wj = c j - z j 0
wj = cj - zj 0 , j
wk = ck - Pk .
Si consideramos: Pk - kh = ck tenemos que: - kh = wk .
Problema Primal:
Min Z(x) = 2 x1 + 3 x2 + 5 x3 + 2 x4 + 3 x5
s.a:
x1 + x2 + 2 x3 + x4 + 3 x5 4
2 x1 - x2 + 3 x3 + x4 + x5 3
x1 0 , x2 0 , x3 0 , x4 0 , x5 0
-2 -3 -5 -2 -3 0 0 M M
x1 x2 x3 x4 x5 x1 x2 x1a x2a
h h
-3 x5 0 .6 .2 .2 1 -.4 .2 .4 -.2 1
-2 x1 1 -.8 1.4 .4 0 .2 -.6 -.2 .6 1
zj 0 -.2 -3.4 -1.4 -3 .8 .6 .8 .6
wj 0 -2.8 -1.6 -.6 0 -.8 -.6 M- M- -5
.8 .6
El problema dual asociado es:
Max G() = 4 1 + 3 2
s.a:
1 + 2 2 2
1 - 2 3
2 1 + 3 2 5
1 + 2 2
3 1 + 2 3
1 0 , 2 0
4 3 0 0 0 0 0
1 2 1h 2h 3h 4h 5h
3 2 0 1 .6 0 0 0 -.2 .6
0 2h 0 0 .8 1 0 0 -.6 2.8
0 3h 0 0 -1.4 0 1 0 -.2 1.6
0 4h 0 0 -.4 0 0 1 -.2 .6
4 1 1 0 -.2 0 0 0 .4 .8
zj 4 3 1 0 0 0 1
wj 0 0 -1 0 0 0 -1 5
Variables principales primal Variables holgura dual
1 x1h
2 x2h
1h x1
2h x2
3h x3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