Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Investigacion Operativa I
Ingenieria Informatica
EJEMPLO 01:
Min Z = 4x1 + x2
s.a:
3x1 +
x2
4x1 +
3x2
>=
x1 +
2x2
<=
>=
x1, x2
Para resolver por el metodo M se debe tener en cuenta, los simbolos si las
restricciones son , , = dependiendo de ello se estandariza.
SOLUCION:
Standarizamos las variables artificiales, y le agregamos la variable de exceso a todos los
que tengan el signo(), y le aadimos una artificial.
3x1 +
4x1 +
x1 +
x2
3x2
2x2
+ R1
- x3
+ R2
+ x4
x1, x2, x3, R1, R2, x4
=
=
=
>=
3
6
4
0
1.
R1 = 3 -
3 x1 - x2
2.
R2 = 6 -
4 x1 + x2
Z = 4 x1
Z = x1(4 -7M)
Investigacion Operativa I
+ x2 (1 - 4M) + X3 M
x3
+ M(6 - 4x1 3x2 + x3)
+ 9M
Ingenieria Informatica
+ x2 (1 - 4M) + X3 M
+ 9M
s.a:
3x1 + x2 + x3 +
R1
0R2
+ 0 x4
+ 0R1
+ R2
+ 0 x4
x1 + x2 + x3 + 0R1
0R2
+ x4
4x1 + x2
x3
Var. B.
Z
R1
R2
X4
Z
1
0
0
0
X1
-4+7M
3
4
1
X2
-1+4M
1
3
2
X3
-M
0
-1
0
R1
0
1
0
0
>=
R2
0
0
1
1
X4
0
0
0
1
Solucion.
9M
3
6
4
Z
1
0
0
0
X1
-4+7M
3
4
1
X2
-1+4M
1
3
2
X3
-M
0
-1
0
R1
0
1
0
0
R2
0
0
1
1
X4
0
0
0
1
Solucion.
9M
3
6
4
1
1,5
4
Investigacion Operativa I
Ingenieria Informatica
Var. B.
Z
R1
R2
X4
Z
1
0
0
0
Variable
Entrada
X2
X3
R1
-1+4M
-M
0
1
0
1
3
-1
0
2
0
0
X1
-4+7M
3
4
1
R2
0
0
1
1
Elemento
Pivote
Variable
Salida
X4
0
0
0
1
Solucion.
9M
3
6
4
1
1,5
4
Ecuacion Pivote
Luego para hallar la nueva ecuacion pivote, se divide la ecuacion pivote anterior
entre el elemento pivote.
R1
/3
1/3
1/3
Variable B.
X1
X2
X3
R1
R2
X4
Solucion
Z
X1
R2
X4
1
0
0
0
0
1
0
0
1+5M/3
1/3
5/3
5/3
-M
0
-1
0
4-7M/3
1/3
-4/3
-1/3
0
0
1
0
0
0
0
1
2M+4
4
2
5
Investigacion Operativa I
Ingenieria Informatica
Nueva Ecuacion Z:
Ec. Z anterior:
-(-4+7M)*(n.e.p):
1
0
-4+7M
4-7M
-1+4M
4-7M/3
-M
0
0
4-7M/3
0
0
0
0
9M
4-7M
1+5M/3
-M
4-7M/3
2M+4
0
0
4
-4
3
4/3
-1
0
0
-4/3
1
0
0
0
6
-4
5/3
-1
-4/3
0
0
1
-1
2
1/3
0
0
0
-1/3
0
0
1
0
4
-1
5/3
-1/3
Variable B.
X1
X2
X3
R1
R2
X4
Solucion
Z
X1
R2
X4
1
0
0
0
0
1
0
0
1+5M/3
1/3
5/3
5/3
-M
0
-1
0
4-7M/3
1/3
-4/3
-1/3
0
0
1
0
0
0
0
1
2M+4
4
2
5
5/3
3
1,2
1,8
5/3
-1
-4/3
Investigacion Operativa I
Ingenieria Informatica
-3/5
-4/5
3/5
6/5
Variable B.
X1
X2
X3
R1
R2
X4
Solucion
Z
X1
X2
X4
1
0
0
1
0
0
1/5
1/5
8-5M/5
3/5
-1-5M/5
-1/5
0
0
18/5
3/5
-3/5
-4/5
3/5
6/5
-1
4-7M/3
4+20M15
0
-1-5M/5
8-5M/5
-1-5M/5
Ec. Z anterior:
-(1+5M/3)*(n.e.p):
1
0
0
0
1+5M/3
-1-5M/3
-M
1+5M/5
1/5
0
0
0
2M+4
4-7M
18/5
0
0
1
0
1/3
-1/3
0
1/5
1/3
4/15
0
-1/5
0
0
1
-2/5
1/5
3/5
-1/5
3/5
Investigacion Operativa I
0
0
0
-1
5/3
-5/3
0
1
-1/3
4/3
0
-1
1
0
3
-2
-1
Ingenieria Informatica
Variable B.
X1
X2
X3
R1
R2
X4
Solucion
Z
X1
X2
X4
1
0
0
0
0
1
0
0
0
0
1
0
1/5
1/5
-3/5
1
8-5M/5
3/5
-4/5
1
-1-5M/5
-1/5
3/5
-1
0
0
0
1
18/5
3/5
6/5
1
3
1,2
1
-1
/1
-1
Variable B.
X1
X2
X3
R1
R2
X4
Solucion
Z
X1
X2
X3
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
7-5M/5
3/5
-1/5
1
-M
-1/5
0
-1
-1/5
17/5
2/5
9/5
1
0
3/5
1
Ec. Z anterior:
-(1/5)*(n.e.p):
1
0
0
0
0
0
1/5
-1/5
8-5M/5
-1/5
-1-5M/5
1/5
7-5M/5
-M
Investigacion Operativa I
0
-1/5
-1/5
18/5
-1/5
17/5
Ingenieria Informatica
0
0
1
0
0
0
1/5
-1/5
3/5
-1/5
-1/5
1/5
0
-1/5
3/5
-1/5
3/5
-1/5
2/5
0
0
0
0
1
0
-3/5
3/5
-4/5
3/5
3/5
-3/5
0
3/5
6/5
3/5
-1/5
3/5
9/5
Se obtienen la tabla:
Variable B.
X1
X2
X3
R1
R2
X4
Solucion
Z
X1
X2
X3
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
7-5M/5
3/5
-1/5
1
-M
-1/5
0
-1
-1/5
17/5
2/5
9/5
1
0
3/5
1
Investigacion Operativa I
Ingenieria Informatica
ste mtodo difiere del Simplex en que primero hay que resolver un problema auxiliar que
trata de minimizar la suma de las variables artificiales. Una vez resuelto este primer
problema y reorganizar la tabla final, pasamos a la segunda fase, que consiste en realizar
el mtodo Simplex normal.
FASE I:
Se realiza la minimizacin de una funcin que est compuesta por la suma de los
valores de las variables artificiales; para el sistema aumentado del problema
original. (Independientemente de qu funcin objetivo tenga el problema original).
Si en la solucin ptima de la FASE I, el valor de las variables artificiales es de
cero, se procede con la FASE II tomando la solucin bsica factible resultante.
Si alguna de las variables artificiales tiene un valor distinto a cero, el problema
original es infactible.
FASE II:
Utilizando la solucin bsica factible final de la FASE I, se resuelve el problema
original, esto es, se resuelve para la funcin objetivo del problema original; si se
desea, se pueden eliminar las columnas artificiales.
Ntese que primeramente debe actualizarse correctamente el rengln cero para el
conjunto de variables bsicas que defini la FASE I.
Con la tabla en forma correcta se procede a optimizar de forma habitual siguiendo
el algoritmo Simplex.
Investigacion Operativa I
Ingenieria Informatica
EJEMPLO 01:
Min Z = 2000x1 + 500x2
s.a:
2x1
3x2
>=
36
3x1
6x2
>=
60
>=
x1, x2
Para minimizar la funcion objeto por el metodo de dos faces se debe seguir los
siguientes pasos y realizar por dos faces.
PRIMER PASO: Estandarizamos:
2x1 +
3x1 +
3x2 + R1
6x2
=
36 +
+ R2
=
60 +
x1, x2, R1, R2
>=
S1
S2
0
FASE I
Min Z = R1 + R2
S.a:
2x1
3x1
+
+
3x2
6x2
S1
0S1
0S2
S2
+
+
R1
0 R1
+
0R2
+
R2
x1, x2, R1, R2
=
=
>=
36
60
0
Z
1
0
0
Investigacion Operativa I
X1
0
2
3
X2
0
3
6
S1
0
-1
0
S2
0
0
-1
R1
-1
1
0
R2
-1
0
1
Solucion
0
36
60
Ingenieria Informatica
Variable Entrada
Var. B
Z
R1
R2
X1
X2
1
0
0
5
2
3
9
3
6
S1
-1
-1
0
S2
-1
0
-1
R1
0
1
0
R2
0
0
1
Solucion
96
36
60
Variable Salida
Elemento Pivote
Ecuacion Pivote
Var. B
Z
R1
X2
X1
1
0
0
1/2
1/2
1/2
S1
-1
-1
0
X2
0
0
1
S2
1/2
1/2
-1/6
R1
0
1
0
R2
-9/6
-1/2
1/6
Solucion
6
6
10
Ec. Z anterior:
-(9)*(n.e.p):
-1
-1
96
-9/2
-9
9/6
-9/6
-90
Investigacion Operativa I
Ingenieria Informatica
0
1
1/2
Nueva Ecuacion en R1:
Ec. R1 anterior:
-(3)*(n.e.p):
-1
1/2
-9/6
-1
36
-3/2
-3
1/2
-1/2
-30
1/2
-1
1/2
-1/2
X2
0
S1
-1
-1
0
S2
1/2
1/2
-1/6
LA NUEVA TABLA:
Var. B
Z
R1
X2
X1
1
0
0
1/2
1/2
1/2
0
1
R1
0
1
0
R2
-9/6
-1/2
1/6
Solucion
6
6
10
0 -2
1 2
-1 12
Var. B
Z
X1
X2
S1
0
S2
0
R1
-1
X2
0
0
-2
-1
-1
-2/3
-1
2/3
X1
R2
Solucion
0
12
Nueva Ecuacion Z:
Ec. Z anterior:
-(1/2)*(n.e.p):
1/2
-1/2
Investigacion Operativa I
0
0
0
-1
1/2
-1/2
-1
-1
-3/2
1/2
-1
6
-6
Ingenieria Informatica
1/2
-1/6
1/6
10
-1/2
-1/2
-1
1/2
-6
-2/3
-1
2/3
S1
0
S2
0
R1
-1
-2
-1
1
-2/3
-1
2/3
LA NUEVA TABLA:
Var. B
Z
X1
X2
X1
X2
0
0
R2
Solucion
0
12
FASE II:
Min Z = 2000X1 + 500X2
Z= -2000 - 500 -0S1 -0S2=0
Se toma la solucin bsica factible de la FASE I como la solucin inicial, se
eliminan las columnas artificiales.
V. B.
X1
X2
S1
S2
Solucin
1
0
0
-2000
1
0
-500
0
1
0
-2
1
0
1
-2/3
0
12
4
X1
X2
Investigacion Operativa I
Ingenieria Informatica
X1
X2
S1
S2
Solucin
-2000
-500
X1
0
0
1
0
0
1
-2
1
1
-2/3
12
4
X2
-2/3
-2/3
V. B.
X1
X2
S1
S2
Solucin
1
0
0
-2000
1
0
500
-2
1
-1000/3
1
-2/3
2000
12
4
X1
X2
0
1
Nueva Ecuacion Z:
Ec. Z anterior:
-(-500)*(n.e.p):
-2000
-500
500
-1000/3
2000
-2000
500
0
500
-1000/3
2000
Investigacion Operativa I
-2
12
-2
12
Ingenieria Informatica
V. B.
X1
X2
S1
S2
Solucin
1
0
0
-2000
1
0
500
-2
1
-1000/3
1
-2/3
2000
12
4
X1
X2
0
1
: 0
-2
-2
12
12
V. B.
X1
X2
S1
S2
Solucin
-3500
-5000/3
26000
X1
-2
12
X2
-2/3
500
-1000/3
2000
-4000
2000
24000
-3500
-5000/3
26000
Nueva Ecuacion Z:
Ec. Z anterior:
-(-2000)*(n.e.p):
-2000
2000
0
0
0
Investigacion Operativa I
-2/3
-2/3
Ingenieria Informatica
Nueva Tabla:
V. B.
X1
X2
S1
S2
Solucin
-3500
-5000/3
26000
X1
-2
12
X2
-2/3
-2
12
V. B.
X1
X2
S1
S2
Solucin
-5000/3
-500/3
6000
S2
-2
12
X2
2/3
-1/3
12
-3500
-10000/3
-5000/3
-5000/3
26000
-60000/3
-500/3
6000
Nueva Ecuacion Z:
Ec. Z anterior:
-(-5000/3)*(n.e.p):
1
0
0
-5000/3
-5000/3
0
0
0
Investigacion Operativa I
-2/3
2/3
-4/3
2/3
2/3
-1/3
12
Ingenieria Informatica
X1
X2
S1
S2
Solucin
-5000/3
-500/3
6000
S2
-2
12
X2
2/3
-1/3
12
Solucin ptima:
Min Z = 2000x1 + 500x2
X1 = 0, X2 = 12,
Min Z = 2000(0) + 500(12)
Z = 6000
Investigacion Operativa I
Ingenieria Informatica
Investigacion Operativa I
Ingenieria Informatica
EJEMPLO 01:
Min. Z = 4X1 + 12X2 + 18X3
S.A.
X1+ 3X3 3
2X2 + 2X3 5
X1, X2, X3 0
Solucin:
PASO 1: Convertir el problema de minimizacin en uno de maximizacin. La
funcin objetivo se multiplica por -1
F.O.
Max. Z = - 4X1 - 12X2 - 18X3
Las restricciones se multiplican por -1
S.A.
- X1 - 3X3 -3
- 2X2 - 2X3 -5
X1, X2, X3 0
= -3
+ S2 = -5
Investigacion Operativa I
Ingenieria Informatica
Bsicas: S1 y S2
No Bsicas: X1, X2 y X3
Variables
Bsica
X1
X2
Solucin
X3
S1
S2
S1
-1
-3
-3
S2
-2
-2
-5
12
18
Variable
Variables
Bsica
Solucin
X1
X2
X3
S1
S2
S1
-1
-3
-3
S2
-2
-2
-5
12
18
Razn
-6
-9
-2
-2
-5
Fila Pivote
-2 -2
-2
-2 -2
-2
Elemento Pivote
Investigacion Operativa I
Ingenieria Informatica
0 -0,5 2,5
b) Nuevas filas = fila anterior (coeficiente de la columna pivote x nueva fila pivote.)
Nueva Fila (S1)
-1
-3
0
0
-3
0
Fila Anterior
0 -0,5 2,5
-1
-3
Nueva Fila
Coeficiente
-3
4
12
12
18
12
12
12
12
12
-0,5
2,5
-30
Variables
Solucin
X1
X2
X3
S1
S2
S1
-1
-3
-3
X2
-1
2,5
-30
Razn
-4
-2
Investigacion Operativa I
Ingenieria Informatica
Variables
Solucin
X1
X2
X3
S1
S2
X1
0,33
0,33
X2
0,33
0,33
-0,5
1,5
-36
NOTA: No hay mas iteraciones cuando no existan soluciones con coeficientes negativos.
Investigacion Operativa I
Ingenieria Informatica