Documentos de Académico
Documentos de Profesional
Documentos de Cultura
CRISTOBAL DE HUAMANGA
FACULTAD DE INGENIERIA DE MINAS, GEOLOGIA Y CIVIL
TEMA
DUALIDAD
AYACUCHO – PERÚ
2009
1
INTRODUCCION
Todo programa matemático, lineal o no lineal, existe asociado con otro llamado
programa dual. En particular, todo programa lineal y dual y luego se dará la
interpretación física correspondiente.
2
Programación Lineal
1. El conjunto de datos.
DUALIDAD
3
El concepto de dualidad indica que para cada problema de PL hay una
asociación y una relación muy importante con otro problema de programación
lineal, llamado precisamente dual.
Definición
Max z = c’x
Sujeto a : Ax<=b
P x>=0
Min w = b’y
Sujeto a: A’y>=c
D y>=0
Donde se tiene que:
c: en un vector columna de n componentes
b: es un vector columna de m componentes
A: es una matriz de orden mxn; A’ es la transpuesta de A
x: es un vector de n componentes, cuyos valores deben ser hallados para
maximizar la función z sujeta a las restricciones
y: es un vector de m componentes, cuyos valores deben ser hallados para
minimizar la función w sujeta a las restricciones
Con el objeto de obtener una mejor visualización de las relaciones que existen
entre el programa primal y el dual, a continuación escribiremos estos
programas en forma expandida.
4
La notación compacta del programa “P” puede ser expandida como sigue:
Max z = =c’x
Sujeto a:
<= = b
Xj>= 0 ; j = 1, 2, ….., n
Max. Z = C1 X1 + C2X2
Xj >= 0; j= 1,2,……….., n
Min. w = =b’ y
5
Sujeto a:
A´ y = >= = c
Yj>= 0 ; j = 1, 2, ….., m
Sujeto a:
yj >= 0; j= 1,2,………..m
OBSERVACIONES:
6
d) El rol del vector c en el primal, corresponde al rol de b, del programa dual y
viceversa.
7
Tj 1: 1200 Tc, 1.2 m/Tcs, 12gr Au/Tcs, 0.35 Kg/Tcs,1000 Tmd, MEA = 40 $/Tcs
Tj 2: 1000 Tc, 0.8 m/Tcs, 10gr Au/Tcs, 0.40 Kg/Tcs, 800 Tmd, MEA = 30 $/Tcs
Tj 3: 1400 Tc, 0.6 m/Tcs, 15 gr Au/Tcs, 0.45 Kg/Tcs,1100 Tmd, MEA = 50 $/Tcs
Solución:
Tj 1 = X1, Tj 2 = X2, Tj 3 = X3
Restricciones:
1º ) 1.2 m/Tcs* 1200 Tc + 0.8 m/Tcs * 1000 + 0.6 * 1400 = 3080 m
12 X1 + 10 X2 + 15 X3 >= 45400
Sujeto a:
12 X1 + 10 X2 + 15 X3 >= 45400
Max) Z = 40 X1 + 30 X2 + 50 X3 + S1 + S2 + S3 - M 1ג
8
12 X1 + 10 X2 + 15 X3 -S2 + 45400 = 1ג
Base Z X1 X2 X3 S2 S1 S3 λ1 SBF өi
Z 1 -40 -30 -50 0 0 0 M
S1 0 1.2 0.8 0.6 0 1 0 0 3080
λ1 0 12 10 15 -1 0 0 1 45400
S3 0 0.35 0.4 0.45 0 0 1 0 1856
Z 1 -40-12M -30-10M -50-15M M 0 0 0 -45400M
S1 0.000 1.200 0.800 0.600 0.000 1.000 0.000 0.000 3080.000 5133.333
λ1 0.000 12.000 10.000 15.000 -1.000 0.000 0.000 1.000 45400.000 3026.667
S3 0.000 0.350 0.400 0.450 0.000 0.000 1.000 0.000 1856.000 4124.444
Z 1.000 0,000 3,333 0.000 -3.333 0.000 0.000 3,333+M 151333,333
S1 0.000 0.720 0.400 0.000 0.040 1.000 0.000 -0.040 1264.000 31600.000
X3 0.000 0.800 0.667 1.000 -0.067 0.000 0.000 0.067 3026.667 -45400.000
S3 0.000 -0.010 0.100 0.000 0.030 0.000 1.000 -0.030 494.000 16466.667
9
Base Z X1 X2 X3 S2 S1 S3 λ1 SBF өi
Z Anterior 1.000 -40-12M -30-10M -50-15M M 0.000 0.000 0.000 -45400M
Piv 50+15M 0.000 40+12M 33,333+10M 50+15M -(3,333+M) 0.000 0.000 3,333+M 151333,333+45400
Z nuevo 1.000 0,000 3,333 0.000 -3.333 0.000 0.000 3,333+M 151333,333
S1 Anterior 0.000 1.200 0.800 0.600 0.000 1.000 0.000 0.000 3080.000
Piv -0,600 0.000 -0.480 -0.400 -0.600 0.040 0.000 0.000 -0.040 -1816.000
S1 Nuevo 0.000 0.720 0.400 0.000 0.040 1.000 0.000 -0.040 1264.000
S3 Anterio 0.000 0.350 0.400 0.450 0.000 0.000 1.000 0.000 1856.000
Piv -0,450 0.000 -0.360 -0.300 -0.450 0.030 0.000 0.000 -0.030 -1362.000
S3 Nuevo 0.000 -0.010 0.100 0.000 0.030 0.000 1.000 -0.030 494.000
SEGUNDA ITERACION
Base Z X1 X2 X3 S2 S1 S3 λ1 SBF өi
Z 1.000 -1.111 11.110 0.000 0.000 0.000 111.100 M 206216.733
S1 0.000 0.733 0.267 0.000 0.000 1.000 -1.333 0.000 605.333 825.455
X3 0.000 0.778 0.890 1.000 0.000 0.000 2.233 0.000 4129.933 5310.673
S2 0.000 -0.333 3.333 0.000 1.000 0.000 33.333 -1.000 16466.667 -49400.000
Z Anterior 1.000 0,000 3,333 0.000 -3.333 0.000 0.000 3,333+M 151333,333
piv 3,333 0.000 -1.111 11.110 0.000 3.333 0.000 111.100 -3.333 54883.400
Z nuevo 1.000 -1.111 11.110 0.000 0.000 0.000 111.100 M 206216.733
S1 Anterior 0.000 0.720 0.400 0.000 0.040 1.000 0.000 -0.040 1264.000
piv -0,04 0.000 0.013 -0.133 0.000 -0.040 0.000 -1.333 0.040 -658.667
S1 nuevo 0.000 0.733 0.267 0.000 0.000 1.000 -1.333 0.000 605.333
X3 Anterior 0.000 0.800 0.667 1.000 -0.067 0.000 0.000 0.067 3026.667
Piv 0,067 0.000 -0.022 0.223 0.000 0.067 0.000 2.233 -0.067 1103.267
X3 nuevo 0.000 0.778 0.890 1.000 0.000 0.000 2.233 0.000 4129.933
10
TERCERA ITERACION
Base Z X1 X2 X3 S2 S1 S3 λ1 SBF өi
Z 1.000 0.001 11.514 0.000 0.000 1.516 109.079 M 207134.230
X1 0.000 1.000 0.364 0.000 0.000 1.364 -1.818 0.000 825.492
X3 0.000 -0.011 0.603 1.000 0.000 -1.075 3.667 0.000 3479.179
S2 0.000 -0.023 3.446 0.000 1.000 0.423 32.770 -1.000 16722.474
Z Anterior 1.000 -1.111 11.110 0.000 0.000 0.000 111.100 M 206216.733
Piv 1,111 0.000 1.112 0.404 0.000 0.000 1.516 -2.021 0.000 917.497
Z Nuevo 1.000 0.001 11.514 0.000 0.000 1.516 109.079 M 207134.230
X3 Anterior 0.000 0.778 0.890 1.000 0.000 0.000 2.233 0.000 4129.933
Piv -0,778 0.000 -0.788 -0.287 0.000 0.000 -1.075 1.433 0.000 -650.754
X3 Nuevo 0.000 -0.011 0.603 1.000 0.000 -1.075 3.667 0.000 3479.179
S2 Anterior 0.000 -0.333 3.333 0.000 1.000 0.000 33.333 -1.000 16466.667
Piv 0,333 0.000 0.310 0.113 0.000 0.000 0.423 -0.563 0.000 255.807
S2 Nuevo 0.000 -0.023 3.446 0.000 1.000 0.423 32.770 -1.000 16722.474
11
Base Z Y1 Y2 Y3 S1 S2 S3 λ1 λ2 λ3 SOL өi
Z 1 -3080 45400 -1856 0 0 0 M M M 0
λ1 0 1.2 -12 0.35 -1 0 0 1 0 0 40
λ2 0 0.8 -10 0.4 0 -1 0 0 1 0 30
λ3 0 0.6 -15 0.45 0 0 -1 0 0 1 50
Si M = 10000 -5680 8400 -3056
Z 1 -5680 82400.0 -3056 1000 1000 1000 0 0 0 -120000
Z 1 -3080-2,6M 45400+37M -1856-1,2M M M M 0 0 0 -120M
λ1 0 1.200 -12.000 0.350 -1.000 0.000 0.000 1.000 0.000 0.000 40 33.333
λ2 0 0.800 -10.000 0.400 0.000 -1.000 0.000 0.000 1.000 0.000 30 37.500
λ3 0 0.600 -15 0.45 0 0 -1 0 0 1 50 83.333
PRIMERA ITERACION
Base Z Y1 Y2 Y3 S1 S2 S3 λ1 λ2 λ3 Sol өi
77600.00 -1397.67 3682.67
Z 1.00 0.00 25600.00 -1399.33 -3733.33 1000.00 1000.00 4733.33 0.00 0.00 69333.33
Y1 0.00 1.00 -10.00 0.29 -0.83 0.00 0.00 0.83 0.00 0.00 33.33 -40.000
λ2 0.00 -2.00 0.17 0.67 -1.00 0.00 -0.67 1.00 0.00 3.33 5.000
λ3 0.00 0.00 -9.00 0.28 0.50 0.00 -1.00 -0.50 0.00 1.00 30.00 60.000
Z anterior 1.00 -5680.00 82400.00 -3056.00 1000.00 1000.00 1000.00 0.00 0.00 0.00 -120000.00
piv 5680 0.00 5680.00 -56800.00 1656.67 -4733.33 0.00 0.00 4733.33 0.00 0.00 189333.33
Z nuevo 1.00 0.00 25600.00 -1399.33 -3733.33 1000.00 1000.00 4733.33 0.00 0.00 69333.33
0.00 0.80 -10.00 0.40 0.00 -1.00 0.00 0.00 1.00 0.00 30.00
0.00 -0.80 8.00 -0.23 0.67 0.00 0.00 -0.67 0.00 0.00 -26.67
0.00 0.00 -2.00 0.17 0.67 -1.00 0.00 -0.67 1.00 0.00 3.33
0.00 0.60 -15.00 0.45 0.00 0.00 -1.00 0.00 0.00 1.00 50.00
0.00 -0.60 6.00 -0.18 0.50 0.00 0.00 -0.50 0.00 0.00 -20.00
0.00 0.00 -9.00 0.28 0.50 0.00 -1.00 -0.50 0.00 1.00 30.00
SEGUNDA ITERACION
12
Base Z Y1 Y2 Y3 S1 S2 S3 λ1 λ2 λ3 SOL өi
Z 1.00 0.00 14406.60 -466.55 -2.20 -4596.70 1000.00 1002.20 5596.70 0.00 87989.01
Y1 0.00 1.00 -12.50 0.50 0.00 -1.25 0.00 0.00 1.25 0.00 37.50
S1 0.00 0.00 -3.00 0.25 1.00 -1.50 0.00 -1.00 1.50 0.00 5.00
λ3 0.00 0.00 -7.50 0.15 0.00 0.75 -1.00 0.00 -0.75 1.00 27.50
Z anterior 1.00 0.00 25600.00 -1399.33 -3733.33 1000.00 1000.00 4733.33 0.00 0.00 69333.33
piv 3733 0.00 0.00 -11193.40 932.78 3731.13 -5596.70 0.00 -3731.13 5596.70 0.00 18655.67
Z nuevo 1.00 0.00 14406.60 -466.55 -2.20 -4596.70 1000.00 1002.20 5596.70 0.00 87989.01
0.00 1.00 -10.00 0.29 -0.83 0.00 0.00 0.83 0.00 0.00 33.33
0.00 0.00 -2.50 0.21 0.83 -1.25 0.00 -0.83 1.25 0.00 4.16
0.00 1.00 -12.50 0.50 0.00 -1.25 0.00 0.00 1.25 0.00 37.50
0.00 0.00 -9.00 0.28 0.50 0.00 -1.00 -0.50 0.00 1.00 30.00
0.00 0.00 1.50 -0.12 -0.50 0.75 0.00 0.50 -0.75 0.00 -2.50
0.00 0.00 -7.50 0.15 0.00 0.75 -1.00 0.00 -0.75 1.00 27.50
TERCERA ITERACION
Base Z Y1 Y2 Y3 S1 S2 S3 λ1 λ2 λ3 SOL өi
Z 1.00 0.00 -31565.02 453.17 -0.67 -2.30 -5128.94 1000.67 1002.30 6128.94 256542.40
Y1 0.00 1.00 -24.99 0.75 0.00 0.00 -1.67 0.00 0.00 1.67 83.29 -249760.18
S1 0.00 0.00 -17.99 0.55 1.00 0.00 -2.00 -1.00 0.00 2.00 59.96 59.96
S2 0.00 0.00 -10.00 0.20 0.00 1.00 -1.33 0.00 -1.00 1.33 36.67 110060.00
Z anterior 1.00 0.00 14406.60 -466.55 -2.20 -4596.70 1000.00 1002.20 5596.70 0.00 87989.01
piv 4596,702 0.00 0.00 -45971.61 919.72 1.53 4594.40 -6128.94 -1.53 -4594.40 6128.94 168553.40
Z nuevo 1.00 0.00 -31565.02 453.17 -0.67 -2.30 -5128.94 1000.67 1002.30 6128.94 256542.40
0.00 1.00 -12.50 0.50 0.00 -1.25 0.00 0.00 1.25 0.00 37.50
0.00 0.00 -12.49 0.25 0.00 1.25 -1.67 0.00 -1.25 1.67 45.80
0.00 1.00 -24.99 0.75 0.00 0.00 -1.67 0.00 0.00 1.67 83.29
0.00 0.00 -3.00 0.25 1.00 -1.50 0.00 -1.00 1.50 0.00 5.00
0.00 0.00 -14.99 0.30 0.00 1.50 -2.00 0.00 -1.50 2.00 54.97
0.00 0.00 -17.99 0.55 1.00 0.00 -2.00 -1.00 0.00 2.00 59.96
13
CUARTA ITERACION
Base Z Y1 Y2 Y3 S1 S2 S3 λ1 λ2 λ3 SOL өi
Z 1.00 0.00 -16742.11 0.16 -824.62 -1.47 -3482.13 1824.62 1001.47 4482.13 207135.45
Y1 0.00 1.00 -0.46 0.00 -1.36 0.00 1.06 1.36 0.00 -1.06 1.53
Y3 0.00 0.00 -32.71 1.00 1.82 0.00 -3.63 -1.82 0.00 3.63 109.02
S2 0.00 0.00 -3.46 0.00 -0.36 1.00 -0.61 0.36 -1.00 0.61 14.86
Z anterior 1.00 0.00 -31565.02 453.17 -0.67 -2.30 -5128.94 1000.67 1002.30 6128.94 256542.40
piv -453,174 0.00 0.00 14822.91 -453.01 -823.95 0.82 1646.81 823.95 -0.82 -1646.81 -49406.95
Z nuevo 1.00 0.00 -16742.11 0.16 -824.62 -1.47 -3482.13 1824.62 1001.47 4482.13 207135.45
0.00 1.00 -24.99 0.75 0.00 0.00 -1.67 0.00 0.00 1.67 83.29
0.00 0.00 24.53 -0.75 -1.36 0.00 2.73 1.36 0.00 -2.73 -81.77
0.00 1.00 -0.46 0.00 -1.36 0.00 1.06 1.36 0.00 -1.06 1.53
0.00 0.00 -10.00 0.20 0.00 1.00 -1.33 0.00 -1.00 1.33 36.67
0.00 0.00 6.54 -0.20 -0.36 0.00 0.73 0.36 0.00 -0.73 -21.80
0.00 0.00 -3.46 0.00 -0.36 1.00 -0.61 0.36 -1.00 0.61 14.86
14
Hallando el dual del problema:
Max) Z = 40 X1 + 30 X2 + 50 X3
Sujeto a:
Reconociendo A, b, c.
A = b= c=
Min ( w) = b’y =
Sujeto a:
A’y=
y1,y2, y3 >= 0
Sujeto a:
15
Min (w) = 3080y1 -45400y2 + 1856y3 + S1 + S2 +S3 +M 1 ג+M 2 ג+M 3ג
16
CONCLUSIONES
4. Tanto la solución primal como la dual pueden ser resueltas por método
grafico o utilizando el tablero simplex.
17
RECOMENDACIONES
18
BIBLIOGRAFIA:
INVESTIGACIÓN DE OPERACIONES
Carlos Agreda T.
Febrero 1994
INVETIGACION DE OPERACIONES
Eduardo Raffo Lecca
Lima 1999
19