Está en la página 1de 12

UNIVERSIDAD TECNOLÓGICA LA SALLE

PROGRAMACIÓN LINEAL

TAREA SOBRE EL MÉTODO SIMPLEX

Autores

Escol Misael Midence Ruiz

Juan Carlos Blanco Díaz

Michael Alexander Cortez Rosales

Jeshua Fernando Cáceres Aguilar

José Alberto Torrez Guevara

Carlos Antonio Hernández López

Docente: Ramiro José Cáceres Espinoza

León, Nicaragua

viernes, 16 de febrero de 2024

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

C-Z 1+M 2-2M 0 -M 0

máx {1+M, 2-2M, 0, -M} = 1+M > 0, entra x1

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:

Pto. óptimo: (x1, x2) = (2,1)

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

máx (c-z): (2 + 2M,


-1 + M, -M, 0) = 2 + 2M ≥ 0. Entra x1
min(columna de la variable entrante) = (4/2) = 2 > 0…. Por tanto sale x5
Pivote = 2

CB VB 2 -1 0 0 -M V
x1 x2 x3 x4 x5

2 x1 1 1/2 -1/2 0 1/2 2

0 x4 0 3/2 -1/2 1 1/2 3

Z 2 1 -1 0 1 4
C-Z 0 -2 1 0 -M - 1

máx(c-z): (0, -2,


1, 0, -M, -1) = 1 > 0. x3 entra.
min = La columna de la variable entrante tiene signos negativos. El problema tiene solución
ilimitada (no acotada). La variable x3 debe entrar a la base, pero ninguna variable puede
salir.
Ejercicio 3

min 4x1 + 2x2 + x3

s.a.

2x1 +x2 +x3 ≤ 2


2x1 +x2 ≤ 3
2x1 +x2 +x3 ≥ 3
x1, x2, x3 ≥ 0

Transformando el PPl tenemos que:


2x1 +x2 +x3 + x4 ≤ 2
2x1 +x2 + x5 ≤ 3
2x1 +x2 +x3 - x6 + x7 ≥ 3
x1,...,x7 ≥ 0

Como una de las variables de holgura es menor que 0, x6, se agrega una variable artificial
x7.

Por lo tanto: min 4x1 + 2x2 + x3 + Mx7

CB VB 4 2 1 0 0 0 M V

x1 x2 x3 x4 x5 x6 x7

0 x4 2 1 1 1 0 0 0 2 (½) (-2/2) + (-2/2) +

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

min (c-z) = (4-2M, 2-M, 1-M,0) = 4-2M<0, entra x1

min = (2/2, 3/2) = 2/2=1, sale x4

Primera iteración

CB VB 4 2 1 0 0 0 M V

x1 x2 x3 x4 x5 x6 x7

4 x1 1 1/2 1/2 1/2 0 0 0 1 (2) (1+)

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

min = (1/½, 1/-1, 1/0) = 2, sale x1

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

min (c-z) = (2, 1, 0, -1+M, M), 0=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:

max 3x1 + x2 - Mx4 - Mx6

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

Z -2M -2M M -M 0 -M -6M


C-Z 3-2M 1+2M -M 0 0 0

Max(c-z) = (3+2M, 1+2M, -M, 0) = 3+2M, entra x1

Min (3/1, 4/2, 3/1) = 4/2, sale x5

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

Z 3 3/2 M M 3/2 -M -2M+6


C-Z 0 -1/2+M -M -2M -3/2+M 0

Max(c-z) (0, -1/2+M, -M, -2M, -3/2+M) = -3/2+M, entra x2

Min (1/1/2, 2/1/2) = 1, sale x6

3er cuadro
CB VB 3 1 0 -M 0 -M V

x1 x2 x3 x4 x5 x6

-M x4 0 0 -1 1 0 -1 0

3 x1 1 0 0 0 1 -1 1

1 x2 0 1 0 0 -1 2 2

Z 3 1 M -M 2 -1+M 5
C-Z 0 0 -M 0 -2 1-2M

Max(c-Z) (0,-M,-2,1-M) = 0, 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:

Punto óptimo (x1,x2) = (1,2)

Valor óptimo = 5

Ejercicio 5
5)

min 2x1 + 3x2 + x3


s.a.
x1 +x2 +x3 = 10
2x1 −x2 +3x3 ≥ 5
x1 +2x2 ≤ 8
x1 , x2 , x3 ≥ 0
Transformado queda:

Min 2x1+3x2+x3+Mx4+Mx6

Sa

X1+x2+x3+x4=10

2x1-x2+3x3-x5+x6=5

X1+2x2+x7=8

1er cuadro:
CB VB 2 3 1 M 0 M 0 V

x1 x2 x3 x4 x5 x6 x7

M x4 1 1 1 1 0 0 0 10

M x6 2 -1 3 0 -1 1 0 5

0 x7 1 2 0 0 0 0 0 8

Z 3M 0 4M M -M M 0 15M
C-Z 2-3M 3 1-4M 0 M 0 0

Min(C-Z) (2-3M, 3, 1-4, 0, M) = 1-4M, entra x3

Min (10/1, 5/3) = 5/3, sale x6

2do cuadro:

CB VB 2 3 1 M 0 M 0 V

x1 x2 x3 x4 x5 x6 x7

M x4 1/3 4/3 0 1 1/3 -1/3 0 25/3

1 x3 2/3 -1/3 1 0 -1/3 1/3 0 5/3

0 x7 1 2 0 0 0 0 1 8

Z 2/3+1/3M -1/3+4/3M 1 M -1/3+1/3M 1/3-1/3M 0 5/3+25/3M


C-Z 4/3-1/3M 10/3-4/3M 0 0 1/3-1/3M -1/3+4/3M 0

Min(C-Z) (4/3-1/3M, 10/3-4/3M, 0, 1/3-1/3M, -1/3+4/3M) = 10/3-4/3M, entra x2

Min (25/3*3/4, 8/2) = 8/2=4, sale x7

3er cuadro:

CB VB 2 3 1 M 0 M 0 V
x1 x2 x3 x4 x5 x6 x7
M x4 -1/3 0 0 1 1/3 -1/3 -2/3 3

1 x3 5/6 0 1 0 -1/3 1/3 1/6 3

3 x2 1/2 1 0 0 0 0 1/2 4

Z 11/6-1/3M 2 1 M - 1/3- 7/6- 11+3


⅓+1/3 1/3M 23M M
M
C-Z 11/6+1/3 1 0 0 1/3- - -
M 1/3M ⅓+4/3 7/6+2
M 3M

min (c-z)=[11/6+1/3M,1,0,⅓-1/3M,-⅓+4/3M,-7/6+23M)

min 1/3-1/3M entra x5

min (3/(1/3)) sale x4

4to cuadro:4to cuadro:min (c-z) (0, -1+M, M,-1) -1 <0 entra x7

CB VB 2 3 1 M 0 M 0 V
x1 x2 x3 x4 x5 x6 x7

0 x5 -1 0 0 3 1 -1 -2 9

1 x3 1/2 0 1 1 0 0 -1/2 6

3 x2 1/2 1 0 0 0 0 1/2 4

Z 2 3 1 1 0 0 1 18
C-Z 0 0 0 -1+M 0 M –1

min 4/1 sale x2

5to cuadro

CB VB 2 3 1 M 0 M 0 V

x1 x2 x3 x4 x5 x6 x7
0 x5 1 4 0 3 1 -1 0 25

1 x3 1 1 1 1 0 0 0 10

0 x7 1 2 0 0 0 0 1 8

Z 1 1 1 1 0 0 0 10
C-Z 1 2 0 M-1 0 M 0

Min(C-Z) (1, 2, 0, M-1, 0, M, 0)

Resulta un PPL no factible.

También podría gustarte