You are on page 1of 41

METODO SIMPLEX

Luis Medina Aquino

METODO SIMPLEX
Es un mtodo sistemtico y eficiente
para encontrar y probar soluciones
situadas en los vrtices de
optimalidad. El mtodo Simplex
termina una vez se haya encontrado
la solucin ptima.

METODO SIMPLEX
Ejemplo:
Se tiene el siguiente programa lineal, en su forma cannica:
Maximizar Z = 200 X1 + 240 X2
Sujeto a:
6 X1 + 12 X2 120
8 X1 + 4 X2 64
X1 0, X2 0
El conjunto de soluciones factibles est
determinado por el polgono ABCD, en
donde:
Para A (0, 10) Z = 2,400
Para B (4, 8) Z = 2,720
Para C (8, 0) Z = 1,600
Para D (0, 0) Z = 0

Solucin Grfica

METODO SIMPLEX
El mtodo Simplex requiere que las
restricciones sean ecuaciones (o restricciones
con relacin de igualdad) en vez de
inecuaciones (o restricciones con relacin de
desigualdad).
Cualquier inecuacin puede ser convertida en
una ecuacin agregando una cantidad no
negativa en el lado de menor valor de la
inecuacin. Esta cantidad no negativa se llama
variable de holgura.

METODO SIMPLEX
En la restriccin 1 ser:
6 X1 + 12 X2 + S1 = 120
En la restriccin 2 ser:
8 X1 + 4 X2 + S2 = 64
El problema de programacin lineal incorporando las
variables de holgura se convierte en su forma
estndar:
Maximizar Z = 200 X1 + 240 X2 + 0 S1 + 0 S2
Sujeto a:
6 X1 + 12 X2 + 1 S1 + 0 S2 = 120 1a
8 X1 + 4 X2 + 0 S1 + 1 S2 = 64 2a
X1, X2, S1, S2 0

METODO SIMPLEX
Variables Bsicas y Soluciones Bsicas Factibles
El conjunto de soluciones bsicas en el problema dado
en 1a y 2a:
Solucin (1): X1 = 0, X2 = 0, S1 = 120, S2 = 64
Solucin (2): X1 = 8, X2 = 0, S1 = 72, S2 = 0
Solucin (3): X1 = 0, X2 = 1, S1 = 108, S2 = 60
Observe que las soluciones (1), (2) y (3) satisfacen
tambin las restricciones de no negatividad. Por tanto,
son soluciones factibles

METODO SIMPLEX
Si tenemos ms variables que ecuaciones,
podemos tener un conjunto extra de variables
iguales a cero, obteniendo as un sistema con
igual nmero de variables y restricciones. Una
solucin as es llamada una solucin bsica.
Una solucin bsica factible para las
ecuaciones 1a y 2a es una solucin que tenga a
lo sumo dos (= nmero de ecuaciones) variables
con valores positivos y el resto de variables con
valores iguales a cero.

METODO SIMPLEX

Las soluciones (1) y (2) son soluciones bsicas factibles.


Solucin (1): X1 = 0, X2 = 0
Variables no bsicas (= 0)

S1 = 120, S2 = 64
Variables bsicas (> 0)

Solucin (2): X2 = 0, S2 = 0
Variables no bsicas (= 0)

X1 = 8, S1 = 72
Variables bsicas (> 0)

Solucin (3): X1 = 0, X2 = 1, S1 = 108, S2 = 60


En la solucin 3 hay tres variables que son positivas, por tanto, es una
solucin factible pero no una solucin bsica factible.

METODO SIMPLEX
Maximizar Z = C1 X1 + C2 X2 + .... + Cn Xn + Cn+1 Xn+1 + .... + Cn+m Xn+m
Sujeto a :
a11 X1 + a12 X2 + .... + a1n Xn + Xn+1 (=S1)
= b1
a21 X1 + a22 X2 + .... + a2n Xn +
Xn+2 (=S2)
= b2
.
..
.
am1 X1 + am2 X2 + .... + amn Xn +
Xn+m (=Sm) = bm

Xj > 0
j = 1, 2, 3, ...., m+n

TABLA SIMPLEX
Cj

C1

C2

.... Cn

Cn+1

Cn+2

....Cn+m

CB

VB

X1

X2

.... Xn

Xn+1

Xn+2

....Xn+m

Cn+1

Xn+1

a11

a12

....a1n

....0

b1

Cn+2
....
....

Xn+2
....
....

a21
....
....

a22
....
....

....a2n
....
....

0
....
....

1
....
....

....0
....
....

b2
....
....

Cn+m

Xn+m

am1

am2

....amn

....1

bm

Z1

Z2

....Zn

Zn+1

Zn+2

....Zn+m

CBTB

Zj
Cj - Zj

C1-Z1 C2-Z2 ....Cn-Zn Cn+1-Zn+1 Cn+2-Zn+2 Cn+m-Zn+m


En este problema habr m variables bsicas con un valor
positivo y n variables no bsicas con valor cero, para que
exista una solucin bsica factible.

ITERACION 0
CB

Cj
VB

R01
R02

200
X1
6
8

240
X2
12
4

0
S1
1
0

0
S2
0
1

Zj
Cj - Zj
Maximizar Z = 200 X1 + 240 X2 + 0 S1 + 0 S2
Sujeto a:
6 X1 + 12 X2 + 1 S1 + 0 S2 = 120
8 X1 + 4 X2 + 0 S1 + 1 S2 = 64
X1, X2, S1, S2 0

B
120
64
Cj-Zj<0

ITERACION 0
R01
R02

CB
0
0

Cj
VB
S1
S2

200
X1
6
8

240
X2
12
4

0
S1
1
0

0
S2
0
1

Zj
Cj - Zj
Maximizar Z = 200 X1 + 240 X2 + 0 S1 + 0 S2
Sujeto a:
6 X1 + 12 X2 + 1 S1 + 0 S2 = 120
8 X1 + 4 X2 + 0 S1 + 1 S2 = 64
X1, X2, S1, S2 0

B
120
64
Cj-Zj<0

ITERACION 0
R01
R02

CB
0
0

Cj
VB
S1
S2

Zj
Cj - Zj

200
X1
6
8
0

240
X2
12
4
0

0
S1
1
0
0

0
S2
0
1
0

B
120
64
0
Cj-Zj<0

ITERACION 0
R01
R02

CB
0
0

Cj
VB
S1
S2

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 0
R01
R02

CB
0
0

Cj
VB
S1
S2

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

Solucin bsica. Vrtice D: X1=0, X2=0, S1=120, S2=64


Para A (0, 10)
Para B (4, 8)
Para C (8, 0)
Para D (0, 0)
Vrtice D

Z = 2,400
Z = 2,720
Z = 1,600
Z = 0

ITERACION 0
R01
R02

CB
0
0

Cj
VB
S1
S2

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240
Columna
pivote

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 0
R01
R02

CB
0
0

Cj
VB
S1
S2

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240
Columna
pivote

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

120/12 =10

64/4 =16

ITERACION 0
R01
R02

CB
0
0

Cj
VB
S1
S2

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240
Columna
pivote

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

120/12 =10

64/4 =16

ITERACION 0
R01
R02

CB
0
0

Cj
VB
S1
S2

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240
Columna
pivote

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

Fila pivote

ITERACION 0
R01

R02

Cj
VB
S1
S2

CB
0
0

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1

240
X2
1
0

0
S1

0
S2
0
1

Cj-Zj<0

ITERACION 0
R01

R02

Cj
VB
S1
S2

CB
0
0

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj
R11 = R01/12

200
X1

240
X2
1
0

0
S1

0
S2
0
1

Cj-Zj<0

ITERACION 0
R01

R02

Cj
VB
S1
S2

CB
0
0

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj
R11 = R01/12

200
X1
1/2

240
X2
1
0

0
S1
1/12

0
S2
0
1

B
10

Cj-Zj<0

ITERACION 0
Cj
VB
S1
S2

CB
0
0

R01

R02

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

200
X1
1/2

240
X2
1
0

0
S1
1/12

0
S2
0
1

B
10

Zj
Cj - Zj
R12= R02 - 4 R11

Cj-Zj<0
R0 2
-4R11

R1 2

64

ITERACION 0
Cj
VB
S1
S2

CB
0
0

R01

R02

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

200
X1
1/2

240
X2
1
0

0
S1
1/12

0
S2
0
1

B
10

Zj
Cj - Zj
R12= R02 - 4 R11

Cj-Zj<0
R0 2

64

-4R11

-2

-4

-1/3

-40

R1 2

ITERACION 0
Cj
VB
S1
S2

CB
0
0

R01

R02

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

200
X1
1/2

240
X2
1
0

0
S1
1/12

0
S2
0
1

B
10

Zj
Cj - Zj
R12= R02 - 4 R11

Cj-Zj<0
R0 2

64

-4R11

-2

-4

-1/3

-40

R1 2

-1/3

24

ITERACION 0
Cj
VB
S1
S2

CB
0
0

R01

R02

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

200
X1
1/2
6

240
X2
1
0

0
S1
1/12
-1/3

0
S2
0
1

B
10
24

Zj
Cj - Zj
R12= R02 - 4 R11

Cj-Zj<0
R0 2

64

-4R11

-2

-4

-1/3

-40

R1 2

-1/3

24

ITERACION 0
R01

R02

Cj
VB
S1
S2

CB
0
0

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120

240
X2
1
0
240

0
S1
1/12
-1/3
20

0
S2
0
1
0

B
10
24
2400
Cj-Zj<0

ITERACION 0
R01

R02

Cj
VB
S1
S2

CB
0
0

Zj
Cj - Zj

200
X1
6
8
0
200

240
X2
12
4
0
240

0
S1
1
0
0
0

0
S2
0
1
0
0

B
120
64
0
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

Solucin bsica. Vrtice A: X1=0, X2=10, S1=0, S2=24

Vrtice A

Para A (0, 10)


Para B (4, 8)
Para C (8, 0)
Para D (0, 0)

Z = 2,400
Z = 2,720
Z = 1,600
Z = 0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

200
X1
1/2
6
120
80

Zj
Cj - Zj

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10 10/(1/2) = 20
24 24/6 = 4
2400
Cj-Zj<0

Columna pivote

ITERACION 2
CB

Cj
VB

200
X1

240
X2

0
S1

0
S2

R21
R22

Zj
Cj - Zj

Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

200
X1
1/2
6
120
80

Zj
Cj - Zj

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10 10/(1/2) = 20
24 24/6 = 4
2400
Cj-Zj<0

Columna pivote

ITERACION 2
CB

Cj
VB

200
X1

240
X2

0
S1

0
S2

R21
R22

Zj
Cj - Zj

Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

200
X1
1/2
6
120
80

Zj
Cj - Zj

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

Columna pivote

ITERACION 2
R21
R22

CB
240
200

Cj
VB
X2
X1

Zj
Cj - Zj

200
X1
0
1

240
X2
1
0

0
S1

0
S2

Cj-Zj<0

Fila pivote

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

ITERACION 2
R21

R22

CB
240
200

Cj
VB
X2
X1

Zj
Cj - Zj
R22 = R12/6

200
X1
0
1

240
X2
1
0

0
S1

0
S2

Cj-Zj<0

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

ITERACION 2
R21

R22

CB
240
200

Cj
VB
X2
X1

Zj
Cj - Zj
R22 = R12/6

200
X1
0
1

240
X2
1
0

0
S1

0
S2

-1/18

1/6

4
Cj-Zj<0

ITERACION 1
CB
240
0

R11

R12

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

ITERACION 2
R21

R22

CB
240
200

Cj
VB
X2
X1

200
X1
0
1

240
X2
1
0

0
S1

0
S2

-1/18

1/6

Zj
Cj - Zj
R21= R11 1/2 R22

Cj-Zj<0
R11
-1/2R22
R2 1

1/2

1/12

10

ITERACION 1
CB
240
0

R11

R12

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

ITERACION 2
R21

R22

CB
240
200

Cj
VB
X2
X1

200
X1
0
1

240
X2
1
0

0
S1

0
S2

-1/18

1/6

Zj
Cj - Zj
R21= R11 1/2 R22

Cj-Zj<0
R11

1/2

1/12

10

-1/2R22

-1/2

1/36

-1/12

-2

R2 1

ITERACION 1
CB
240
0

R11

R12

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

ITERACION 2
R21

R22

CB
240
200

Cj
VB
X2
X1

200
X1
0
1

240
X2
1
0

0
S1

0
S2

-1/18

1/6

Zj
Cj - Zj
R21= R11 1/2 R22

Cj-Zj<0
R11

1/2

1/12

10

-1/2R22

-1/2

1/36

-1/12

-2

R2 1

1/9

-1/12

ITERACION 1
CB
240
0

R11

R12

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

ITERACION 2
R21

R22

CB
240
200

Cj
VB
X2
X1

200
X1
0
1

240
X2
1
0

0
S1
1/9
-1/18

0
S2
-1/12
1/6

Zj
Cj - Zj
R21= R11 1/2 R22

B
8
4
Cj-Zj<0

R11

1/2

1/12

10

-1/2R22

-1/2

1/36

-1/12

-2

R2 1

1/9

-1/12

ITERACION 1
R11

R12

CB
240
0

Cj
VB
X2
S2

Zj
Cj - Zj

200
X1
1/2
6
120
80

240
X2
1
0
240
0

0
S1
1/12
-1/3
20
-20

0
S2
0
1
0
0

B
10
24
2400
Cj-Zj<0

ITERACION 2
R21

R22

CB
240
200

Cj
VB
X2
X1

Zj
Cj - Zj

200
X1
0
1
200
0

240
X2
1
0
240
0

0
S1
1/9
-1/18
140/9
-140/9

0
S2
B
-1/12
8
1/6
4
40/3
2720
-40/3 Cj-Zj<0

ITERACION 2
R21
R22

CB
240
200

Cj
VB
X2
X1

Zj
Cj - Zj

200
X1
0
1
200
0

240
X2
1
0
240
0

0
S1
1/9
-1/18
140/9
-140/9

0
S2
B
-1/12
8
1/6
4
40/3
2720
-40/3 Cj-Zj<0

Ya que todos los Cj Zj, 0 entonces la tabla es ptima.


La respuesta final es: X1 = 4 y X2 = 8 (variables bsicas) y
S1 = S2 = 0 (variables no bsicas), y el valor de Z = 2720.
Para A (0, 10)
Para B (4, 8)
Para C (8, 0)
Vrtice B Para D (0, 0)

Z = 2,400
Z = 2,720
Z = 1,600
Z = 0

GRACIAS

Ing. Luis
Medina

You might also like