Professional Documents
Culture Documents
Invetigacion de Operaciones
Invetigacion de Operaciones
Jhohan Mendez
Código
Docente:
2021
1. Consider the following Linear Programming model:
Lines:
L1:
X₁ = 24
L2:
X₂ = 15
X₁ = 45
L3:
2X₁ + X₂ = 30
X₁ = 0 then,
X₂ = 30
X₁ = 15
Graph:
Feasible region:
A: (0, 15)
B: L2 = L3
L2 :
2X₁ + 6X₂ = 90; 2X₁ = 90 – 6X₂; X₁ = (90 – 6X₂ )/2
L3:
2X₁ + X₂ = 30; 2X₁ = 30 – X₂; X₁ = (30 – X₂ )/2
(30 – X₂)/2 = (90 – 6X₂)/2; 2(30 – X₂ ) = 2(90 – 6X₂); 60 – 2X₂ = 180 – 12X₂
X₂ = 12
X₁ = 9
B = (9, 12)
C: (15, 0)
D: (0, 0)
Evaluation in
Point X₁ X₂
Z(max)
A 0 15 60
B 9 12 102
C 15 0 90
D 0 0 0
Restrictions:
2X₁ + 6X₂ <= 90; 2(9) + 6(12) <= 90; 18 + 72 <= 90; 90 <= 90 (True).
2X₁ + X₂ <= 30; 2(9) + (12) <= 30; 18 + 12 <= 30; 30 <= 30 (True).
X₁, X₂ >= 0
Target Function:
Restrictions:
X₁ <= 24
2X₁ + X₂ <= 30
X₁ + H1 = 24
2X₁ + 6X₂ + H2 = 90
2X₁ + X₂ + H3 = 30
Table
find pivot:
Choose the column with the most negative Zi - Ci and the row with the smallest quotient of the division
of Bi with the elements of each corresponding row.
Row3*(0,5):
(0,5)*(2 1 0 0 1 30)
________________________________
1 0,5 0 0 0,5 15
(-1)Row3 + Row1:
(1 0 1 0 0 24)
(-1) * (1 0,5 0 0 0,5 15)
_________________________________
0 -0,5 1 0 -0,5 9
(-2)Row2 + Row1:
(2 6 0 1 0 90)
(-2) * (1 0,5 0 0 0,5 15)
_________________________________
0 5 0 1 -1 60
find pivot:
Choose the column with the most negative Zi - Ci and the row with the smallest quotient of the division
of XB with the elements of each corresponding row.
(-0,2)Row2
(0,2)*( 0 5 0 1 -1 60)
____________________________________
0 1 0 0,2 -0,2 12
(-0,5)Row2+Row1
(0 0,5 1 0 0,5 9 )
(-0,5)*(0 1 0 0,2 -0,2 12)
__________________________________
0 0 1 -0,1 0,4 3
(-0,5)Row2+Row3
(1 0,5 0 0 0,5 15)
(-0,5)*(0 1 0 0,2 -0,2 12)
_________________________________
1 0 0 -0,1 0,4 9
d. Identify the ś lack ́ values for the three sources of the final table for Simplex method. Source 1
corresponds to the first restriction, source 2 to the second restriction and source 3 to the third one.
H1 (slack 1) = 15
X₁ + H1 = 24; (9) + (15) = 24 (True).
H2 (slack 2) = 0
2X₁ + 6X₂ + H2 = 90; 2(9) + 6(12)+(0) = 90; 18 + 72 + 0 = 90 (True).
H3 (slack 3) = 0
2X₁ + X₂ + H3 = 30; 2(9) + (12)+(0) = 90; 18 + 12 + 0 = 30 (True).
e. Using the graphical solution method prove that these ́slack ́ values are right.
R/
Pasar a la tabla simplex
Se elige la columna del Zi - Ci mas negativo y para la fila el cociente menor de la división de la
columna XB por su correspondiente en la columna ya mencionada para hallar el pivote.
(1/3)F1:
(1/3)*(1 2 2 3 1 0 20)
_______________________________________
⅓ ⅔ ⅔ 1 ⅓ 0 20/3
(-2)*F2+F1:
(2 1 3 2 0 1 20 )
(-2)* (⅓ ⅔ ⅔ 1 ⅓ 0 20/3)
______________________________________
4/3 -1/3 5/3 0 -2/3 1 20/3
Se elige la columna del Zi - Ci mas negativo y para la fila el cociente menor de la división de la
columna XB por su correspondiente en la columna ya mencionada para hallar el pivote.
(-2/3)F2+F1
(⅓ ⅔ ⅔ 1 ⅓ 0 6+2/3)
(-2/3)* (4/5 -1/5 1 0 -2/5 ¾ 4 )
__________________________________________
-1/5 4/4 0 1 3/5 -2/5 4
al calcular Z entonces:
Restricciones:
X₁ + 2X₂ +2X₃ +3X₄ <= 20; (0) + 2(0) + 2(4) + 3(4) <= 20; 8 + 12 <= 20 cierto.
2X₁ + X₂ +3X₃ +2X₄ <= 20; 2(0) + (0) + 3(4) + 2(4) <= 20 12 + 8 <= 20 cierto.
a. ¿Es la solución óptima única? Justifique su respuesta. Si existe una solución óptima
alterna encuéntrela.
R/ No existen mas soluciones, esto se debe a que X₁ y X₂ no fueron definidos por ende caben mas
soluciones optimas posibles. Por ejemplo X₁ = 0, X₂ = 5, X₃ =5 y X₄ = 0
Restricciones:
X₁ + 2X₂ +2X₃ +3X₄ <= 20; (0) + 2(5) + 2(5) + 3(0) <= 20; 10 + 10 <= 20 cierto.
2X₁ + X₂ +3X₃ +2X₄ <= 20; 2(0) + (5) + 3(5) + 2(0) <= 20 5 + 15 <= 20 cierto.
X₁ -S1+ A1 = 60
X₂+ H2 = 100
2X₃ -S3 + A3 = 80
X₁ + X₂ + X₃ -S4 + A4 = 120
M*F2+F1
M* (1 0 0 0 -1 0 0 1 0 0 60)
(12 6 8 0 0 0 0 -M -M -M 0)
______________________________________________________________
12+M 6 8 0 -M 0 0 0 -M -M 60M
M*F4
M* (0 0 2 0 0 -1 0 0 1 0 80)
(12+M 6 8 0 -M 0 0 0 -M -M 60M)
_____________________________________________________________
12+M 6 8+2M 0 -M -M 0 0 0 -M 140M
M*F5
M* (1 1 1 0 0 0 -1 0 0 1 120)
(12+M 6 8 0 -M -M 0 0 0 -M 140M)
______________________________________________________________________
12+2M 6+M 8+M 0 -M -M -M 0 0 0 260M
Escoger el pivote tomando el numero mas grande y al dividir R con los elementos de la columna se
toma el de menor valor.
(-12-2M)*F2+F1
(-1)*F2+F5
(-1)*(1 0 0 0 -1 0 0 0 0 0 60)
(1 1 1 0 0 0 -1 0 0 1 120)
___________________________________________________________________
0 1 1 0 1 0 -1 0 0 1 60
Repetir el ciclo:
(0,5)*F4
(0,5)* (0 0 2 0 0 -1 0 0 1 0 80)
______________________________________________________________
0 0 1 0 0 -0,5 0 0 0,5 0 40
(-8-M)F4+F1
(-1)*F4+F5
(-6-M)*F5 + F1
(-1)*F5+F3
Pese a tener todos los valores de las variables X₁, X₂ y X₃ R sigue teniendo un valor M, por ende, se
deduce que el problema no tiene solución.
Nota: pese a cumplir con las restricciones no existe solución posible para el problema en cuestión.
Restricciones:
Z = 4X₁ + 2X₂ - X₃ + X₄
X₁ + X₂ + X₃ + X₄ + A1 = 100
X₂ + X₄ – S2 + A2 = 50
Se toma el mas negativo de Zi – Ci para la columna y sus valorees dividen XB, el cociente mas
pequeño es la fila del pivote
Al encontrar el pivote este debe ser convertido a 1 y los demás elementos de la columna en 0.
(1/6)F3
(-1)*F3+F1
Los valores de Zi – Ci son todos positivos, por ende, se concluye que se llego a la solución optima, mas
esto debe ser verificado.
X₁ = 4, X₂ = 0, X₃ = 0, X₄ = 0
6X₁ + 3X₂ – (3/2)X₃ + (3/2)X₄ <= 220; 6(36,666) + 3(0) -3/2(0) +3/2(0) <= 220 (Cierto).
Conclusión: No es posible determinar una solución optima al modelo por medio de este método
simplex.
b. ¿Es la solución óptima única? Justifique su respuesta. Si existe una solución óptima
alterna encuéntrela.
R/ no es la única solución, debido a que las variables X₂, X₃ y X₄ quedaron indeterminados por ende
puede existir otra solución, mas esta debe ser encontrada con otro método.
X₁ = 19,333…
X₂ = 50
X₃ = 30,666…
X₄ = 0