Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Presentado por:
Tutor:
Manuel Alejandro Lozada
Programación Lineal
Grupo: 100404_232
Octubre 2020
planteamiento
Se separa primero todos los datos que podamos obtener del problema
• Videojuego: Arcade, Estratega, Simulación
• Utilidad: USD170, USD140, USD150
• Costo: USD110, USD90, USD100
• K.b.: 20.000, 50.000, 17.000
• Hora Hombre: 10, 5, 10
• Disponibilidad: 50.000, 125.000.000, 20.000
Modelo canónico
Definir la función objetivo (meta), que en este caso vamos a maximizar
Restricciones
USD 110X1+USD90X2+USD100X3 ≤ 500000
20000X1+50000+ 17000X3 ≤ 125000000
10X1 + 5X2 + 10X3 ≤ 20000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -170 -140 -150 0 0 0
S1 110 90 100 1 0 0 500000 500000/110 4545.4545
S2 20000 50000 17000 0 1 0 125000000 125000000/20000 6250
X1 10 5 10 0 0 1 20000 20000/10 2000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -170 -140 -150 0 0 0
S1 110 90 100 1 0 0 500000
S2 20000 50000 17000 0 1 0 125000000
X1 10 5 10 0 0 1 20000
X1 X2 X3 S1 S2 S3 resultado
Z 0 -55 20 0 0 17 340000
S1 0 35 -10 1 0 -11 280000
S2 0 40000 -3000 0 1 -2000 85000000
X1 1 0.5 1 0 0 0.1 2000
Como se puede evidenciar en la fila de z hay negativos debemos empezar a buscar de nuevo la fila, columna y
numero pivote
X1 X2 X3 S1 S2 S3 resultado
Z 0 -55 20 0 0 0.0006 340000
S1 0 35 -10 1 0 -11 280000 8000
X2 0 40000 -3000 0 1 -2000 85000000 2125
X1 1 0.5 1 0 0 0.1 2000 4000
X1 X2 X3 S1 S2 S3 resultado
Z 0 -55 20 0 0 0.001 340000
S1 0 35 -10 1 0 -11 280000
X2 0 1 -0.075 0 0.000025 -0.05 2125
X1 1 0.5 1 0 0 0.1 2000
X1 X2 X3 S1 S2 S3 resultado
Z 0 0 15.875 0 0.001375 -2.74942 456875
S1 0 0 -7.375 1 -0.000875 -9.25 205625
X2 0 1 -0.075 0 0.000025 -0.05 2125
X1 1 0 1.0375 0 -0.0000125 0.125 937.5
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 0 15.875 0 0.001375 -2.74942 456875
X2 0 0 -7.375 1 -0.000875 -9.25 205625
X3 0 1 -0.075 0 0.00003 -0.05 2125
X1 1 0 1.0375 0 -0.0000125 0.125 938
Cuántos videojuegos de cada tipo debe vender la empresa VIDEOGAMER Co. en el lanzamiento, para obtener la mayor utilidad
posible con los recursos disponibles?
Z: Utilidad 456,875
X1 :arcade 938
X2:estrategia 2,125
X3: simulación 0
Hallar la fila y la columna pivote
La columna pivote es la que tiene mayor negativo
La fila de pivote la hallamos dividiendo la columna pivote entre el resultado
El numero pivote es la intersepccion entre la colunma y la fila pivote
Linear Programming
Data
x1 x2 x3
Maximize 170 140 150 sign RHS
c1 110 90 100 > 500000
c2 20000 50000 17000 > 125000000
c3 10 5 10 > 20000
Results
Variables 938.00 2125.00 0.00
Objective 456960.00
Page 6
LP_max
Page 7
Barras (X1) Perfiles (X2) Chapas (X3) Condición
$ 61,662.00 $ 52,278.00 $ 56,300.00
Cantidad (t) 13 10 20 ≥ 6000
Tiempo Recocido (h) 8 5 4 ≤ 2000
Tiempo T&R (h) 18 15 20 ≤ 7000
MODELO ESTÁNDAR
FUNCIÓN OBJETIVO A MAXIMIZAR FUNCIÓN OBJETIVO A MAXIMIZAR
𝑍=61662𝑥_1+52278𝑥_2+56300𝑥_3 𝑍−61662𝑥_1−52278𝑥_2−56300𝑥_3+MR_1= 0
RESTRICCIÓN DE NO NEGATIVIDAD
𝑥_1,𝑥_2,𝑥_3≥0
VARIABLE
BASICA x1 x2 x3 S1 S2 S3 R1 Resultado
Z 0 0 0 1854.10 391.25 4590.85 -1854.09 21793850.00
x3 0 0 1 -0.13 -0.06 -0.06 0.13 187.50
x1 1 0 0 -0.17 0.42 -0.25 0.17 83.33
x2 0 1 0 0.37 -0.42 0.45 -0.37 116.67
solución
Utillidad Z 21793850
Chapas (X3) 187.50
Barras (X1) 83.33
Perfiles (X2) 116.67
𝑥_1=83,33
𝑥_2=116,67
𝑥_3=187,50
Z = 21793850
LP_max (2)
Linear Programming
Data
x1 x2 x3
Maximize 61662 52270 56300 sign RHS
c1 13 10 20 > 6000
c2 8 5 4< 2000
c3 18 15 20 < 7000
Results
Variables 83.33 116.67 187.50
Objective 21792885.36
Page 10
LP_max (2)
Page 11
Variable de decisión
X1:Petroleo crudo ligero
X2:Petroleo crudo mediano
X3:Petroleo crudo pesado
Función Objetivo
Minimizar Z=35x1+33x2+31x3
Sujeto a
0,25x1 + 0,55x2 + 0,20x3 > 750000 Gasolina
0,25x1 + 0,20x2 + 0,55x3 > 1100000 Keroseno
0,60x1 + 0,25x2 + 0,15x3 > 1000000 Combistible para reactotores
x1,x2,x3>0
Sujeto a
0,25x1 + 0,55x2 + 0,20x3 - S1 = 750000
0,25x1 + 0,20x2 + 0,55x3 - S2 = 1100000
0,60x1 + 0,25x2 + 0,15x3 - S3 = 1000000
x1,x2,x3,S1,S2,S3 >0
Función Objetivo
Sujeto a:
SOLUCIÓN
X1 X2 X3 S1 S2 S3 RESULTADO
Z -35 -33 -31 0 0 0 0
S1 -0.25 -0.55 -0.20 1 0 0 -750000
S2 -0.25 -0.20 -0.55 0 1 0 -1100000
S3 -0.60 -0.25 -0.15 0 0 1 -1000000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -35 -33 -31 0 0 0 0
S1 -0.25 -0.55 -0.20 1 0 0 -750000
X3 -0.25 -0.20 -0.55 0 1 0 -1100000
S3 -0.60 -0.25 -0.15 0 0 1 -1000000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -35 -33 -31 0 0 0 0
S1 -0.25 -0.55 -0.20 1 0 0 -750000
X3 0.45 0.36 1 0 -1.82 0 2000000
S3 -0.60 -0.25 -0.15 0 0 1 -1000000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -20.909 -21.727 0 0 -56.364 0 62000000
S1 -0.25 -0.55 -0.20 1 0 0 -750000
X3 0.45 0.36 1 0 -1.82 0 2000000
S3 -0.60 -0.25 -0.15 0 0 1 -1000000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -20.909 -21.727 0 0 -56.364 0 62000000
S1 -0.159 -0.477 0 1 -0.364 0 -350000
X3 0.45 0.36 1 0 -1.82 0 2000000
S3 -0.60 -0.25 -0.15 0 0 1 -1000000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -20.909 -21.727 0 0 -56.364 0 62000000
S1 -0.159 -0.477 0 1 -0.364 0 -350000
X3 0.45 0.36 1 0 -1.82 0 2000000
S3 -0.532 -0.195 0 0 -0.273 1 -700000
Con el metodo de simplex dual se deben cumplir 2 condiciones para dar por terminado el ejercicio, que la
columna de resultados este en positivo y que la fila de Z este en ceros o en negativos
X1 X2 X3 S1 S2 S3 RESULTADO
Z -20.909 -21.727 0 0 -56.364 0 62000000
S1 -0.159 -0.477 0 1 -0.364 0 -350000
X3 0.455 0.364 1 0 -1.818 0 2000000
S3 -0.532 -0.195 0 0 -0.273 1 -700000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -20.909 -21.727 0 0 -56.364 0 62000000
S1 -0.159 -0.477 0 1 -0.364 0 -350000
X3 0.455 0.364 1 0 -1.818 0 2000000
X1 -0.532 -0.195 0 0 -0.273 1 -700000
X1 X2 X3 S1 S2 S3 RESULTADO
Z -20.909 -21.727 0 0 -56.364 0 62000000
S1 -0.159 -0.477 0 1 -0.364 0 -350000
X3 0.455 0.364 1 0 -1.818 0 2000000
X1 1 0.368 0 0 0.513 -1.880 1316239
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 -14.043 0 0 -45.641 -39.316 89521368
S1 -0.159 -0.477 0 1 -0.364 0 -350000
X3 0.455 0.364 1 0 -1.818 0 2000000
X1 1 0.368 0 0 0.513 -1.880 1316239
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 -14.043 0 0 -45.641 -39.316 89521368
S1 0 -0.419 0 1 -0.282 -0.299 -140598
X3 0.455 0.364 1 0 -1.818 0 2000000
X1 1 0.368 0 0 0.513 -1.880 1316239
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 -14.043 0 0 -45.641 -39.316 89521368
S1 0 -0.419 0 1 -0.282 -0.299 -140598
X3 0 0.197 1 0 -2.051 0.854700854701 1401709.401709
X1 1 0.368 0 0 0.513 -1.880 1316239
Con el metodo de simplex dual se deben cumplir 2 condiciones para dar por terminado el ejercicio, que la
columna de resultados este en positivo y que la fila de Z este en ceros o en negativos
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 -14.043 0 0 -45.641 -39.316 89521368
X2 0 -0.419 0 1 -0.282 -0.299 -140598
X3 0 0.197 1 0 -2.051 0.854700854701 1401709.401709
X1 1 0.368 0 0 0.513 -1.880 1316239
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 -14.043 0 0 -45.641 -39.316 89521368
X2 0 -0.419 0 1 -0.282 -0.299 -140598
X3 0 0.197 1 0 -2.051 0.854700854701 1401709.401709
X1 1 0.368 0 0 0.513 -1.880 1316239
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 -14.043 0 0 -45.641 -39.316 89521368
X2 0 1 0 -2.388 0.673 0.714 335714
X3 0 0.197 1 0 -2.051 0.854700854701 1401709.401709
X1 1 0.368 0 0 0.513 -1.880 1316239
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 0 0 -33.531 -36.184 -29.286 94235714
X2 0 1 0 -2.388 0.673 0.714 335714
X3 0 0.197 1 0 -2.051 0.854700854701 1401709.401709
X1 1 0.368 0 0 0.513 -1.880 1316239
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 0 0 -33.531 -36.184 -29.286 94235714
X2 0 1 0 -2.388 0.673 0.714 335714
X3 0 0 1 0.469 -2.184 0.714 1335714
X1 1 0.368 0 0 0.513 -1.880 1316239
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 0 0 -33.531 -36.184 -29.286 94235714
X2 0 1 0 -2.388 0.673 0.714 335714
X3 0 0 1 0.469 -2.184 0.714 1335714
X1 1 0 0 0.878 0.265 -2.143 1192857
Interpretacion de resultado
X1 X2 X3 S1 S2 S3 RESULTADO
Z 0 0 0 -33.531 -36.184 -29.286 94,235,714
X2 0 1 0 -2.388 0.673 0.714 335,714
X3 0 0 1 0.469 -2.184 0.714 1,335,714
X1 1 0 0 0.878 0.265 -2.143 1,192,857
¿cantidad
Z=costo de barriles de cada tipo de petróleo crudo que satisfacen la demanda para garantizar el costo mínimo?.
mínimo 94,235,714
X1=Petroleo crudo Ligero 1,192,857
X2=Petroleo crudo Mediano 335,714
X3=Petroleo crudo Pesado 1,335,714
-35 -33 -31
-0.25 -0.20 -0.55
140 165 56.4
-20.909 -21.727 0
-0.532 -0.195 0
39.316 111.163 N/A
-0.532 -0.195 0 0 -0.273 1 -700000
-0.532 -0.532 -0.532 -0.532 -0.532 -0.532 -0.532
1 0.368 0 0 0.513 -1.880 1316239
0 -14.043 0
0 -0.419 0
N/A 33.531 N/A
Linear Programming
Data
x1 x2 x3
Maximize 35 33 31 sign RHS
c1 0.25 0.55 0.2 < 750000
c2 0.25 0.2 0.55 < 1100000
c3 0.6 0.25 0.15 < 1000000
Results
Variables 1192857 335714 1335714
Objective 94235714.29
Page 19
LP_max (3)
Page 20