Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Vicerrectorado Académico
Área de Matemáticas
Carrera Ingeniería de Sistemas
Variables de Decisión.
Función Objetivo.
Restricciones.
El modelo matemático de Programación Lineal.
Solución:
Minimizar Z =7 XM + 8 XS+8,5 XR
En cuanto a las restricciones tenemos que producir 1.000 tostadoras, por lo que:
XM + Xs+ XR ≤ 1.000
Las Horas disponibles de Mano de Obra Calificada no pueden exceder de 4.500 Horas:
XM +4 XS+8 XR ≤ 4.500
3 XM +2 XS+4 XR ≤2.700
XM , XS y XR≥ 0
Minimizar Z =7 XM + 8 XS+8,5 XR
Sujeto a:
XM + Xs+ XR ≤ 1.000
XM +4 XS+8 XR ≤ 4.500
3 XM +2 XS+4 XR ≤2.700
XM , XS y XR≥ 0
Solución:
Las Horas disponibles de Mano de Obra Calificada no pueden exceder de 3.600 Horas:
XM +4 XS+8 XR ≤ 3.600
Minimizar Z =7 XM + 8 XS+8,5 XR
Sujeto a:
XM + Xs+ XR ≤ 1.000
XM +4 XS+8 XR ≤ 3.600
3 XM +2 XS+4 XR ≤2.700
XM , XS y XR≥ 0
XM + Xs+ XR ≤ 1.000
XM +4 XS+8 XR ≤ 3.600
3 XM +2 XS+4 XR ≤2.700
XM , XS y XR≥ 0
M: 1, U: 2, O: 2 C/D: 1/1
2. Un auto mercado dispone de 200 jamones y 300 botellas de vino con los que realiza
dos tipos de lotes navideños. El lote A consta de dos jamones y dos botellas de vino y el
lote B de 1 jamón y 3 botellas de vino. Si el beneficio por cada lote de A es de 30 UM
(UM=Unidades Monetarias) y por cada lote de B de 15 UM ¿cuántos lotes de cada tipo
debe preparar para conseguir un beneficio máximo?
Solución:
MAX ZX = 30 X1 + 15 X2
sujeto a
2X + X2 ≤ 200
1
2X + 3 X2 ≤ 300
1
y X1,X2≥0;
2X1+X2≤200→ (1)
Trátelo como
2X1+X2=200
Cuando X1=0 luego
X2=?
⇒2 (0)+X2=200
⇒X2=200
Cuando X2=0 luego
X1=?
⇒2X1+ (0)=200
⇒2X1=200
⇒X1=2002=100
2X1+3X2≤300→ (2)
Trátelo como
2X1+3X2=300
Cuando X1=0 luego
X2=?
⇒2 (0)+3X2=300
⇒3X2=300
⇒X2=3003=100
Cuando X2=0 luego
X1=?
⇒2X1+3(0)=300
⇒2X1=300
⇒X1=3002=150
Solución:
MAX Z = 3x1 + 2x2 + x3
sujeto a
3x1 + 2x2 + 2x3 = 8
3x1 + 4x2 + x3 = 7
y x1, x2, x3> = 0
Solución: El problema es
Max Z = 3 X1 + 2 X2 + X3
sujeto a
X X
3 X1 + 2 + 2 = 8
2 3
X X
3 X1 + 4 + =7
2 3
y X1,X2,X3≥0;
MinRatio
B CB XB X1 X2 X3 A1 A2
XBX1
A1 -1 8 3 2 2 1 0 83=2.6667
A2 -1 7 (3) 4 1 0 1 73=2.3333→
Z=-15 Zj -6 -6 -3 -1 -1
Zj-Cj -6↑ -6 -3 0 0
Iteration-2 Cj 0 0 0 -1
MinRatio
B CB XB x1 x2 x3 A1
XBx3
A1 -1 1 0 -2 (1) 1 11=1→
Z=-1 Zj 0 2 -1 -1
Zj-Cj 0 2 -1↑ 0
B CB XB x1 x2 x3 MinRatio
x3 0 1 0 -2 1
x1 0 2 1 2 0
Z=0 Zj 0 0 0
Zj-Cj 0 0 0
Iteration-1 Cj 3 2 1
B CB XB x1 x2 x3 MinRatio
x3 1 1 0 -2 1
x1 3 2 1 2 0
Z=7 Zj 3 4 1
Zj-Cj 0 2 0
Solución:
x
MIN zx = 3 - 2 x2 + 4 x3
1
sujeto a
x
3 x1 + 5 x2 + 4 ≥7
3
x
6 x1 + x2 + 3 ≥4
3
x
7 x1 - 2 x2 - ≤ 10
3
x
x1 - 2 x2 + 5 ≥3
3
x
4 x1 + 7 x2 - 2 ≥2
3
y x1,x2,x3≥0;
sujeto a
3 x1 + 5 x2 + 4 x3 - S1 + A1 = 7
6 x1 + x2 + 3 x3 - S2 + A2 = 4
7 x1 - 2 x2 - x3 + S3 = 10
x1 - 2 x2 + 5 x3 - S4 + A3 = 3
4 x1 + 7 x2 - 2 x3 - S5 + A4 = 2
y x1, x2, x3, S1, S2, S3, S4, S5, A1, A2, A3, A4≥0
Iteration
Cj 3 -2 4 0 0 0 0 0 M M M M
-1
C S S S S S A A A A MinRatio
B XB x1 x2 x3
B 1 2 3 4 5 1 2 3 4 XBx1
73=2.333
A1 M 7 3 5 4 -1 0 0 0 0 1 0 0 0
3
46=0.666
A2 M 4 6 1 3 0 -1 0 0 0 0 1 0 0
7
107=1.42
S3 0 10 7 -2 -1 0 0 1 0 0 0 0 0 0
86
A3 M 3 1 -2 5 0 0 0 -1 0 0 0 1 0 31=3
A4 M 2 (4) 7 -2 0 0 0 0 -1 0 0 0 1 24=0.5→
- - - -
z=16M Zj 14M 11M 10M 0 M M M M
M M M M
Zj- 14M- 11M 10M - - - -
0 0 0 0 0
Cj 3↑ +2 -4 M M M M
Iterati
C_j 3 -2 4 0 0 0 0 0 M M M
on-2
C x S S S S A A A MinRatio
B XB x2 x3 S5
B 1 1 2 3 4 1 2 3 (XB)/(x3)
- (5.5)/
A1 M 5.5 0 -0.25 5.5 0 0 0 0.75 1 0 0
1 (5.5)=1
(1)/
-
A2 M 1 0 -9.5 (6) 0 0 0 1.5 0 1 0 (6)=0.1667-
1
>
(6.5)/
S3 0 6.5 0 -14.25 2.5 0 0 1 0 1.75 0 0 0
(2.5)=2.6
(2.5)/
-
A3 M 2.5 0 -3.75 5.5 0 0 0 0.25 0 0 1 (5.5)=0.454
1
5
-
z=9M 17M- - - - 2.5M-
Z_j 3 13.5M+ 0 M M M
+1.5 1.5 M M M 0.75
5.25
-
Z_j- 17M- - - - 2.5M-
0 13.5M+ 0 0 0 0
C_j 5.5uarr M M M 0.75
7.25
C x x S S S A A MinRatio
B XB x2 S2 S5
B 1 3 1 3 4 1 3 (XB)/(x2)
4.5 (4.5833)/
-
A1 M 83 0 8.4583 0 0.9167 0 0 -0.625 1 0 (8.4583)=0.5
1
3 419
0.1
x3 4 66 0 -1.5833 1 0 -0.1667 0 0 0.25 0 0 ---
7
6.0
S3 0 83 0 -10.2917 0 0 0.4167 1 0 1.125 0 0 ---
3
1.5 (1.5833)/
-
A3 M 83 0 (4.9583) 0 0 0.9167 0 -1.125 0 1 (4.9583)=0.3
1
3 193->
0.5 (0.5833)/
x1 3 83 1 0.9583 0 0 -0.0833 0 0 -0.125 0 0 (0.9583)=0.6
3 087
z=6.1667 1.8333 -
13.4167M- - -
M+2.416 Z_j 3 4 M- 0 1.75M M M
3.4583 M M
7 0.9167 +0.625
Z_j 1.8333 -
13.4167M- - -
- 0 0 M- 0 1.75M 0 0
1.4583uarr M M
C_j 0.9167 +0.625
C x x x S S A MinRatio
B XB S2 S4 S5
B 1 2 3 1 3 1 (XB)/(S4)
(1.8824)/
1.8 -
A1 M 0 0 0 -0.6471 0 (1.7059) 1.2941 1 (1.7059)=1.10
824 1
34->
0.6
x3 4 0 0 1 0 0.1261 0 -0.3193 -0.1092 0 ---
723
9.3
S3 0 0 0 0 0 2.3193 1 -2.0756 -1.2101 0 ---
697
- 0.3
x2 0 1 0 0 0.1849 0 -0.2017 -0.2269 0 ---
2 193
(0.2773)/
0.2
x1 3 1 0 0 0 -0.2605 0 0.1933 0.0924 0 (0.1933)=1.43
773
48
-
z=1.8824 - - 1.7059M- 1.2941M
Z_j 3 4 0.6471M 0 M
M+2.8824 2 M 0.2941 +0.2941
-0.6471
Z_j - 1.7059M-
- 1.2941M
- 0 0 0 0.6471M 0 0.2941uar 0
M +0.2941
C_j -0.6471 r
C x x x S S MinRatio
B XB S1 S2 S5
B 1 2 3 3 4 (XB)/(S5)
- -
1.103 (1.1034)/
S4 0 0 0 0 0.586 0.379 0 1 (0.7586)
4 (0.7586)=1.4545->
2 3
-
1.024 0.004 (1.0246)/
x3 4 0 0 1 0.187 0 0 0.133
6 9 (0.133)=7.7037
2
-
11.66 (11.6601)/
S3 0 0 0 0 1.216 1.532 1 0 0.3645
01 (0.3645)=31.9865
7
-
0.541 0.108
x2 -2 0 1 0 0.118 0 0 -0.0739 ---
9 4
2
-
0.113
x1 3 0.064 1 0 0 0.187 0 0 -0.0542 ---
3
2
- -
z=3.20 -
Z_j 3 4 0.172 0.758 0 0 0.5172
69 2
4 6
- -
Z_j- 0.5172u
0 0 0 0.172 0.758 0 0
C_j arr
4 6
Iteration
C_j 3 -2 4 0 0 0 0 0
-6
C x x x S S MinRatio
B XB S1 S2 S4
B 1 2 3 3 5 (XB)/(S1)
- 1.318
S5 0 1.4545 0 0 0 -0.5 0 1 ---
0.7727 2
-
- 0.071
x3 4 0.8312 0 0 1 0 0.175 0 ---
0.0844 4
3
-
11.129 - 1.714
S3 0 0 0 0 1 0.480 0 ---
9 0.9351 3
5
- 0.071 0.097
x2 -2 0.6494 0 1 0 0 0 ---
0.1753 4 4
-
(0.071 0.071 (0.1429)/
x1 3 0.1429 1 0 0 0.214 0 0
4) 4 (0.0714)=2->
3
-
z=2.454
Z_j 3 -2 4 0.2273 -0.5 0 0.681 0
5
8
-
Z_j-
0 0 0 0.2273 -0.5 0 0.681 0
C_j
8
Iteration-
C_j 3 -2 4 0 0 0 0 0
7
MinRati
C x x S S S o
B XB x1 S2 S4
B 2 3 1 3 5 (XB)/(S2
)
10.818
S5 0 3 0 0 0 -2.8182 0 2.0909 1 ---
2
-
x3 4 1 1.1818 0 1 0 -0.1818 0 0 ---
0.0909
13.090
S3 0 13 0 0 0 -1.0909 1 0.4545 0 ---
9
S1 0 2 14 0 0 1 -3 0 1 0 ---
-
z=2 Z_j -0.1818 -2 4 0 0.1818 0 0
0.9091
Z_j- 0.1818uar -
-3.1818 0 0 0 0 0
C_j r 0.9091
La variable S2 debe entrar en la base, pero todos los coeficientes de la columna S2 son
negativos o cero. Entonces, S2 no se puede ingresar en la base.
Por tanto, la solución al problema dado es ilimitada.
Solución Dual
Solución:
El problema es
Max z = 7 y1 + 4 y2 - 10 y3 + 3 y4 + 2 y5
sujeto a
3 y1 + 6 y2 - 7 y3 + y4 + 4 y5 ≤ 3
5 y1 + y2 + 2 y3 - 2 y4 + 7 y5 ≤ -2
Aquí b2 = -2 <0,
así que multiplique esta restricción por -1 para hacer b2> 0.
- 5 y1 - y2 - 2 y3 + 2 y4 - 7 y5 ≥ 2
4 y1 + 3 y2 + y3 + 5 y4 - 2 y5 ≤ 4
e y1, y2, y3, y4, y5 ≥0;
Iteration-
Cj 7 4 -10 3 2 0 0 0 -M
1
MinRati
C S S S A
B XB y1 y2 y3 y4 y5 o
B 1 2 3 1
XBy4
S1 0 3 3 6 -7 1 4 1 0 0 0 31=3
A1 -M 2 -5 -1 -2 2 -7 0 -1 0 1 22=1
S3 0 4 4 3 1 (5) -2 0 0 1 0 45=0.8→
z=-2M Zj 5M M 2M -2M 7M 0 M 0 -M
Iteration- -
Cj 7 4 -10 3 2 0 0 0
2 M
C y S S A MinRa
B XB y1 y2 y3 y5 S3
B 4 1 2 1 tio
-
A1 0.4 -6.6 -2.2 -2.4 0 -6.2 0 -1 -0.4 1
M
M: 3, U: 7, O: 7 C/D: 1/1
5. Dado el siguiente problema de programación lineal aplique el Método Simplex para
hallar su solución, evitando la ocurrencia de ciclaje. Especifique los criterios empleados
para la selección de variables entrantes y salientes.
Solución:
El problema es
Max Z = 2 X1 + 3 X2 - X3 - 12 X4
sujeto a
-2 X1 - 9 X2 + X3 + 9 X4 ≤ 0
0.333
X1 + X2 - 0.3333 X3 - 2 X4 ≤ 0
3
y X1,X2,X3,X4≥0;
El problema se convierte a forma canónica agregando holgura, excedente y variables
artificiales según corresponda
S
Max Z = 2 X1 + 3 X2 - X3 - 12 X4 + 0 + 0 S2
1
sujeto a
X
-2 X1 - 9 X2 + + 9 X4 + S1 =0
3
0.333 X S
X1 + X2 - 0.3333 - 2 X4 + =0
3 3 2
y X1,X2,X3,X4,S1,S2≥0
Iteración-1 Cj 2 3 -1 -12 0 0
MinRatio
B CB XB X1 X2 X3 X4 S1 S2
XBX2
S1 0 0 -2 -9 1 9 1 0 ---
Z=0 Zj 0 0 0 0 0 0
MinRatio
B CB XB x1 x2 x3 x4 S1 S2
(XB)/(x1)
S1 0 0 (1) 0 -2 -9 1 9 (0)/(1)=0->
Z=0 Z_j 1 3 -1 -6 0 3
Z_j-C_j -1uarr 0 0 6 0 3
∴ El elemento pivote es 1.
Iteration-3 Cj 2 3 -1 -12 0 0
MinRatio
B CB XB x1 x2 x3 x4 S1 S2
XBx4
x1 2 0 1 0 -2 -9 1 9 ---
Z=0 Zj 2 3 -3 -15 1 12
Zj-Cj 0 0 -2 -3↑ 1 12
∴ El elemento pivote es 1.
Iteration-4 Cj 2 3 -1 -12 0 0
MinRatio
B CB XB x1 x2 x3 x4 S1 S2
XBx3
x1 2 0 1 9 1 0 -2 -9 01=0
Z=0 Zj 2 6 -2 -12 0 6
Zj-Cj 0 3 -1↑ 0 0 6
El mínimo negativo Zj-Cj es -1 y su índice de columna es 3. Entonces, la variable de
entrada es x3.
Iteration-5 Cj 2 3 -1 -12 0 0
MinRatio
B CB XB x1 x2 x3 x4 S1 S2
XBS1
x1 2 0 1 6 0 -3 -1 -3 ---
x3 -1 0 0 3 1 3 -1 -6 ---
Z=0 Zj 2 9 -1 -9 -1 0
Zj-Cj 0 6 0 3 -1↑ 0
La variable S1 debe entrar en la base, pero todos los coeficientes de la columna S1 son
negativos o cero. Entonces, S1 no se puede ingresar en la base.
M: 3, U: 8, O: 8 C/D: 1/1
Utilice el algoritmo del Pivote Complementario para resolver en caso de que sea
posible el PLC.