mx Z =7 x1 +9 x 2
x 13 x 2 6
7 x1 + x 2 35
x 1 ; x 2 0 y entero
XB
X1
X2
S1
S2
bi
X2
7/22
1/22
7/2
X1
-1/22
3/22
9/2
28/11
15/11
63
X2 :
Tomando la ecuacin
X2+
1 1
f i = = , podemos
2 2
7
1
1
S 1 + S =3
22
22 2
2
X 2 + 0+
7
1
1
S 1+ 0+
S = 3+
22
22 2
2
) (
) ( )
S 3
7
1
1
S1 S =
22
22 2 2
XB
X1
X2
S1
S2
S3
bi
X2
7/22
1/22
3 2
X1
-1/22
3/22
4 2
S3
-7/22
-1/22
-1/2
28/11
15/11
63
XB
X1
X2
S1
S2
S3
bi
X2
X1
1/7
-1/7
4 7
S1
1/7
-22/7
1 7
4
4
59
X1 :
1
1
4
X 1 + S2 S 3=4
7
7
7
( 17 ) S +(1+ 76 ) S =(4 + 47 )
X 1 + 0+
1
6
4
S 4 S 2 S =
7
7 3 7
Agregando esto a la ltima tabla:
XB
X1
X2
S1
S2
S3
S4
bi
X2
X1
1/7
-1/7
S1
1/7
-22/7
S4
-1/7
-6/7
-4/7
59
0
0
4 7
1 7
XB
X1
X2
S1
S2
S3
S4
bi
X2
X1
-1
S1
-4
S2
-7
55
X1
X2 .
S 3
7
1
1
S1 S =
22
22 2 2
S 3
7
1
1
( 6+ X 13 X 2 ) 22 ( 357 X 1X 2 ) = 2
22
S 3 + X 2=3
Lo cual es equivalente a:
X 2 3 (1)
La ecuacin del segundo corte es:
1
6
4
S 4 S 2 S 3=
7
7
7
1
6
4
S 4 ( 357 X 1X 2) ( 3X 2 ) =
7
7
7
S 4 + X 1+ X 2=7
Lo cual es equivalente a:
X 1 + X 2 7 (2)
Entonces la adicin de estas 2 restricciones proporcionar el nuevo punto
extremo (ptimo):
X1
est
X 1
1
3
1
S1 + S 2 = 4 +
22
22
2
( )
S 3
{ ( )( ) }
1
2
3
1
1
S 2+
S1 =
22
1
22
2
1
2
S 3
1
3
1
S S=
22 1 22 2 2
XB
X1
X2
S1
S2
S3
bi
X2
7/22
1/22
3 2
X1
-1/22
3/22
4 2
S3
-1/22
-3/22
-1/2
28/11
15/11
63
1
1
XB
X1
X2
S1
S2
S3
bi
X2
10/33
-1/3
10/3
X1
-1/11
S2
1/3
-22/3
11/3
23/11
10
58
X1
entero):
Caso de ejemplo 3:
Max. Z= 4x1+5x2+x3 Sujeto a;
3x1 + 2x2 10
1x1 + 4x2 11
3x1 + 3x2 + x3 13
x1 , x2 ,x3 0 , enteros
Tabla inicial
Tabla optima
1a. Restriccin
x1+4/10 x4+8/10 x5 = 1 + 8/10
x1=1
4/10 x4+8/10 x5 8/10
s1 = 4/10 x4+8/10 x5-8/10
s1 - 4/10 x4-8/10 x5 =-8/10
2da. Restriccin
a [a] f= a -[a]
1
1
0
4/10 0
4/10
-2/10 -1 +8/10
requiere ser
a [a] f= a -[a]
2
2
0
-1/10 -1 + 9/10
3/10 0
3/10
a [a]
f= a
-[a]
1
-9/10
-3/10
1
-1
-1
0
+1/10
+7/10
como f1 (8/10) > f2 (3/10) y f1(8/10) > f3 (7/10) ( f1 tiene la mayor fraccin) se
trabaja con la ecuacin un 1 ecuacin
2da. Ecuacin
x2 +1/2 x5 +3/4 x1 = 2 + 5/10
x2 = 2
s2 = 1/2 x5 +3/4 s1-1/2
s2-1/2x5-3/4 s1=-1/2
3a. Ecuacin
x3 +1/2 x5 +x6 +3/4 s1 = 2 + 5/10
a [a]
1/2
-1/4
a [a]
f=a
0
-1
f =a
-[a]
1/2
3/4
-[a]
(1 1 /2 ) 3/2 1 1/2
(-21 /4 ) -9/4 -3 3/4
como son iguales sus partes fraccionales, se elige la ecuacin que corresponda
a la variable bsica con la mayor contribucin en la funcin objetivo (la
ecuacin 2).
Solucin ptima:
Por
Programacin lineal
x1= 1.8
x2= 2.3
x3= .7
Z* = 19.4
Si el sistema de ecuaciones fuera:
Programacin entera
x 1= 2
x 2= 2
x 3= 1
x 4= 0
x 5= 1
Z* =19
3x1+ 2x2 10
x1+ 4x2 11
3x1+ 3x2+ x3 13
x1+ 2x2 6 Corresponde al 1er corte
5x1+14x2 38 Corresponde al 2do corte
y su funcin objetivo
Max Z = 4x1 +5x2 +x3
La solucin ptima sera:
x1 = 2
x2 = 2
x3 = 1
z = 19
Obtencin de las ecuaciones de los cortes
1er Corte
Dado que inicialmente 3x1+2x2 10 y que 3x1+2x2 +x4 = 10, as x4 = 10- 3x1-2x2
Y dado que inicialmente x1+4x2 11 y que x1+4x2 + x5 = 11, as x5 = 11- x1- 4x2
Del primer corte, tenemos;
s1-4/10x4 -8/10x5 = -8/10
sustituyendo el valor de x4 y de x5 tenemos;
s1-4/10 (10-3x1-2x2) - 8/10 (11-x1-4x2) = -8/10
s1-128/10 +2x1+4x2= -8/10 ; s1+2x1+4x2= 12
Reduciendo, tenemos;
2x1+4x2 12
x1+2x2 6
2do Corte
Dado que inicialmente x1+2x2 6 y que x1+2x2 + s1 = 6, as s1 = 6- x1- 2x2
Del 2do. Corte tenemos que;
s2 -1/2 x5-3/4 s1 = -1/2
Sustituyendo el valor de s2, tenemos que;
s2 -1/2(11-x1-4x2) -3/4(6-x1-2x2) = -1/2
s2-11/2+1/2 x1+2x2-9/2+3/4 x1+3/2 x2 = -1/2
s2-10+5/4 x1+7/2 x2 = 19/2
Reduciendo, tenemos;
5/4 x1+7/2 x2 19/2
5/2 x1+7 x2 19
5x1+ 14x2 38
Caso de Ejemplo 4:
Max. Z = 2x1+ x2
Sujeto a;
x1 + x2 5
-x1 + x2 0
6x1 + 2x2 21
x1 , x2 0 , enteros
Max. Z = 2x1+ x2
Sujeto a;
x1 + x2 +x3 5
-x1 + x2 + x4 0
6x1 + 2x2 + x5 21
x1 , x2 0 , enteros
Tabla inicial
Tabla optima
a
11/4
-1/2
1/4
[a]
2
-1
0
f= a-[a]
3/4
1/2
1/4
a
1 1/2
-1/2
a
(3 1 /2 ) 1/2
( 1 1/2 ) 1/2
[a]
1
-1
f=a -[a]
1/2
1/2
[a]
3
0
f =a-[a]
1/2
1/2
3a. Ecuacin
x1 +1/2x5 -1s1 = 3 1/2
x1 -1s1 = 3
s2=1/2 x5+1/2
a
(3 1 /2 ) 1/2
( 1/2 ) 1/2
[a]
3
0
f =a-[a]
1/2
1/2
Solucin ptima:
Por
Programacin lineal
x1= 2.75
x2= 2.25
Programacin entera
x 1= 3
x 2= 1
x4= .5
Z* = 7.75
x 3= 1
x 4= 2
x 5= 1
Z* =7