Documentos de Académico
Documentos de Profesional
Documentos de Cultura
DIOP U1 EA PLCT
DIOP U1 EA PLCT
SOLUCIÓN A PROBLEMAS
DE PROGRAMACIÓN LINEAL
Matricula:AL12519650
Ejercicio 1:
MÉTODO DE LA GRAN M
Maximizar Z =2 x 1 +5 x2 +3 x 3
Sujeto a: x 1 −2 x 2+ x 3 ≥ 20
2 x 1 +4 x2 + x 3=50
y
x1 , x2, x3 ≥ 0
x 1 −2 x 2+ x 3 − S1 + R1=20 Restricción 1
2 x 1 +4 x2 + x 3 + R2=50 Restricción 2
Primera tabla
BASE X1 X2 X3 S1 R1 R2 Sol
Renglón 1 Z -2 -5 -3 0 M M 0
Renglón 2 R1 1 -2 1 -1 1 0 20
Renglón 3 R2 2 4 1 0 0 1 50
R1 = 20
R2=50
Z=0
Para eliminar las M’s del renglón 1 debemos multiplicar –M por el renglón 2 mas el
renglón 1, y se obtienen los valores de Z y se forma esta tabla
BASE X1 X2 X3 S1 R1 R2 Sol
Renglón 1 Z -M-2 2M-5 -M-3 M 0 M -20M
Renglón 2 R1 1 -2 1 -1 1 0 20
Renglón 3 R2 2 4 1 0 0 1 50
TABLA 2
BASE X1 X2 X3 S1 R1 R2 Sol
Renglón 1 Z -3M-2 -2M-5 -2M-3 M 0 0 -70M
Renglón 2 R1 1 -2 1 -1 1 0 20
Renglón 3 R2 2 4 1 0 0 1 50
1(-2)=-2+2=0
-2(-2)=4+4=8
1(-2)=-2+1=-1
-1(-2)=-2+1=-1
1(-2)=-2+0=-2
0(-2)=0+1=1
20(-2)=-40+50=10
BASE X1 X2 X3 S1 R1 R2 Sol
Z 0 -8M-9 M-1 -2M-2 3M+2 0 -10M+40
X1 1 -2 1 -1 1 0 20
R2 0 8 -1 2 -2 1 10
8M+9(0)=0+0=0
8M+9(1)=8M+9 + (-8M-9)=0
8M+9(-.12)= -M-1.08 + (M-1)=-2.08
8M+9(.25)=2M+2.25 + (-2M-2)=.25
8M+9(-.25)=2M-2.25+ (3M+2)=M-.25
8M+9(.12)=.96M+1.08+ (0)=.96M+1.08
8M+9(1.25)=10M+1.25+(-10M+40)=51.25
2(0)=0+1=1
2(1)=2+(-2)=0
2(-.12)=-.24+1=.75
2(.25)=.5+(-1)=-.5
2(-.25)=-.5+1=.5
2(.12)=.24+0=.25
2(1.25)=2.5+20=22.5
BASE X1 X2 X3 S1 R1 R2 Sol
Z 2.83 0 0 -1.17 M+1.17 M+1.83 115
X3 1.33 0 1 -.67 .67 .33 30
X2 0 1 -.12 .25 -.25 .12 5
BASE X1 X2 X3 S1 R1 R2 Sol
Z 4 7 0 0 M M+3 150
X3 2 4 1 0 0 1 50
S1 1 6 0 1 -1 1 30
Fase 1: minimizar
funcion objetivo nueva Z =R 1+ R 2
Sujeto a: x 1 −2 x 2+ x 3 ≥ 20
2 x 1 +4 x2 + x 3=50
y
x1 , x2, x3 ≥ 0
BASE X1 X2 X3 S1 R1 R2 Sol
Z 0 0 0 0 -1 -1 0
R1 1 -2 1 -1 1 0 20
R2 2 4 1 0 0 1 50
BASE X1 X2 X3 S1 R1 R2 Sol
Z 3 2 2 -1 0 0 70
R1 1 -2 1 -1 1 0 20
R2 2 4 1 0 0 1 50
NZ = R1 * -3 + Z
NR2 = R1 * -2 + R2
BASE X1 X2 X3 S1 R1 R2 Sol
Z 0 8 -1 2 -3 0 10
X1 1 -2 1 -1 1 0 20
R2 0 8 -1 2 -2 1 10
BASE X1 X2 X3 S1 R1 R2 Sol
Z 0 0 0 0 -1 -1 0
X1 1 0 ¾ -1/2 ½ ¼ 45/2
X2 0 1 -1/8 ¼ -1/4 1/8 5/4
Con la tabla anterior podemos ver que ya no existen las variable artificales y la
solucion es cero por lo que terminamos la Fase 1 y esa tabla se convierte en
nuestra BF inicial.
BASE X1 X2 X3 S1 Sol
Z -2 -5 -3 0 0
X1 1 0 ¾ -1/2 45/2
X2 0 1 -1/8 ¼ 5/4
Y obtenemos la tabla
BASE X1 X2 X3 S1 Sol
Z -2 0 -29/8 5/4 25/4
X1 1 0 ¾ -1/2 45/2
X2 0 1 -1/8 ¼ 5/4
pivote *4/3
NZ = X1*29/8 + Z
NX2 = X1 *1/8 + X2
BASE X1 X2 X3 S1 Sol
Z 17/6 0 0 -7/6 115
X3 4/3 0 1 -2/3 30
X2 1/6 1 0 1/6 5
pivote * 6
NZ= Z + X2* 7/6
NX3 = X3 + X2 * 2/3
BASE X1 X2 X3 S1 Sol
Z 4 7/6 0 0 150
X3 2 2/3 1 0 50
S2 1 1 0 1 30
Solucion optima:
Z= 150 x1=0 X2=0 X3= 50
MÉTODO DE LA GRAN M
Minimizar Z =3 x 1 +2 x2 + 4 x 3
Sujeto a: 2 x 1 + x 2+ 3 x 3=6
3 x1 +3 x 2+ 5 x 3 ≥120
y
x1 , x2, x3 ≥ 0
2 x 1 + x 2+ 3 x 3 + R1=6 Restricción 1
3 x1 +3 x 2+ 5 x − S1 + R2=120 Restricción 2
Primera tabla
BASE X1 X2 X3 S1 R1 R2 Sol
Renglón 1 Z -3 -2 -4 0 -M -M 0
Renglón 2 R1 2 1 3 0 1 0 6
Renglón 3 R2 3 3 5 -1 0 1 120
R1 = 6
R2=120
Z=0
Hacemos la operacion:
NZ= Z + [ M x R1 + M x R2]
BASE X1 X2 X3 S1 R1 R2 Sol
Z -3+5M -2+4M -4+8M -M 0 0 126M
R1 2 1 3 0 1 0 6
R2 3 3 5 -1 0 1 120
pivote * 1/3
NZ = pivote * 4-8M + Z
NR2= pivote * -5 + R2
pivote*3
BASE X1 X2 X3 S1 R1 R2 Sol
Z 1-3M 0 2-4M -M 2-32/9M O 12-118M
X2 2 1 3 0 1 0 6
R2 -3 0 -4 -1 -3 1 102
Hemos terminado ya que no queda ningun valor positivo que sirva de variable
entrante y aun queda un numero positivo en la solucion por lo que el sistema
no tiene solucion.
2 x 1 + x 2+ 3 x 3 + R1=6 Restricción 1
3 x1 +3 x 2+ 5 x − S1 + R2=120 Restricción 2
BASE X1 X2 X3 S1 R1 R2 Sol
Z 0 0 0 0 -1 -1 0
R1 2 1 3 0 1 0 6
R2 3 3 5 -1 0 1 120
BASE X1 X2 X3 S1 R1 R2 Sol
Z 5 4 8 -1 0 0 126
R1 2 1 3 0 1 0 6
R2 3 3 5 -1 0 1 120
pivote * 1/3
NZ = Z + pivote * -8
NR2 = R2 + pivote * -5
y obtenemos la siguiente tabla
BASE X1 X2 X3 S1 R1 R2 Sol
Z -1/3 4/3 0 -1 -8/3 0 280/3
X3 2/3 1/3 1 0 1/3 0 2
R2 -1/3 4/3 0 -1 -5/3 1 -1200
Nuestra nueva variable de entrada es X2 y la de salida es X3
Realizamos las operaciones:
pivote *3
NZ = Z + pivote * -4/3
BASE X1 X2 X3 S1 R1 R2 Sol
Z -3 0 -4 -1 -4 0 356/3
X2 2 1 3 0 1 0 6
R2 -3 0 -4 -1 -3 1 -1208
Como el valor minimo de la suma es positivo no tiene solucion factible.
R:Las soluciones de los pasos 1 son factibles para el problema real (aunque
este ejercicio no tiene solucion ) mientras que el del paso 2 la primera fase solo
es factible para la solucion artifical y la fase dos si es factible para el problema
real.