Documentos de Académico
Documentos de Profesional
Documentos de Cultura
PROGRAMACIÓN LINEAL
Autores
León, Nicaragua
Ejercicio 1
máx x1 + 2x2
s.a
x1 + x2 ≤ 3
x1 - 2x2 ≥ 0
x1, x2 ≥ 0
Transformando:
máx x1 + 2x2 - Mx5
s.a
x1 + x2 + x3 =3
x1 - 2x2 - x4 + x5 =0
x1,..., x5 ≥ 0
1 2 0 0 -M
CB VB V
x1 x2 x3 x4 x5
0 x3 1 1 1 0 0 3
-M x5 1 -1 0 -1 1 0
(-1)
Z -M 2M 0 M -M 0
3 0
min { , } = 0, sale x5
3 1
1 2 0 0 -M
CB VB V
x1 x2 x3 x4 x5
0 x3 0 3 1 1 -1 3 1 2
( ) ( )+
3 3
1 x1 1 -2 0 -1 1 0
Z 1 -2 0 -1 1 0
C-Z 0 4 0 1 -M-1
máx {0, 4, 1, -M-1} = 4 > 0, entra x2
3
min { } =1, sale x3
3
1 2 0 0 -M
CB VB V
x1 x2 x3 x4 x5
1 1 1
2 x2 0 1 - 1
3 3 3
2 1 1
1 x1 1 0 - 2
3 3 3
4 1 1
Z 1 2 - 4
3 3 3
4 1 1
C-Z 0 0 - - -M+
3 3 3
−4 1 1
máx {0, ,− −M + } = 0
3 3 3
Como 0 no es mayor que 0, por lo que se valora si existen variables artificiales mayores a 0,
al no haber se concluye: PPL con óptimo finito, obteniendo los siguientes resultados:
Valor óptimo: 4
Ejercicio 2
máx 2x1 - x2
s.a.
2x1 + x2 ≥ 4
x1 - x2 ≥ -1
x1, x2 ≥ 0
Se multiplica por (-1) la restricción #2 para cambiar el signo negativo del lado derecho de la
desigualdad; por ende, cambia el sentido de la desigualdad.
Transformando el PPL:
2x1 + x2 - x3 + x5 = 4
-x1 + x2 + x4 = 1
CB VB 2 -1 0 0 -M V
x1 x2 x3 x4 x5
-M x5 2 1 -1 0 1 4
0 x4 -1 1 0 1 0 1
Z -2M -M M 0 -M -4M
C-Z 2 + 2M -1 + M -M 0 0
CB VB 2 -1 0 0 -M V
x1 x2 x3 x4 x5
Z 2 1 -1 0 1 4
C-Z 0 -2 1 0 -M - 1
s.a.
Como una de las variables de holgura es menor que 0, x6, se agrega una variable artificial
x7.
CB VB 4 2 1 0 0 0 M V
x1 x2 x3 x4 x5 x6 x7
0 x5 2 1 0 0 1 0 0 3
M x7 2 1 1 0 0 -1 1 3
Z 2M M M 0 0 -M M 3M
C-Z 4-2M 2-M 1-M 0 0 M 0
Primera iteración
CB VB 4 2 1 0 0 0 M V
x1 x2 x3 x4 x5 x6 x7
0 x5 0 0 -1 -1 1 0 0 1
M x7 0 0 0 -1 0 -1 1 1
Z 4 2 2 2-M 0 -M M 4+M
C-Z 0 0 -1 -2+M 0 M 0
min (c-z) = (0,-1,-2+M,M) = -1<0, entra x3
Segunda iteración
CB VB 4 2 1 0 0 0 M V
x1 x2 x3 x4 x5 x6 x7
1 x3 2 1 1 1 0 0 0 2
0 x5 2 1 0 0 1 0 0 3
M x7 0 0 0 -1 0 -1 1 1
Z 2 1 1 1-M 0 -M M 2+M
C-Z 2 1 0 -1+M 0 M 0
Como el mínimo en la fila C-Z no es < 0, hay una variable artificial x7>0, lo que concluye en
que el PPL es no factible.
Ejercicio 4
max 3x1 + x2
s.a.
x1 + x2 ≥ 3
2x1 + x2 ≤ 4
x1 + x2 = 3
x1, x2 ≥ 0
Transformando:
s.a.
x1 + x2 – x3 + x4 = 3
2x1 + x2 + x5 = 4
x1 + x2 + x6= 3
x1, x2 ≥ 0
1er cuadro:
CB VB 3 1 0 -M 0 -M V
x1 x2 x3 x4 x5 x6
-M x4 1 1 -1 1 0 0 3
0 x5 2 1 0 0 1 0 4
-M x6 1 1 0 0 0 1 3
2do cuadro
CB VB 3 1 0 -M 0 -M V
x1 x2 x3 x4 x5 x6
-M x4 0 1/2 -1 1 -1/2 0 1
3 x1 1 1/2 0 0 ½ 0 2
-M x6 0 1/2 0 0 -1/2 1 1
3er cuadro
CB VB 3 1 0 -M 0 -M V
x1 x2 x3 x4 x5 x6
-M x4 0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