Escolar Documentos
Profissional Documentos
Cultura Documentos
Entonces,seaelsistema:
Ax = b x0
SeaB unabasedeA. Haremoslasiguienteparticin:
Variables bsicas
A = [ B # R], x = [ xB , xR ]
Reescribamosnuestrosistema:
Ax = b
1 1
BxB + RxR = b
1 1 x = B b B RxR xB + B RxR = B b B
ICS1113.Prof.:Pamelalvarez M. 58
PARTEII:ProgramacinLineal
Definicin:UnasolucinbsicadelsistemaAx=b, x 0 es unasolucindelaformax =[xB xR] dondexR = 0.Es decir,xB = B-1b. Definicin:UnasolucinbsicadelsistemaAx=b, x0 se llamasolucinbsicafactiblesixB 0
ICS1113.Prof.:Pamelalvarez M.
59
PARTEII:ProgramacinLineal
Paraqutodoesto?
Teorema: Consideremoselpoliedro:
P = {x R n : Ax = b, x 0}
Entonces x esunpuntoextremodeP siyslosicorrespondeauna solucinbsicafactibledelsistemaAx=b, x 0.
ICS1113.Prof.:Pamelalvarez M.
60
PARTEII:ProgramacinLineal
Enelejemplo,labase{3,4,5}generaelsistema:
x3 x4 x5
= 100 x1 4 x2 = 60 x1 2 x2 = 50 x1 x2
0 0 100 60 50
ICS1113.Prof.:Pamelalvarez M. 61
Nosdaelpuntoextremo:
PARTEII:ProgramacinLineal
Ypodemosarmarunalgoritmo? Sea:
R = B R, b = B b
x B = b Rx R
Enunasolucinbsica,xR = 0
ICS1113.Prof.:Pamelalvarez M.
62
PARTEII:ProgramacinLineal
Yqupasaconlafuncinobjetivo? Sea:
T T z = cB xB + cR xR
T T = cB (b RxR ) + cR xR
= c b + (c R R c B )T x R
T B
T 1 c R = cR cB B R T T
T z = cB b + (c R )T x R
ICS1113.Prof.:Pamelalvarez M.
63
PARTEII:ProgramacinLineal
Observemosque:
T c B = cB cB B 1 B = 0 T T
Loquehemoscalculadoes:
(c) = c A, = c B
T T T T T B
Estossellamancostosreducidos
ICS1113.Prof.:Pamelalvarez M.
64
PARTEII:ProgramacinLineal
Qupasasiestamosenunpuntoextremo? Aumentar(x ( R)j desde d d 0a
Quimpactotiene?
T z = cB b + (c R )T x R
=0
T z ( ) = cB b + (c R ) j
Qupodemosdecir?
ICS1113.Prof.:Pamelalvarez M.
65
PARTEII:ProgramacinLineal
Entonces:
T z ( ) = cB b + (c R ) j
ICS1113.Prof.:Pamelalvarez M.
66
PARTEII:ProgramacinLineal
CriteriodeOptimalidad: Si bsica iunasolucin l i b i factible f ibl estal lque:
cR 0
entoncesessolucinptima.
ICS1113.Prof.:Pamelalvarez M.
67
PARTEII:ProgramacinLineal
Ejemplo: Consideremos el problema d dePL: id lsiguiente i i bl
min z = x1 3 x2
x1 + 4 x2 + x1 + 2 x2 + x1 + x2 +
x3 + 0+ 0+
0+ x4 + 0+
0 0 x5 xj
= 100 = 60 = 50 0 j = 1,...,5
50 0 50, z = 50 10 0
68
Unabasees{1,3,4},correspondealpuntoextremo
ICS1113.Prof.:Pamelalvarez M.
PARTEII:ProgramacinLineal
Tenemos:
1 1 0 4 0 0 0 1 , R = 2 0, B 1 = 1 0 1 1 0 1 B= 1 0 0 1 1 0 1 1 Lasecuacionesson:
x1 + 0+ 0+
x2 + 3 x2 + x2 +
0+ x3 + 0+
0+ 0 x4
x5 x5 x5
= 50 = 50 = 10
Loscostosreducidosson:
c 2 2 T T 1 T = c R , B = c = B B c 5 1
ICS1113.Prof.:Pamelalvarez M. 69
PARTEII:ProgramacinLineal
Elcriteriodeoptimalidadnosecumple. Si inocumple l el lcriterio i i hay h unsubndice b di j tal lque:
Aumentemoselvalordelavariablenobsicaasociada(xR)j. Cunto? En
(c R ) j < 0
Veamos
x B = b Rx R
xB ( ) = b R j
ICS1113.Prof.:Pamelalvarez M. 70
PARTEII:ProgramacinLineal
Entonces, puedeaumentarmientras:
xB ( ) = b R j 0
Entonces,eligiendolavariablex2 quetienecostoreducido<0:
x1 ( ) 50 1 x ( ) = 50 3 3 x4 ( ) 10 1
Cuntopuedecrecer?
ICS1113.Prof.:Pamelalvarez M.
71
PARTEII:ProgramacinLineal
Entonces:
xB ( ) = b R j 0
b i a ij 0 , i correspondiente a variable bsica
Hay2posibilidades: Si
a ij 0, i = 1,..., m
R j correspondeaunrayo Elproblemaesnoacotado,lacolumna
deescape,esdecirh talqueAh=0,h 0
ICS1113.Prof.:Pamelalvarez M.
72
PARTEII:ProgramacinLineal
Sino:
xB ( ) = b R j 0
bi = min : a ij > 0 a ij
(Test (T tdel d lmnimo i cuociente)
ICS1113.Prof.:Pamelalvarez M.
73
PARTEII:ProgramacinLineal
Ahoraestohayquehacerlosistemticamenteenunalgoritmo.....
ALGORITMOSIMPLEX
ICS1113.Prof.:Pamelalvarez M.
74
PARTEII:ProgramacinLineal
AlgoritmoSimplex: DeterminarB CalcularB-1 DeterminarsolucinbsicafactibleinicialasociadaalabaseB
BxB + RxR = b
T 1 c R = cR cB B R T T
xB = b
T 1 = cB B
Esptimalasolucin?.Verificarcriteriodeoptimalidad.
c j = c j A j ,
cj 0
j no bsico
j la solucin es OPTIMA
Sino,efectuarcambiodebase.
ICS1113.Prof.:Pamelalvarez M. 75
PARTEII:ProgramacinLineal
{ }
A s = B 1 A s . Si A s 0 problema bl NO ACOTADO
Pivote
Actualizarlabaseyseguiriterando.
76
PARTEII:ProgramacinLineal
Entonces,enresumen: 1. 2. 3. 4. 5. 6. 7. Determinar i vrtice i factible f ibl inicial i i i l(base). (b ) Calcularlainversadelabase Determinarlasolucinbsicafactibleasociadaalabase Chequearcriteriodeoptimalidad Silasolucinnoesptima,determinarlacolumnaqueentraalabase Determinarlacolumnaquesaledelabase Actualizarlabaseyvolvera2.
ICS1113.Prof.:Pamelalvarez M.
77