Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INVESTIGACIÓN DE
OPERACIONES
BENEMÉRITA UNIVERSIDAD AUTÓNOMA DE PUEBLA
FACULTAD DE INGENIERÍA QUÍMICA
AGOSTO 2021
Índice general
1. Introducción 1
1.4. TAREA 1 . . . . . . . . . . . . . . . . . . . . . 21
2. Método simplex 23
I
II ÍNDICE GENERAL
2.3. TAREA 2 . . . . . . . . . . . . . . . . . . . . . 55
2.5. TAREA 3 . . . . . . . . . . . . . . . . . . . . . 69
2.7. TAREA 4 . . . . . . . . . . . . . . . . . . . . . 84
3. Dualidad 87
3.2. TAREA 5 . . . . . . . . . . . . . . . . . . . . . 98
4. El problema de transporte 99
Introducción
1
2 CAPÍTULO 1. INTRODUCCIÓN
Max Z = c1 x1 + c2 x2 + ... + cn xn
sujeto a
a11 x1 + a12 x2 + ... ... + a1n xn ≤ b1
a21 x1 + a22 x2 + ... ... + a2n xn ≤ b2
... ...
am1 x1 + am2 x2 + ... ... + amn xn ≤ bm
xi ≥ 0
Optimizar Z = c1 x1 + c2 x2 + ... + cn xn
sujeto a
a11 x1 + a12 x2 + ... ... + a1n xn ∗ b1
a21 x1 + a22 x2 + ... ... + a2n xn ∗ b2
... ...
am1 x1 + am2 x2 + ... ... + amn xn ∗ bm
ax + by ≤ c.
ax + by = c
ax + by = c
Región factible
16
14
10
8
y
6 (x0,y0)
0
0 2 4 6 8 10 12
x
Solución.
10 CAPÍTULO 1. INTRODUCCIÓN
16−(4/3) x
16
14
12
10
0
0 2 4 6 8 10 12
x
Figura 1.2: L1 : 4x + 3y = 48
1.2. MÉTODO GRÁFICO 11
Región factible
16
14
10
8
y
0
0 2 4 6 8 10 12
x
12−(3/5) x
12
10
0
0 5 10 15 20
x
Figura 1.4: L2 : 3x + 5y = 60
1.2. MÉTODO GRÁFICO 13
Región factible
12
10
6
y
0
0 5 10 15 20
x
x+0 y=9
16
14
12
10
8
y
0
0 5 10 15 20
x
Figura 1.6: L3 : x = 9
1.2. MÉTODO GRÁFICO 15
Región factible
16
14
12
10
8
y
0
0 1 2 3 4 5 6 7 8 9
x
x+0 y=9
16
4x+3y=48
3x+5y=60
14
x=9
12
10
8
y
0
0 5 10 15 20
x
Región factible
16
4x+3y=48
3x+5y=60
14
x=9
12
10
8
y
2 REGIÓN FACTIBLE
0
0 5 10 15 20
x
4x + 3y = 48
3x + 5y = 60
60 96
que al resolverlo nos da x = 11 , y = 11 , por tanto V3 =
( 60 96
11 , 11 ).
Hallemos las ccordenadas de V4 resolviendo el siste-
ma lineal:
4x + 3y = 48
x = 9
que al resolverlo nos da x = 9, y = 4, por tanto V4 =
(9, 4).
Por último evaluemos la función objetivo Z = 40x +
20y en los vértices descritos:
1. https://1drv.ms/v/s!AqiejG_xUCiqjHIIPKNJt57m_r5i?
e=n3Ze6U
1.4. TAREA 1
1. Una compañía posee dos minas: la mina A produce
cada día 1 tonelada de hierro de alta calidad, 3 tone-
ladas de calidad media y 5 de baja calidad. La mina B
produce cada día 2 toneladas de cada una de las tres
calidades. La compañía necesita al menos 80 tonela-
das de mineral de alta calidad, 160 toneladas de cali-
dad media y 200 de baja calidad. Sabiendo que el costo
diario de la operación es de 2000 euros en cada mina
¿cuántos días debe trabajar cada mina para que el cos-
to sea mínimo?. Resuelva el problema por el método
gráfico.
Método simplex
23
24 CAPÍTULO 2. MÉTODO SIMPLEX
Min Z = c1 x1 + c2 x2 + ... + cn xn
sujeto a
a11 x1 + a12 x2 + ... ... + a1n xn ∗ b1
a21 x1 + a22 x2 + ... ... + a2n xn ∗ b2
... ...
am1 x1 + am2 x2 + ... ... + amn xn ∗ bm
y
o es de la forma
ai1 x1 + ai2 x2 + ... + ain xn = bi
Max Z = c1 x1 + c2 x2 + ... + cn xn
sujeto a
a11 x1 + a12 x2 + ... ... + a1n xn ≤ b1
a21 x1 + a22 x2 + ... ... + a2n xn ≤ b2
... ...
am1 x1 + am2 x2 + ... ... + amn xn ≤ bm
xi ≥ 0
Max Z = c1 x1 + c2 x2 + ... + cn xn
sujeto a
a11 x1 + ... + a1n xn + h1 = b1
a21 x1 + ... + a2n xn + h1 = b2
... ...
am1 x1 + ... + amn xn + hm = bm
xi ≥ 0
Max Z − c1 x1 − c2 x2 − ... − cn xn = 0
sujeto a
a11 x1 + ... + a1n xn + h1 = b1
a21 x1 + ... + a2n xn + h2 = b2
... ...
am1 x1 + ... + amn xn + hm = bm
xi ≥ 0
Z x y h1 h2 sol.
v.b 1 −5000 −3000 0 0 0
h1 0 3 5 1 0 15
h2 0 5 2 0 1 10
Z x y h1 h2 sol.
v.b 1 −5000 −3000 0 0 0
h1 0 3 5 1 0 15
2 1
x 0 1 5 0 5 2
R Z ← R Z + 5000R x ,
2.1. MÉTODO SIMPLEX CANÓNICO 33
h1 0 3 5 1 0 15
2 1
x 0 1 5 0 5 2
19
h1 0 0 5 1 − 35 9
2 1
x 0 1 5 0 5 2
Z x y h1 h2 sol.
v.b 1 0 −1000 0 1000 10,000
5 3 45
y 0 0 1 19 − 19 19
2 1
x 0 1 5 0 5 2
R Z ← R Z + 1000Ry
y
2
R x ← R x − Ry
5
se obtiene
2.1. MÉTODO SIMPLEX CANÓNICO 35
Z x y h1 h2 sol.
5000 16,000 235,000
v.b 1 0 0 19 19 19
5 3 45
y 0 0 1 19 − 19 19
2 5 20
x 0 1 0 − 19 19 19
20 45
x= = 1.052, y= = 2.368
19 19
Cuyo valor en la función objetivo es
235, 000
Z= = 12, 368.42
19
Por lo tanto, el valor de W es
W = − Z = −12, 368.42
https://1drv.ms/v/s!AqiejG_xUCiqjHO4syoiPl6_SaJ7?
e=td8POL
38 CAPÍTULO 2. MÉTODO SIMPLEX
Max Z − 3x − 2y = 0
sujeto a
x + y + h1 = 6
2x − y + h2 = 0
x + h3 = 2
x, y, h1 , h2 , h3 ≥ 0
Z x y h1 h2 h3 Sol.
v.b. 1 -3 -2 0 0 0 0
h1 0 1 1 1 0 0 6
h2 0 2 -1 0 1 0 0
h3 0 1 0 0 0 1 2
Z x y h1 h2 h3 Sol.
v.b. 1 0 − 72 0 3
2 0 0
3
h1 0 0 2 1 − 12 0 6
x 0 1 - 12 0 1
2 0 0
1
h3 0 0 2 0 - 12 1 2
Z h1 x h3 y h2 Sol.
v.b. 1 0 0 0 − 72 3
2 0
3
h1 0 1 0 0 2 − 12 6
x 0 0 1 0 − 12 1
2 0
1
h3 0 0 0 1 2 − 12 2
2. Formamos el conjunto de variables que son candida-
tos a ser variables de salida, es decir, en nuestro caso
el conjunto,
{ h1 , h3 }
3. Se considera la variable de entrada, en nuestro caso es
y, y se elige el mínimo del conjunto de cocientes obte-
nidos al dividir cada elemento de la primera columna
básica (los valores en la función objetivo no partici-
pan) entre los respectivos elementos de la columna de
entrada, sólo participando en estos cocientes los ele-
mentos de la primera columna que corresponden a las
filas de las variables que son candidatos a variables de
salida. Si el mínimo es singular, es decir, sólo se logra
en un cociente, entonces, el cociente que describa el
mínimo señalará la variable de salida. Si el mínimo no
es singular, entonces seguimos el paso 4.
En nuestro caso, tenemos:
!
1 0 2
mı́n 3 , 1 = mı́n ,0 = 0
2 2
3
Z h1 x h3 y h2 Sol.
v.b. 1 0 0 0 − 72 3
2 0
3
h1 0 1 0 0 2 − 12 6
x 0 0 1 0 − 21 1
2 0
y 0 0 0 2 1 -1 4
Z h1 x h3 y h2 Sol.
v.b. 1 0 0 7 0 -2 14
h1 0 1 0 -3 0 1 0
x 0 0 1 1 0 0 2
y 0 0 0 2 1 -1 4
Z h1 x h3 y h2 Sol.
v.b. 1 2 0 1 0 0 14
h2 0 1 0 -3 0 1 0
x 0 0 1 1 0 0 2
y 0 1 0 -1 1 0 4
x = 2, y = 4, Z = 14.
Max Z = 3x + 9y
sujeto a
x + 4y ≤ 8
x + 2y ≤ 4
x, y ≥ 0
2.2. CASOS ESPECIALES DEL MÉTODO SIMPLEX 45
Max Z = 4x + 4y
sujeto a
−2x + 2y ≤ 2
− x + 2y ≤ 4
x, y ≥ 0
Max Z = 4x + 4y
sujeto a
−2x + 2y + h1 = 2
− x + 2y + h2 = 4
x, y, h1 , h2 ≥ 0
46 CAPÍTULO 2. MÉTODO SIMPLEX
Max Z − 4x − 4y = 0
sujeto a
−2x + 2y + h1 = 2
− x + 2y + h2 = 4
x, y, h1 , h2 ≥ 0
Z x y h1 h2 sol.
v.b 1 -4 -4 0 0 0
h1 0 -2 2 1 0 2
h2 0 -1 2 0 1 4
Z x y h1 h2 sol.
v.b 1 -4 -4 0 0 0
h1 0 -2 2 1 0 2
h2 0 -1 2 0 1 4
Z x y h1 h2 sol.
v.b 1 -4 -4 0 0 0
1
h1 0 -1 1 2 0 1
h2 0 -1 2 0 1 4
Z x y h1 h2 sol.
v.b 1 -8 0 2 0 4
1
y 0 -1 1 2 0 1
h2 0 1 0 -1 1 2
Z x y h1 h2 sol.
v.b 1 -8 0 2 0 4
1
y 0 -1 1 2 0 1
x 0 1 0 -1 1 2
Z x y h1 h2 sol.
v.b 1 0 0 -6 8 20
y 0 0 1 - 12 1 3
x 0 1 0 -1 1 2
Max Z = 2x + y
sujeto a
x − y ≤ 10
2x ≤ 40
x, y ≥ 0
50 CAPÍTULO 2. MÉTODO SIMPLEX
Max Z = 5x + 2y
sujeto a
6x + 10y + h1 = 30
10x + 4y + h2 = 20
x, y, h1 , h2 ≥ 0
Max Z − 5x − 2y = 0
sujeto a
6x + 10y + h1 = 30
10x + 4y + h2 = 20
x, y, h1 , h2 ≥ 0
Z x y h1 h2 sol.
v.b 1 -5 -2 0 0 0
h1 0 6 10 1 0 30
h2 0 10 4 0 1 20
Z x y h1 h2 sol.
v.b 1 -5 -2 0 0 0
h1 0 6 10 1 0 30
2 1
x 0 1 5 0 10 2
Z x y h1 h2 sol.
1
v.b 1 0 0 0 2 10
38
h1 0 0 5 1 − 35 18
2 1
x 0 1 5 0 10 2
Z x y h1 h2 sol.
1
v.b 1 0 0 0 2 10
5 30 90 .
y 0 0 1 38 − 380 38
1 125 20
x 0 1 0 - 19 950 19
La nueva solución es
20 90 45
x= , y= = , Z = 10.
19 38 19
Max Z = 2x + 4y
sujeto a
x + 2y ≤ 5
x+y ≤ 4
x, y ≥ 0
2.3. TAREA 2 55
2.3. TAREA 2
Max Z = c1 x1 + c2 x2 + ... + cn xn
sujeto a
a11 x1 + a12 x2 + ... ... + a1n xn ≤ b1
a21 x1 + a22 x2 + ... ... + a2n xn ≤ b2
... ...
am1 x1 + am2 x2 + ... ... + amn xn ≤ bm
xi ≥ 0
Max W = 3x − 5y
sujeto a
x + h1 = 4
y + h2 = 6
3x + 2y − e = 18
x, y, h1 , h2 , e ≥ 0
Max W = 3x − 5y
sujeto a
x + h1 = 4
y + h2 = 6
3x + 2y − e + R = 18
x, y, h1 , h2 , e, R ≥ 0
Max W − 3x + 5y + RM = 0
sujeto a
x + h1 = 4
y + h2 = 6
3x + 2y − e + R = 18
x, y, h1 , h2 , e, R ≥ 0
60 CAPÍTULO 2. MÉTODO SIMPLEX
W x y h1 h2 e R sol.
v.b. 1 -3 5 0 0 0 M 0
h1 0 1 0 1 0 0 0 4
h2 0 0 1 0 1 0 0 6
R 0 3 2 0 0 -1 1 18
RW ← RW − MR R
2.4. MÉTODO DE PENALIZACIÓN 61
W x y h1 h2 e R sol.
v.b. 1 -3-3M 5-2M 0 0 M 0 -18M
h1 0 1 0 1 0 0 0 4
h2 0 0 1 0 1 0 0 6
R 0 3 2 0 0 -1 1 18
8. Suponemos que la constante M positiva es un valor
extremadamente grande (De aquí el nombre del méto-
do de la grán M), y repetimos los pasos del 5 − 8 (ope-
raciones básicas del método simplex canónico), descri-
tos en el algoritmo canónico, hasta que se cumplan las
condiciones de optimalidad, es decir, hasta que todos
los coeficientes del renglón de la función objetivo (no
cosiderando el valor de la solución) sean no negativos,
o sea ≥ 0. Si en esta última tabla todas las variables
artificiales son ceros, entonces el PPL original tiene
solución óptima, que se obtiene asignando a cada va-
riable básica el valor del coeficiente de restricción que
está en su fila; y a cada variable que no sea básica se le
asignará el valor cero. El valor de la función objetivo
será el valor de la solución (sol.). Si alguna variable
artificial es positiva entonces el PPL original no tiene
solución.
Realicemos los pasos mensionados para nuestro caso
particular:
a) En nuestro ejemplo como M es considerada posi-
tiva muy grande, entonces el valor −3 − 3M es el
valor más negativo, por tanto la variable de en-
trada es la x. Para señalar la variable de salida
62 CAPÍTULO 2. MÉTODO SIMPLEX
hacemos
4 18
min , = min {4, 6} = 4
1 3
W x y h1 h2 e R sol.
v.b. 1 -3-3M 5-2M 0 0 M 0 -18M
x 0 1 0 1 0 0 0 4
h2 0 0 1 0 1 0 0 6
R 0 3 2 0 0 -1 1 18
RW ← RW + (3 + 3M ) R x
R R ← R R − 3R x
se tiene
2.4. MÉTODO DE PENALIZACIÓN 63
W x y h1 h2 e R sol.
v.b. 1 0 5-2M 3+3M 0 M 0 12-6M
x 0 1 0 1 0 0 0 4
h2 0 0 1 0 1 0 0 6
R 0 0 2 -3 0 -1 1 6
c) Como M es positiva considerada muy grande, en-
tonces la constante 5 − 2M es la más negativa,
por tanto la variable de entrada es y. Para hallar
la variable de salida hacemos
6 6
min , = min{6, 3} = 3
1 2
lo cual nos señala que la variable de salida es R.
Haciendo los cambios de variables y pivoteando
(haciendo R R ← 12 R R ) tenemos la tabla siguiente:
W x y h1 h2 e R sol.
v.b. 1 0 5-2M 3+3M 0 M 0 12-6M
x 0 1 0 1 0 0 0 4
h2 0 0 1 0 1 0 0 6
y 0 0 1 - 32 0 - 12 1
2 3
d) Haciendo vectores unitarios a la columna del pi-
vote con las operaciones
RW ← RW + (−5 + 2M) Ry
64 CAPÍTULO 2. MÉTODO SIMPLEX
y
Rh2 ← Rh2 − 1Ry
obtenemos
W x y h1 h2 e R sol.
21 5
v.b. 1 0 0 2 0 2 M- 25 -3
x 0 1 0 1 0 0 0 4
3 1
h2 0 0 0 2 1 2 - 21 3
y 0 0 1 - 32 0 - 21 1
2 3
Z = 3, x = 4, y = 3
2.4. MÉTODO DE PENALIZACIÓN 65
1. https://correobuap-my.sharepoint.com/personal/
josel_palacios_correo_buap_mx/Documents/Videos%
20de%20investigaci%C3%B3n%20de%20operaciones/EJEMPLO%
20M%C3%89TODO%20DE%20PENALIZACI%C3%93N.mp4
2. https://www.youtube.com/watch?v=eTMJDV6QQFs&feature=
youtu.be
https://www.youtube.com/watch?v=zclWTT7qfvc&feature=
youtu.be
1.
Min Z = 4x + y
sujeto a
−3x − y = −3
4x + 3y ≥ 6
− x − 2y ≥ −4
x, y ≥ 0
2.5. TAREA 3
Fase 1
forma
Max T = −4x − y
sujeto a
3x + y = 3
4x + 3y ≥ 6
x + 2y ≤ 4
x, y ≥ 0
así que el algoritmo de dos fases es aplicable.
Max T = −4x − y
sujeto a
3x + y + R1 = 3
4x + 3y − e + R2 = 6
x + 2y + h = 4
x, y, h, e, R1 , R2 ≥ 0
2.6. MÉTODO DE DOBLE FASE 73
Max T + 4x + y = 0
sujeto a
3x + y + R1 = 3
4x + 3y − e + R2 = 6
x + 2y + h = 4
x, y, h, e, R1 , R2 ≥ 0
Min S = R1 + R2
sujeto a
3x + y + R1 = 3
4x + 3y − e + R2 = 6
x + 2y + h = 4
x, y, h, e, R1 , R2 ≥ 0
Max P + R1 + R2 = 0
sujeto a
3x + y + R1 = 3
4x + 3y − e + R2 = 6
x + 2y + h = 4
x, y, h, e, R1 , R2 ≥ 0
8. Hacer una tabla (como de costumbre) con los coefi-
cientes del PPL anterior. Las variables básicas en esta
primera tabla serán las variables de holgura y artifi-
ciales según el orden en que se fueron agregando en
los pasos anteriores (en las siguientes tablas pueden
entrar a variables básicas cualquier variable de deci-
sión, de holgura, exceso o artificial, siempre y cuando
se satisfagan las condiciones de variable de entrada).
P x y h e R1 R2 sol.
v.b. 1 0 0 0 0 1 1 0
R1 0 3 1 0 0 1 0 3
R2 0 4 3 0 -1 0 1 6
h 0 1 2 1 0 0 0 4
P x y h e R1 R2 sol.
v.b. 1 -3 -1 0 0 0 1 -3
R1 0 3 1 0 0 1 0 3
R2 0 4 3 0 -1 0 1 6
h 0 1 2 1 0 0 0 4
P x y h e R1 R2 sol.
v.b. 1 -7 -4 0 1 0 0 -9
R1 0 3 1 0 0 1 0 3
R2 0 4 3 0 -1 0 1 6
h 0 1 2 1 0 0 0 4
P x y h e R1 R2 sol.
v.b. 1 -7 -4 0 1 0 0 -9
1 1
x 0 1 3 0 0 3 0 1
R2 0 4 3 0 -1 0 1 6
h 0 1 2 1 0 0 0 4
1 1
x 0 1 3 0 0 3 0 1
5
R2 0 0 3 0 -1 - 34 1 2
5
h 0 0 3 1 0 - 31 0 3
2.6. MÉTODO DE DOBLE FASE 77
1 1
x 0 1 3 0 0 3 0 1
y 0 0 1 0 - 35 - 45 3
5
6
5
5
h 0 0 3 1 0 - 13 0 3
d) Hacemos vector unitario a la columna de y. Para
hacer esto aplicamos las operaciones
5 1 5
R P ← R P + Ry , R x ← R x − Ry , Rh ← Rh − Ry
3 3 3
P x y h e R1 R2 sol.
v.b. 1 0 0 0 0 1 1 0
1 3
x 0 1 0 0 5 5 - 15 3
5
y 0 0 1 0 - 35 - 54 3
5
6
5
h 0 0 0 1 1 1 -1 1
78 CAPÍTULO 2. MÉTODO SIMPLEX
Fase 2
T x y h e sol.
v.b. 1 4 1 0 0 0
1 3
x 0 1 0 0 5 5
y 0 0 1 0 - 53 6
5
h 0 0 0 1 1 1
1 3
x 0 1 0 0 5 5
y 0 0 1 0 - 35 6
5
h 0 0 0 1 1 1
y segundo con la operación
R T ← R T − Ry
T x y h e sol.
v.b. 1 0 0 0 - 15 - 18
5
1 3
x 0 1 0 0 5 5
y 0 0 1 0 - 35 6
5
h 0 0 0 1 1 1
3. Se ejecutan repetidamente las operaciones básicas del
método simplex canónico, es decir, variable de entra-
da, variable de salida, pivoteo, vectores unitarios, has-
ta obtener todos los coeficientes de la función objetivo
mayores o iguales a cero.
80 CAPÍTULO 2. MÉTODO SIMPLEX
1 3
x 0 1 0 0 5 5
y 0 0 1 0 - 53 6
5
e 0 0 0 1 1 1
x 0 1 0 - 15 0 2
5
3 9
y 0 0 1 5 0 5
e 0 0 0 1 1 1
2.6. MÉTODO DE DOBLE FASE 81
2 9 17
x = ,y = ,Z =
5 5 5
82 CAPÍTULO 2. MÉTODO SIMPLEX
Ejercicios 2.6.1
Solución.
1. https://www.youtube.com/watch?v=hUyReon5jFo&feature=
youtu.be
2. https://www.youtube.com/watch?v=rMShs6pLqko&feature=
youtu.be
2.7. TAREA 4
Dualidad
87
88 CAPÍTULO 3. DUALIDAD
Max Z = cX
sujeto a
AX ≤ b
X≥0
Min G = bt Y
sujeto a
At Y ≥ ct
Y≥0
Es el PPL
Min G = 4y1 + 6y2 + 18y3
sujeto a
1y1 + 0y2 + 3y3 ≥ 3
0y1 + 1y2 + 2y3 ≥ −5
y1 , y2 , y3 ≥ 0
Z = cX ∗ = bt Y ∗ = G
Max W = −2x − y
sujeto a
3x + y ≥ 3
4x + 3y ≥ 6
x + 2y ≥ 3
x, y ≥ 0
y
ai1 x1 + ai2 x2 + ... + ain xn ≥ bi
En nuestro caso no hay este tipo de restricciones
e1 0 -3 -1 1 0 0 -3
e2 0 -4 -3 0 1 0 -6
e3 0 -1 -2 0 0 1 -3
94 CAPÍTULO 3. DUALIDAD
W x y e1 e2 e3 sol.
v.b. 1 2 1 0 0 0 0
e1 0 -3 -1 1 0 0 -3
4
y 0 3 1 0 - 31 0 2
e3 0 -1 -2 0 0 1 -3
se obtiene la tabla
W x y e1 e2 e3 sol.
2 1
v.b. 1 3 0 0 3 0 -2
e1 0 - 53 0 1 - 31 0 -1
4
y 0 3 1 0 - 31 0 2
5
e3 0 3 0 0 - 32 1 1
W x y e1 e2 e3 sol.
2 1
v.b. 1 3 0 0 3 0 -2
x 0 1 0 - 35 1
5 0 3
5
4
y 0 3 1 0 - 13 0 2
5
e3 0 3 0 0 - 23 1 1
2 4 5
RW ← RW − R x , R y ← R y − R x , R e3 ← R e3 − R x
3 3 3
3.1. MÉTODO SIMPLEX DUAL 97
W x y e1 e2 e3 sol.
2 1
v.b. 1 0 0 5 5 0 - 12
5
x 0 1 0 - 35 1
5 0 3
5
4
y 0 0 1 5 - 35 0 6
5
e3 0 0 0 1 -1 1 0
3. Página 237. 12
4. Página 238. 18
98 CAPÍTULO 3. DUALIDAD
a)
Min Z = 4x + y
sujeto a
−3x − y = −3
4x + 3y ≥ 6
− x − 2y ≥ −4
x, y ≥ 0
b)
Min Z = 500x + 600y
sujeto a
x + y ≥ 80
−25x − 30y ≥ −1500
x, y ≥ 0
3.2. TAREA 5
1. Problema 12
2. Problema 13
3. Problema 14
El problema de transporte
99
100 CAPÍTULO 4. EL PROBLEMA DE TRANSPORTE
Destino
1 2 ... n Ofertas
1 c11 c12 ... c1n a1
2 c21 c22 ... c2n a2
.. .. .. .. ..
Orígen . . . ... . .
...
Destino
1 2 ... n Ofertas
1 x11 x12 ... x1n a1
2 x21 x22 ... x2n a2
.. .. .. .. ..
Orígen . . . ... . .
...
Dest.
1 2 ... n n+1 Ofertas
1 c11 c12 ... c1n 0 a1
2 c21 c22 ... c2n 0 a2
.. .. .. .. .. ..
Oríg. . . . ... . . .
...
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 19 200
Deman 30 40 70 40 60
Des
1 2 3 4 5 6 Oferta
1 20 19 14 21 16 0 40
Ori 2 15 20 13 19 16 0 60
3 18 15 18 20 19 0 200
Deman 30 40 70 40 60 60
Destino
1 2 ... n Ofertas
1 c11 c12 ... c1n a1
2 c21 c22 ... c2n a2
.. .. .. .. ..
Orígen . . . ... . .
...
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 19 90
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 19 90
4 0 0 0 0 0 50
Deman 30 40 70 40 60
D
1 2 3 4 5 Of.
1 30→ 10↓ 40
O 2 30→ 30↓ 60
3 40→ 40→ 10↓ 90
4 50 50
D 30 40 70 40 60
D
1 2 3 4 5 Of.
1 30→ 10↓ 40
O 2 30→ 30↓ 60
3 40→ 40→ 10↓ 90
4 50 50
D 30 40 70 40 60
1. Balancear el PT.
x11 = mı́n{ a1 , b1 }
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 M 90
Deman 30 40 70 40 60
Solución.
1. Se balancea el PT.
Nuestro PT ya balanceado queda de la siguiente ma-
nera:
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 M 90
4 0 0 0 0 0 50
Deman 30 40 70 40 60
Dest.
1 2 3 4 5 Ofert.
1 30 40
Oríg. 2 60
3 90
4 50
Deman. 30 40 70 40 60
ab1 = a1 − x11 = 40 − 30 = 10
bb1 = b1 − x11 = 30 − 30 = 0
La nueva tabla queda:
D
1 2 3 4 5 Of.
1 30→ 10
O 2 60
3 90
4 50
D 0 40 70 40 60
D
1 2 3 4 5 Of.
1 30→ 10 10
O 2 60
3 90
4 50
D 0 40 70 40 60
b1 = ab1 − x12 = 10 − 10 = 0
ab
bb2 = b2 − x12 = 40 − 10 = 30
La nueva tabla queda:
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 60
3 90
4 50
D 0 30 70 40 60
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30 60
3 90
4 50
D 0 30 70 40 60
ab2 = a2 − x22 = 60 − 30 = 30
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30
3 90
4 50
D 0 0 70 40 60
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30 30
3 90
4 50
D 0 0 70 40 60
b2 = ab2 − x23 = 30 − 30 = 0
ab
bb3 = b3 − x23 = 70 − 30 = 40
La nueva tabla queda:
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30 30↓ 0
3 90
4 50
D 0 0 40 40 60
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30↓ 0
3 40 90
4 50
D 0 0 40 40 60
ab3 = a3 − x33 = 90 − 40 = 50
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30↓ 0
3 40→ 50
4 50
D 0 0 0 40 60
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30↓ 0
3 40→ 40 50
4 50
D 0 0 0 40 60
b3 = ab3 − x34 = 50 − 40 = 10
ab
bb4 = b4 − x34 = 40 − 40 = 0
La nueva tabla queda:
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30↓ 0
3 40→ 40→ 10
4 50
D 0 0 0 0 60
x35 = mı́n{ ab
b3 , b5 } = mı́n{10, 60} = 10
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30↓ 0
3 40→ 40→ 10 10
4 50
D 0 0 0 0 60
b3 − x35 = 10 − 10 = 0
b3 = ab
ab
b
bb5 = b5 − x35 = 60 − 10 = 50
La nueva tabla queda:
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30↓ 0
3 40→ 40→ 10↓ 0
4 50
D 0 0 0 0 50
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30↓ 0
3 40→ 40→ 10↓ 0
4 50 50
D 0 0 0 0 50
El ajuste de la nueva oferta y demanda es:
D
1 2 3 4 5 Of.
1 30→ 10↓ 0
O 2 30→ 30↓ 0
3 40→ 40→ 10↓ 0
4 50 0
D 0 0 0 0 0
D
1 2 3 4 5 Of.
1 30→ 10↓ 40
O 2 30→ 30↓ 60
3 40→ 40→ 10↓ 90
4 50 50
D 30 40 70 40 60
4.1. MÉTODO NOROCCIDENTAL 121
4.
Ejemplo 4.7 Halle una solución básica factible del siguiente pro-
blema de transporte por el método de Vogel. El costo M en la posi-
ción (3, 5) es un costo altísimo y significa que en realidad el origen
3 no puede surtir al destino 5. Esta es una manera simbólica de
representar estas imposibilidades.
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 M 90
Deman 30 40 70 40 60
1. Se balancea el PT.
Nuestro PT ya balanceado queda de la siguiente ma-
nera:
124 CAPÍTULO 4. EL PROBLEMA DE TRANSPORTE
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 M 90
4 0 0 0 0 0 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Dif.
1 20 19 14 21 16 2
Ori 2 15 20 13 19 16 2
3 18 15 18 20 M 3
4 0 0 0 0 0 0
Dif. 15 15 13 19 16
Des
1 2 3 4 5 Dif.
1 20 19 14 21 16 2
Ori 2 15 20 13 19 16 2
3 18 15 18 20 M 3
4 0 0 0 0 0 0
Dif. 15 15 13 19 16
Des
1 2 3 4 5 Dif.
1 20 19 14 21 16 2
Ori 2 15 20 13 19 16 2
3 18 15 18 20 M 3
4 0 0 0 0 0 0
Dif. 15 15 13 19 16
ai ← ai − Xij
126 CAPÍTULO 4. EL PROBLEMA DE TRANSPORTE
y
b j ← b j − Xij
.
b) Si la nueva oferta
ai ← ai − Xij = 0
a4 ← a4 − X44 = 50 − 40 = 10
4.2. MÉTODO DE VOGEL 127
y
b4 ← b4 − X44 = 40 − 40 = 0.
Como la nueva demanda
b4 ← b4 − X44 = 40 − 40 = 0
Des
1 2 3 4 5 Oferta
1 0 40
Ori 2 0 60
3 0 90
4 40 10
Deman 30 40 70 0 60
Des
1 2 3 5 Oferta
1 20 19 14 16 40
Ori 2 15 20 13 16 60
3 18 15 18 M 90
4 0 0 0 0 10
Deman 30 40 70 60
Des
1 2 3 5 Dif.
1 20 19 14 16 2
Ori 2 15 20 13 16 2
3 18 15 18 M 3
4 0 0 0 0 0
Dif. 15 15 13 16
Des
1 2 3 5 Dif.
1 20 19 14 16 2
Ori 2 15 20 13 16 2
3 18 15 18 M 3
4 0 0 0 0 0
Dif. 15 15 13 16
Des
1 2 3 5 Dif.
1 20 19 14 16 2
Ori 2 15 20 13 16 2
3 18 15 18 M 3
4 0 0 0 0 0
Dif. 15 15 13 16
a4 ← a4 − X45 = 10 − 10 = 0
y
b5 ← b5 − X45 = 60 − 10 = 50.
Como la nueva oferta
a4 ← a4 − X45 = 0
Des
1 2 3 4 5 Oferta
1 0 40
Ori 2 0 60
3 0 90
4 0 0 0 40 10 0
Deman 30 40 70 0 50
Des
1 2 3 5 Oferta
1 20 19 14 16 40
Ori 2 15 20 13 16 60
3 18 15 18 M 90
Deman 30 40 70 50
Des
1 2 3 5 Dif.
1 20 19 14 16 2
Ori 2 15 20 13 16 2
3 18 15 18 M 3
Dif. 3 4 1 0
Des
1 2 3 5 Dif.
1 20 19 14 16 2
Ori 2 15 20 13 16 2
3 18 15 18 M 3
Dif. 3 4 1 0
Des
1 2 3 5 Dif.
1 20 19 14 16 2
Ori 2 15 20 13 16 2
3 18 15 18 M 3
Dif. 3 4 1 0
a3 ← a3 − X32 = 90 − 40 = 50
y
b2 ← b2 − X32 = 40 − 40 = 0.
Como la nueva demanda
b2 ← b2 − X32 = 0
132 CAPÍTULO 4. EL PROBLEMA DE TRANSPORTE
Des
1 2 3 4 5 Oferta
1 0 0 40
Ori 2 0 0 60
3 40 0 50
4 0 0 0 40 10 0
Deman 30 0 70 0 50
Des Oferta
1 3 5
1 20 14 16 40
Ori 2 15 13 16 60
3 18 18 M 50
Deman 30 70 50
Des Dif
1 3 5
1 20 14 16 2
Ori 2 15 13 16 2
3 18 18 M 0
Dif 3 1 0
Des Dif
1 3 5
1 20 14 16 2
Ori 2 15 13 16 2
3 18 18 M 0
Dif 3 1 0
Des Dif
1 3 5
1 20 14 16 2
Ori 2 15 13 16 2
3 18 18 M 0
Dif 3 1 0
134 CAPÍTULO 4. EL PROBLEMA DE TRANSPORTE
.
Además las nuevas ofertas y demandas son respecti-
vamente:
a2 ← a2 − X21 = 60 − 30 = 30
y
b1 ← b1 − X21 = 30 − 30 = 0.
Como la nueva demanda
b1 ← b1 − X21 = 0
Des
1 2 3 4 5 Oferta
1 0 0 0 40
Ori 2 30 0 0 30
3 0 40 0 50
4 0 0 0 40 10 0
Deman 0 0 70 0 50
Des Oferta
3 5
1 14 16 40
Ori 2 13 16 30
3 18 M 50
Deman 70 50
Des Dif
3 5
1 14 16 2
Ori 2 13 16 3
3 18 M M-18
Dif 1 0
Des Dif
3 5
1 14 16 2
Ori 2 13 16 3
3 18 M M-18
Dif 1 0
Des Dif
3 5
1 14 16 2
Ori 2 13 16 3
3 18 M M-18
Dif 1 0
.
Además las nuevas ofertas y demandas son respecti-
vamente:
a3 ← a3 − X33 = 50 − 50 = 0
y
b3 ← b3 − X33 = 70 − 50 = 20.
Como la nueva oferta
a3 ← a3 − X33 = 0
Des
1 2 3 4 5 Oferta
1 0 0 0 40
Ori 2 30 0 0 30
3 0 40 50 0 0 0
4 0 0 0 40 10 0
Deman 0 0 20 0 50
Des Oferta
3 5
1 14 16 40
Ori 2 13 16 30
Deman 20 50
Des Dif
3 5
1 14 16 2
Ori 2 13 16 3
Dif 1 0
Des Dif
3 5
1 14 16 2
Ori 2 13 16 3
Dif 1 0
Des Dif
3 5
1 14 16 2
Ori 2 13 16 3
Dif 1 0
.
Además las nuevas ofertas y demandas son respecti-
vamente:
a2 ← a2 − X23 = 30 − 20 = 10
y
b3 ← b3 − X23 = 20 − 20 = 0.
Como la nueva demanda
b3 ← b3 − X23 = 0
4.2. MÉTODO DE VOGEL 139
Des
1 2 3 4 5 Oferta
1 0 0 0 0 40
Ori 2 30 0 20 0 10
3 0 40 50 0 0 0
4 0 0 0 40 10 0
Deman 0 0 0 0 50
Des Oferta
5
1 16 40
Ori 2 16 10
Deman 50
Des Dif
5
1 16 16
Ori 2 16 16
Dif 0
Des Dif
5
1 16 16
Ori 2 16 16
Dif 0
Des Dif
5
1 16 16
Ori 2 16 16
Dif 0
.
Además las nuevas ofertas y demandas son respecti-
vamente:
a1 ← a1 − X15 = 40 − 40 = 0
y
b5 ← b5 − X15 = 50 − 40 = 10.
Como la nueva oferta
a1 ← a1 − X15 = 0
Des
1 2 3 4 5 Oferta
1 0 0 0 0 40 0
Ori 2 30 0 20 0 10
3 0 40 50 0 0 0
4 0 0 0 40 10 0
Deman 0 0 0 0 10
Des Oferta
5
Ori 2 16 10
Deman 10
Des
1 2 3 4 5 Oferta
1 0 0 0 0 40 0
Ori 2 30 0 20 0 10 0
3 0 40 50 0 0 0
4 0 0 0 40 10 0
Deman 0 0 0 0 0
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 30 20 10 60
3 40 50 90
4 40 10 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 M 90
Deman 30 40 70 40 60
1. Se balancea el PT.
Nuestro PT ya balanceado queda de la siguiente ma-
nera:
146 CAPÍTULO 4. EL PROBLEMA DE TRANSPORTE
Des
1 2 3 4 5 Oferta
1 20 19 14 21 16 40
Ori 2 15 20 13 19 16 60
3 18 15 18 20 M 90
4 0 0 0 0 0 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 30 20 10 60
3 40 50 90
4 40 10 50
Deman 30 40 70 40 60
3. PRIMERA ITERACIÓN.
Si en la tabla de flujos del paso anterior se obtiene
una solución básica factible degenerada, es decir, si
el número de valores positivos en la tabla es menor
que m + n − 1, entonces, se agregan ceros de forma ar-
bitraria en la tabla de flujos, de tal manera que halla
m + n − 1 elementos.
Nuestro problema tiene una solución básica factible
no degenerada, pues hay exactamente m + n − 1 = 8
valores positivos en dicha tabla.
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 30 20 10 60
3 40 50 90
4 40 10 50
Deman 30 40 70 40 60
1 2 3 4 5
1 16
2 15 13 16
3 15 18
4 0 0
1 2 3 4 5
1 16 u1
2 15 13 16 u2
3 15 18 u3
4 0 0 u4
v1 v2 v3 v4 v5
v4 = 16, v2 = 10.
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 30 20 10 60
3 40 50 90
4 40 10 50
Deman 30 40 70 40 60
1 2 3 4 5
1 20 19 14 21
2 20 19
3 18 20 M
4 0 0 0
(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 4)
y
(3, 1), (3, 4), (3, 5), (4, 1), (4, 2), (4, 3).
Los cálculos son los siguientes (recuerde que M es un
valor arbitrariamente grande positivo):
Como la posición (1, 1) no está en la base, calculamos,
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 30 20 10 60
3 θ 40 50 90
4 40 10 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 30- θ → 20+θ 10 60
↑ ↓
3 θ ←40 ←50-θ 90
4 40 10 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 50 10 60
3 30 40 20 90
4 40 10 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 50 10 60
3 30 40 20 90
4 40 10 50
Deman 30 40 70 40 60
1 2 3 4 5
1 16
2 13 16
3 18 15 18
4 0 0
1 2 3 4 5
1 16 u1
2 13 16 u2
3 18 15 18 u3
4 0 0 u4
v1 v2 v3 v4 v5
ui + v j − Cij = 0
u3 + v1 − C31 = 0 ⇒ v1 = C31 − u3 = 18 − 0 = 18
u3 + v2 − C32 = 0 ⇒ v2 = C32 − u3 = 15 − 0 = 15
u3 + v3 − C33 = 0 ⇒ v3 = C33 − u3 = 18 − 0 = 18,
es decir,
v1 = 18, v2 = 15, v3 = 18.
Con el valor de v3 = 18, se calcula u2 :
es decir, u2 = −5.
Con el valor de u2 = −5, se calcula v5 :
u2 + v5 − C25 = 0 ⇒ v5 = C25 − u2 = 16 − (−5) = 21,
es decir, v5 = 21.
Con el valor de v5 = 21, se calcula u1 :
u1 + v5 − C15 = 0 ⇒ u1 = C15 − v5 = 16 − 21 = −5,
es decir, u1 = −5.
Con el valor de v5 = 21, se calcula u4 :
u4 + v5 − C45 = 0 ⇒ u4 = C45 − v5 = 0 − 21 = −21,
es decir, u4 = −21.
Por último, con el valor de u4 = −21 se calcula v4 :
u4 + v4 − C44 = 0 ⇒ v4 = C44 − u4 = 0 − (−21) = 21.
En resumen, tenemos los valores de las variables dua-
les:
u1 = −5, u2 = −5, u3 = 0, u4 = −21,
y
v1 = 18, v2 = 15, v3 = 18, v4 = 21, v5 = 21.
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 50 10 60
3 30 40 20 90
4 40 10 50
Deman 30 40 70 40 60
1 2 3 4 5
1 20 19 14 21
2 15 20 19
3 20 M
4 0 0 0
(1, 1), (1, 2), (1, 3), (1, 4), (2, 1), (2, 2)
y
(2, 4), (3, 4), (3, 5), (4, 1), (4, 2), (4, 3).
Los cálculos son los siguientes (recuerde que M es un
valor arbitrariamente grande positivo):
Como la posición (1, 1) no está en la base, calculamos,
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 50 10 60
3 30 40 20 θ 90
4 40 10 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 50+θ → → 10-θ 60
↑ ↓
3 30 40 20-θ ←θ 90
↑ ↓
4 40-θ ←10+θ 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 60 60
3 30 40 10 10 90
4 30 20 50
Deman 30 40 70 40 60
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 60 60
3 30 40 10 10 90
4 30 20 50
Deman 30 40 70 40 60
1 2 3 4 5
1 16
2 13
3 18 15 18 20
4 0 0
ui + v j − Cij = 0
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 60 60
3 30 40 10 10 90
4 30 20 50
Deman 30 40 70 40 60
1 2 3 4 5
1 20 19 14 21
2 15 20 19 16
3 M
4 0 0 0
(1, 1), (1, 2), (1, 3), (1, 4), (2, 1), (2, 2)
168 CAPÍTULO 4. EL PROBLEMA DE TRANSPORTE
y
(2, 4), (2, 5), (3, 5), (4, 1), (4, 2), (4, 3).
Los cálculos son los siguientes (recuerde que M es un
valor arbitrariamente grande positivo):
Como la posición (1, 1) no está en la base, calculamos,
Des
1 2 3 4 5 Oferta
1 40 40
Ori 2 60 60
3 30 40 10 10 90
4 30 20 50
Deman 30 40 70 40 60
C = $2, 940
3. Problema degenerado:
https: // correobuap-my. sharepoint. com/ : v: /g/ personal/
josel_ palacios_ correo_ buap_ mx/ EecSpB7qprpHudOQacfX1wIB
d80X-2LJTludKg? e= 6U8UBi
4.4. TAREA 6