Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Modulo 2.2: Algoritmo Símplex
Modulo 2.2: Algoritmo Símplex
2: Algoritmo Símplex
𝑥1 + 𝑥2 ≤ 10 𝑥1 + 𝑥2 + ℎ1 = 10
2𝑥1 − 𝑥2 ≤ 5 2𝑥1 − 𝑥2 + ℎ2 = 5
𝑥1 ≥ 0, 𝑥2 ≥ 0 𝑥1 ≥ 0, 𝑥2 ≥ 0
Algoritmo Símplex: Encontrar la solución factible inicial
𝑥1 + 𝑥2 ≤ 10 𝑥1 + 𝑥2 + ℎ1 = 10
2𝑥1 − 𝑥2 ≤ 5 2𝑥1 − 𝑥2 + ℎ2 = 5
𝑥1 ≥ 0, 𝑥2 ≥ 0 𝑥1 ≥ 0, 𝑥2 ≥ 0
𝑥 𝑆 = 𝑥1 , 𝑥2 = (0,0) 𝑥 𝐵 = ℎ1 , ℎ2 ≥ 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
ℎ1 10 1 1 1 0
𝐵 −1 = 𝐼
ℎ2 5 2 -1 0 1
𝑧=
Algoritmo Símplex: Encontrar la solución factible inicial
𝑎𝑖𝑗 𝑥𝑗 + ℎ𝑖 = 𝑏𝑖
𝑖
❖ Si consideramos 𝑥𝑑
el vector de variables de decisión y 𝑥 ℎ el vector de las variables de holgura, podemos
expresar el programa lineal de forma matricial:
𝐴𝑥 𝑑 + 𝐼𝑥 ℎ = 𝑏
𝐴𝑥 𝑠 + 𝐼𝑥 𝐵 = 𝑏
❖ Podemos encontrar de manera trivial la primera solución del vector de variables básicas:
𝑥𝐵 = 𝑏
Algoritmo Símplex: Encontrar la solución factible inicial
𝑎𝑖𝑗 𝑥𝑗 − 𝑒𝑖 = 𝑏𝑖
𝑖
❖ Si consideramos 𝑥𝑑
el vector de variables de decisión y 𝑥 𝑒 el vector de las variables de
excedencia, podemos expresar el programa lineal de forma matricial:
𝐴𝑥 𝑑 − 𝐼𝑥 𝑒 = 𝑏
𝐴𝑥 𝑠 − 𝐼𝑥 𝐵 = 𝑏 𝑥 𝐵 = −𝑏
Algoritmo Símplex: Encontrar la solución factible inicial
𝑎𝑖𝑗 𝑥𝑗 − 𝑒𝑖 = 𝑏𝑖
𝑖
❖ Si consideramos 𝑥𝑑
el vector de variables de decisión y 𝑥 𝑒 el vector de las variables de
excedencia, podemos expresar el programa lineal de forma matricial:
𝐴𝑥 𝑑 − 𝐼𝑥 𝑒 = 𝑏
❑Variables artificiales
❖ Restricciones son de tipo ≥ 𝒃𝒊 :
𝑎𝑖𝑗 𝑥𝑗 − 𝑒𝑖 + 𝑎𝑖 = 𝑏𝑖
𝑖
❖ Si consideramos 𝑥𝑑 el vector de variables de decisión, 𝑥 𝑒 el vector de las variables de
excedencia y 𝑥 𝑎 el vector de variables artificiales, podemos expresar el programa lineal de forma
matricial:
𝐴𝑥 𝑑 − 𝐼𝑥 𝑒 + 𝐼𝑥 𝑎 = 𝑏
❖ Si escogemos el vector de variables básicas como 𝑥 𝐵 = 𝑥 𝑎 :
𝐴 , −𝐼 𝑥 𝑠 + 𝐼𝑥 𝐵 = 𝑏 𝑥𝐵 = 𝑏
Algoritmo Símplex: Encontrar la solución factible inicial
❑Variables artificiales
❖ Restricciones son de tipo ≥ 𝒃𝒊 :
𝑛 𝑛
𝑎𝑖𝑗 𝑥𝑗 ≥ 𝑏𝑖 → 𝑎𝑖𝑗 𝑥𝑗 − 𝑒𝑗 + 𝑎𝑖 = 𝑏𝑖
𝑗=1 𝑗=1
❖ Restricción de tipo = 𝒃𝒊 :
𝑛 𝑛
𝑎𝑖𝑗 𝑥𝑗 = 𝑏𝑖 → 𝑎𝑖𝑗 𝑥𝑗 + 𝑎𝑖 = 𝑏𝑖
𝑗=1 𝑗=1
Algoritmo Símplex: Encontrar la solución factible inicial
❑Variables artificiales
❖ Restricciones son de tipo ≥ 𝒃𝒊 :
𝑛 𝑛
𝑎𝑖𝑗 𝑥𝑗 ≥ 𝑏𝑖 → 𝑎𝑖𝑗 𝑥𝑗 − 𝑒𝑗 + 𝑎𝑖 = 𝑏𝑖
𝑗=1 𝑗=1
❖ Restricción de tipo = 𝒃𝒊 :
𝑛 𝑛
𝑎𝑖𝑗 𝑥𝑗 = 𝑏𝑖 → 𝑎𝑖𝑗 𝑥𝑗 + 𝑎𝑖 = 𝑏𝑖
𝑗=1 𝑗=1
❑Forma Ampliada
❖ Forma que obtendremos después de añadir las variables artificiales.
❖ Para asegurarnos de que desaparecen de la solución óptima debemos introducir en la función objetivo
unos coeficientes 𝑀 suficientemente elevados y de signo inverso al de la optimización.
❖ De existir una solución, esta no será nunca compatible con dar valores a las variables artificiales
diferentes que cero.
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0
𝑎2 M 2 1 1 -1 0 -1 1 0
𝑎3 M 1 1 0 1 0 0 0 1
𝑧 = 2𝑀 + 1𝑀 = 3𝑀
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0
𝑎2 M 2 1 1 -1 0 -1 1 0
𝑎3 M 1 1 0 1 0 0 0 1
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0
𝑎2 M 2 1 1 -1 0 -1 1 0
𝑎3 M 1 1 0 1 0 0 0 1
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0
𝑎2 M 2 1 1 -1 0 -1 1 0
𝑎3 M 1 1 0 1 0 0 0 1
𝑧 = 2𝑀 + 1𝑀 = 3𝑀
𝑧0 = 𝐶𝑖𝐵 𝑏𝑖
𝑖𝜖𝑥 𝐵
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0
𝑎2 M 2 1 1 -1 0 -1 1 0
𝑎3 M 1 1 0 1 0 0 0 1
𝑧 = 2𝑀 + 1𝑀 = 3𝑀 2M -2
Tabla inicial 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0
𝑎2 M 2 1 1 -1 0 -1 1 0
𝑎3 M 1 1 0 1 0 0 0 1
𝑧 = 2𝑀 + 1𝑀 = 3𝑀 2M -2 M +1 -1 0 -M 0 0
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0
𝑎2 M 2 1 1 -1 0 -1 1 0
𝑎3 M 1 1 0 1 0 0 0 1
𝑧 = 2𝑀 + 1𝑀 = 3𝑀 2M -2 M +1 -1 0 -M 0 0
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0
𝑎2 M 2 1 1 -1 0 -1 1 0
𝑎3 M 1 1 0 1 0 0 0 1
𝑧 = 2𝑀 + 1𝑀 = 3𝑀 2M -2 M +1 -1 0 -M 0 0
Entra 𝒙𝟏
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
Sigmas
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0 5/1=5
𝑎2 M 2 1 1 -1 0 -1 1 0 2/1=2
𝑎3 M 1 1 0 1 0 0 0 1 1/1=1
𝑧 = 2𝑀 + 1𝑀 = 3𝑀 2M -2 M +1 -1 0 -M 0 0
Entra 𝒙𝟏 Sale 𝒂𝟑
Algoritmo Símplex: Variables Artificiales
Tabla inicial 2 -1 1 0 0 M M
Sigmas
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 5 1 1 1 1 0 0 0 5/1=5
𝑎2 M 2 1 1 -1 0 -1 1 0 2/1=2
𝑎3 M 1 1 0 1 0 0 0 1 1/1=1
𝑧 = 2𝑀 + 1𝑀 = 3𝑀 2M -2 M +1 -1 0 -M 0 0
Entra 𝒙𝟏 Sale 𝒂𝟑
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1
𝑎2 M 1 0 1 -2 0 -1 1 -1
𝑥1 2 1 1 0 1 0 0 0 1
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1
𝑎2 M 1 0 1 -2 0 -1 1 -1
𝑥1 2 1 1 0 1 0 0 0 1 𝑭𝟑 → 𝑭𝟑
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1
𝑎2 M 1 0 1 -2 0 -1 1 -1 𝐹2 → 𝐹2 − 𝐹3
𝑥1 2 1 1 0 1 0 0 0 1 𝑭𝟑 → 𝑭𝟑
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1 𝐹1 → 𝐹1 − 𝐹3
𝑎2 M 1 0 1 -2 0 -1 1 -1 𝐹2 → 𝐹2 − 𝐹3
𝑥1 2 1 1 0 1 0 0 0 1 𝑭𝟑 → 𝑭𝟑
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1 𝐹1 → 𝐹1 − 𝐹3
𝑎2 M 1 0 1 -2 0 -1 1 -1 𝐹2 → 𝐹2 − 𝐹3
𝑥1 2 1 1 0 1 0 0 0 1 𝑭𝟑 → 𝑭𝟑
𝑧 =𝑀+2
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1 𝐹1 → 𝐹1 − 𝐹3
𝑎2 M 1 0 1 -2 0 -1 1 -1 𝐹2 → 𝐹2 − 𝐹3
𝑥1 2 1 1 0 1 0 0 0 1 𝑭𝟑 → 𝑭𝟑
𝑧 =𝑀+2 0 M+1 -2M+1 0 -M 0 -2M+2
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1
𝑎2 M 1 0 1 -2 0 -1 1 -1
𝑥1 2 1 1 0 1 0 0 0 1
𝑧 =𝑀+2 0 M+1 -2M+1 0 -M 0 -2M+2
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1 4/1=1
𝑎2 M 1 0 1 -2 0 -1 1 -1 1/1= 1
𝑥1 2 1 1 0 1 0 0 0 1 -
𝑧 =𝑀+2 0 M+1 -2M+1 0 -M 0 -2M+2
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1 4/1=1
𝑎2 M 1 0 1 -2 0 -1 1 -1 1/1= 1
𝑥1 2 1 1 0 1 0 0 0 1 -
𝑧 =𝑀+2 0 M+1 -2M+1 0 -M 0 -2M+2
Iteración 2 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 3 0 0 2 1 1 -1 0
𝐹1 → 𝐹1 − 𝐹2
𝑥2 -1 1 0 1 -2 0 -1 1 -1 𝑭𝟐 → 𝑭𝟐
𝑥1 2 1 1 0 1 0 0 0 1 𝐹3 → 𝐹3
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1 4/1=1
𝑎2 M 1 0 1 -2 0 -1 1 -1 1/1= 1
𝑥1 2 1 1 0 1 0 0 0 1 -
𝑧 =𝑀+2 0 M+1 -2M+1 0 -M 0 -2M+2
Iteración 2 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 3 0 0 2 1 1 -1 0
𝐹1 → 𝐹1 − 𝐹2
𝑥2 -1 1 0 1 -2 0 -1 1 -1 𝑭𝟐 → 𝑭𝟐
𝑥1 2 1 1 0 1 0 0 0 1 𝐹3 → 𝐹3
𝑧=1 0 0 3 0 1 -M-1 -M+3
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1 4/1=1
𝑎2 M 1 0 1 -2 0 -1 1 -1 1/1= 1
𝑥1 2 1 1 0 1 0 0 0 1 -
𝑧 =𝑀+2 0 M+1 -2M+1 0 -M 0 -2M+2
Iteración 2 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 3 0 0 2 1 1 -1 0
𝐹1 → 𝐹1 − 𝐹2
𝑥2 -1 1 0 1 -2 0 -1 1 -1 𝑭𝟐 → 𝑭𝟐
𝑥1 2 1 1 0 1 0 0 0 1 𝐹3 → 𝐹3
𝑧=1 0 0 3 0 1 -M-1 -M+3
Algoritmo Símplex: Variables Artificiales
Iteración 1 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 4 0 1 0 1 0 0 -1 4/1=1
𝑎2 M 1 0 1 -2 0 -1 1 -1 1/1= 1
𝑥1 2 1 1 0 1 0 0 0 1 -
𝑧 =𝑀+2 0 M+1 -2M+1 0 -M 0 -2M+2
Los 𝑍𝑗 − 𝐶𝑗 de las variables artificiales serán siempre de la forma: −𝑀 + 𝑎.
Al ser 𝑀 ≫ 𝑎 ¡No volverán a entrar nunca como variables básicas!
Iteración 2 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 3 0 0 2 1 1 -1 0
𝐹1 → 𝐹1 − 𝐹2
𝑥2 -1 1 0 1 -2 0 -1 1 -1 𝑭𝟐 → 𝑭𝟐
𝑥1 2 1 1 0 1 0 0 0 1 𝐹3 → 𝐹3
𝑧=1 0 0 3 0 1 -M-1 -M+3
Algoritmo Símplex: Variables Artificiales
❖ Podemos minimizar más nuestra función objetivo ya que el criterio de optimalidad no se cumple.
Iteración 2 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 3 0 0 2 1 1 -1 0
𝑥2 -1 1 0 1 -2 0 -1 1 -1
𝑥1 2 1 1 0 1 0 0 0 1
𝑧=1 0 0 3 0 1 -M-1 -M+3
Algoritmo Símplex: Variables Artificiales
❖ Podemos minimizar más nuestra función objetivo ya que el criterio de optimalidad no se cumple.
❖ Entra 𝑥3 .
Iteración 2 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 3 0 0 2 1 1 -1 0
𝑥2 -1 1 0 1 -2 0 -1 1 -1
𝑥1 2 1 1 0 1 0 0 0 1
𝑧=1 0 0 3 0 1 -M-1 -M+3
Algoritmo Símplex: Variables Artificiales
❖ Podemos minimizar más nuestra función objetivo ya que el criterio de optimalidad no se cumple.
❖ Entra 𝑥3 .
❖ Sale 𝑥1 .
Iteración 2 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 3 0 0 2 1 1 -1 0 3/2
𝑥2 -1 1 0 1 -2 0 -1 1 -1 -
𝑥1 2 1 1 0 1 0 0 0 1 1
𝑧=1 0 0 3 0 1 -M-1 -M+3
Algoritmo Símplex: Variables Artificiales
Iteración 2 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 3 0 0 2 1 1 -1 0 3/2
𝑥2 -1 1 0 1 -2 0 -1 1 -1 -
𝑥1 2 1 1 0 1 0 0 0 1 1
𝑧=1 0 0 3 0 1 -M-1 -M+3
Iteración 3 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 1 -2 0 0 1 1 -1 -2 𝐹1 → 𝐹1 − 2𝐹3
𝑥2 -1 3 2 1 0 0 -1 1 1 𝐹2 → 𝐹2 + 2𝐹3
𝑥3 1 1 1 0 1 0 0 0 1 𝑭 𝟑 → 𝑭𝟑
𝑧 = −2 -3 0 0 0 1 -M-1 -M
Algoritmo Símplex: Variables Artificiales
Iteración 3 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 1 -2 0 0 1 1 -1 -2 1
𝑥2 -1 3 2 1 0 0 -1 1 1 -
𝑥3 1 1 1 0 1 0 0 0 1 -
𝑧 = −2 -3 0 0 0 1 -M-1 -M
Algoritmo Símplex: Variables Artificiales
Iteración 3 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
ℎ1 0 1 -2 0 0 1 1 -1 -2 1
𝑥2 -1 3 2 1 0 0 -1 1 1 -
𝑥3 1 1 1 0 1 0 0 0 1 -
𝑧 = −2 -3 0 0 0 1 -M-1 -M
Iteración 4 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
𝑒2 0 1 -2 0 0 1 1 -1 -2 𝑭𝟏 → 𝑭 𝟏
𝑥2 -1 4 0 1 0 1 0 0 -1 𝐹2 → 𝐹2 + 𝐹1
𝑥3 1 1 1 0 1 0 0 0 1 𝐹3 → 𝐹3
𝑧 = −3 -1 0 0 -1 0 -M -M+2
Algoritmo Símplex: Variables Artificiales
𝑥 ∗ = 𝑥1 , 𝑥2 , 𝑥3 = 0, 4,1
𝑧 ∗ = −3
Iteración 4 2 -1 1 0 0 M M
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 𝑥3 ℎ1 𝑒2 𝑎2 𝑎3
𝑒2 0 1 -2 0 0 1 1 -1 -2 𝑭𝟏 → 𝑭 𝟏
𝑥2 -1 4 0 1 0 1 0 0 -1 𝐹2 → 𝐹2 + 𝐹1
𝑥3 1 1 1 0 1 0 0 0 1 𝐹3 → 𝐹3
𝑧 = −3 -1 0 0 -1 0 -M -M+2
Algoritmo Símplex: Variables Artificiales
Variables
Solución Punto
Iteración artificiales
(𝒙𝟏 , 𝒙𝟐 , 𝒙𝟑 ) (2D)
𝒂𝟏 , 𝒂𝟐
0∗ (0,0,0) A (2,1)
1 (1,0,0) B (1,0)
2 (1,1,0) C (0,0)
3 (0,3,1) D (0,0)
4 (0,4,1) E (0,0)
𝑥1
*Tabla Inicial
Algoritmo Símplex: Tipología de soluciones
Solución no acotada
No Factible
Solución única
Factible Acotado
Solución Múltiple
Algoritmo Símplex: Tipología de soluciones
❑Solución no acotada
❖ El valor de la función objetivo no está limitado por las restricciones.
Ejemplo:
Tabla Inicial 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
ℎ1 0 8 1 -1 1 0
ℎ2 0 40 2 -1 0 1
𝑧=0 -1 -2 0 0
Algoritmo Símplex: Tipología de soluciones
❑Solución no acotada
❖ El valor de la función objetivo no está limitado por las restricciones.
𝑧 → ∞
Ejemplo:
Tabla Inicial 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2 2𝑥1 − 𝑥2 ≤ 40
ℎ1 0 8 1 -1 1 0 -8
ℎ2 0 40 2 -1 0 1 -40
𝑧=0 -1 -2 0 0
❑Solución no acotada
❖ El valor de la función objetivo no está limitado por las restricciones.
𝑧 → ∞
𝑥1 − 𝑥2 ≤ 8
Tabla Inicial 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2 2𝑥1 − 𝑥2 ≤ 40
ℎ1 0 8 1 -1 1 0 -8
ℎ2 0 40 2 -1 0 1 -40
𝑧=0 -1 -2 0 0
❑Solución no factible
❖ El conjunto de soluciones posibles será vacío cuando en la tabla óptima aparezca alguna
variable artificial. Es decir, cuando 𝒂𝒊 > 𝟎.
❖ Las variables artificiales son construidas para llegar a una solución factible. Si no existe
ninguna, entonces participaran en la función objetivo.
Algoritmo Símplex: Tipología de soluciones
❑Solución no factible
❖ El conjunto de soluciones posibles será vacío cuando en la tabla óptima aparezca alguna
variable artificial. Es decir, cuando 𝒂𝒊 > 𝟎.
❖ Las variables artificiales son construidas para llegar a una solución factible. Si no existe
ninguna, entonces participaran en la función objetivo.
Ejemplo:
𝑚𝑎𝑥 𝑧 = 5𝑥1 − 3𝑥2 𝑚𝑎𝑥 𝑧 = 5𝑥1 − 3𝑥2 − 𝑀𝑎2
𝑠. 𝑎. 2𝑥1 + 𝑥2 ≤ 1 𝑠. 𝑎. 2𝑥1 + 𝑥2 + ℎ1 =1
4𝑥1 + 2𝑥2 ≥ 6 4𝑥1 + 2𝑥2 − 𝑒2 + 𝑎2 = 6
𝑥𝑖 ≥ 0 ∀𝑖 = 1,2 𝑥1 , 𝑥2 , ℎ1 , 𝑒2 , 𝑎2 ≥ 0
Tabla Inicial 5 −3 0 0 −𝑀
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 𝑒2 𝑎2
ℎ1 0 1 2 1 1 0 0
𝑎2 −𝑀 6 4 2 0 -1 1
𝑧 = −6M −4𝑀 − 5 −2𝑀 + 3 0 𝑀 0
Algoritmo Símplex: Tipología de soluciones
❑Solución no factible
Tabla Inicial 5 −3 0 0 −𝑀
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 𝑒2 𝑎2
ℎ1 0 1 𝟐 1 1 0 0 1/2
𝑎2 −𝑀 6 4 2 0 -1 1 2/3
𝑧 = −6M −4𝑀 − 5 −2𝑀 + 3 0 𝑀 0
Iteración 1 5 −3 0 0 −𝑀
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 𝑒2 𝑎2
𝟏
𝑥1 0 1/2 1 1/2 1/2 0 0 𝑭𝟏 → 𝑭
𝟐 𝟏
𝑎2 −𝑀 1 0 0 -2 -1 1 𝐹2 → 𝐹2 − 4𝐹1
𝑧 = −6 + 5/2 0 11/2 2M+5/2 𝑀 0
Algoritmo Símplex: Tipología de soluciones
❑Solución no factible
Tabla Inicial 5 −3 0 0 −𝑀
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 𝑒2 𝑎2
ℎ1 0 1 𝟐 1 1 0 0 1/2
𝑎2 −𝑀 6 4 2 0 -1 1 2/3
𝑧 = −6M −4𝑀 − 5 −2𝑀 + 3 0 𝑀 0
Iteración 1 5 −3 0 0 −𝑀
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 𝑒2 𝑎2
𝟏
𝑥1 0 1/2 1 1/2 1/2 0 0 𝑭𝟏 → 𝑭
𝟐 𝟏
𝑎2 −𝑀 1 0 0 -2 -1 1 𝐹2 → 𝐹2 − 4𝐹1
𝑧 = −6 + 5/2 0 11/2 2M+5/2 𝑀 0
❑Solución Múltiple
❖ En la solución óptima, existe alguna variable secundaria con un 𝒁𝒋 − 𝑪𝒋 igual a cero.
❖ Existen distintas combinaciones de variables básicas que proporcionan el mismo valor óptima
de la función objetivo.
Ejemplo:
Tabla Inicial 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
ℎ1 0 6 1 2 1 0 3
ℎ2 0 6 2 1 0 1 6
𝑧=0 -1 -2 0 0
Algoritmo Símplex: Tipología de soluciones
❑Solución Múltiple
Tabla Inicial 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
ℎ1 0 6 1 2 1 0 3
ℎ2 0 6 2 1 0 1 6
𝑧=0 -1 -2 0 0
Iteración 1 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
𝟏
𝑥2 2 3 1/2 1 1/2 0 𝑭𝟏 → 𝑭
𝟐 𝟏
ℎ2 0 3 3/2 0 −1/2 1 𝐹2 → 𝐹2 − 𝐹1
𝑧=6 0 0 1 0
Algoritmo Símplex: Tipología de soluciones
❑Solución Múltiple
Tabla Inicial 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
ℎ1 0 6 1 2 1 0 3
ℎ2 0 6 2 1 0 1 6
𝑧=0 -1 -2 0 0
Iteración 1 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
𝟏
𝑥2 2 3 1/2 1 1/2 0 𝑭𝟏 → 𝑭
𝟐 𝟏
ℎ2 0 3 3/2 0 −1/2 1 𝐹2 → 𝐹2 − 𝐹1
𝑧=6 0 0 1 0
❑Solución Múltiple
Tabla Inicial 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
ℎ1 0 6 1 2 1 0 3
ℎ2 0 6 2 1 0 1 6
𝑧=0 -1 -2 0 0
Tabla óptima 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
𝟏
𝑥2 2 3 1/2 1 1/2 0 𝑭𝟏 → 𝑭
𝟐 𝟏
ℎ2 0 3 3/2 0 −1/2 1 𝐹2 → 𝐹2 − 𝐹1
𝑧=6 0 0 1 0
❑Solución Múltiple
❖ En la tabla óptima:
❑Solución Múltiple
Tabla óptima (1) 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
𝑥2 2 3 1/2 1 1/2 0 6
ℎ2 0 3 3/2 0 −1/2 1 2
𝑧=6 0 0 1 0
❑Solución Múltiple
Tabla óptima (1) 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
𝑥2 2 3 1/2 1 1/2 0 6
ℎ2 0 3 3/2 0 −1/2 1 2
𝑧=6 0 0 1 0
La función objetivo se
mantiene igual. 𝑧 = 6
❑Solución Múltiple
❖ Solución óptima 1: 𝐴Ԧ = 𝑥1 , 𝑥2 = 0,3
❖ Solución óptima 2: 𝐵 = 𝑥1 , 𝑥2 = 2,2
𝒙 = 𝜇 𝐴Ԧ + 1 − 𝜇 𝐵 0≤𝜇≤1
❑Degeneración
❖ Cuando una variable básica puede tomar el valor de cero.
❖ La función objetivo se mantiene con el mismo valor por una serie de iteraciones.
❑Degeneración
❖ Cuando una variable básica puede tomar el valor de cero.
Ejemplo:
Tabla óptima 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
𝑥2 9 2 0 1 1/2 -1/2 La solución 𝑥1 , 𝑥2 = (0,2) es
𝑥1 3 0 1 0 −1 2 única y degenerada.
𝑧 = 18 0 0 3/2 3/2
Algoritmo Símplex: Tipología de soluciones
❑Degeneración
❖ Cuando una variable básica puede tomar el valor de cero.
Ejemplo:
Tabla óptima 1 2 0 0
B 𝐶𝐵 𝑉𝐵 𝑥1 𝑥2 ℎ1 ℎ2
𝑥2 9 2 0 1 1/2 -1/2 La solución 𝑥1 , 𝑥2 = (0,2) es
𝑥1 3 0 1 0 −1 2 única y degenerada.
𝑧 = 18 0 0 3/2 3/2
Insertar iconos ODS