Está en la página 1de 31

DepartamentodeIngenieraIndustrialydeSistemas PontificiaUniversidadCatlicadeChile

Optimizacin ICS1113
ParteII:ProgramacinLineal
1er semestre2010 Profesor:PamelalvarezM.

PARTEII:ProgramacinLineal
Enestaunidadveremos:
Resolucin deproblemas R l i grfica fi d bl Formulacinyformaestndardeproblemaslineales Geometradeproblemaslinealesypropiedadesdepoliedros MtodoSimplex Anlisisdesensibilidad Teoradedualidad

ICS1113.Prof.:Pamelalvarez M.

PARTEII:ProgramacinLineal
LaProgramacinLineal(PL)esunadelastcnicascuantitativasutilizadasporlaIO, laqueseempleapararesolverproblemasdeasignacinderecursos. Eltrminolinealhacereferenciaaquelasrelacionesinvolucradasenelsistema debenserrepresentadasporfuncioneslineales. LaPLpretendeencontrarmedianteelusodefuncioneslineales,unprograma ptimodeactividades,tomandoenconsideracinellmitederecursosdisponibles paraefectuarlas.

ICS1113.Prof.:Pamelalvarez M.

PARTEII:ProgramacinLineal
Enlos30sy40s,cuandosecomenzaformularyresolverdistintasclasesdeproblemasdePL (problemasdeproduccin,transporte,entreotros). DurantelaSegundaGuerraMundialseresolviotragrancantidaddeproblemasdePL,perono fueronreconocidoscomotales. Luego,laFuerzaAreadeE.E.U.U.reuniaungrupodecientficos(SCOOP)paraqueutilizarn herramientasmatemticaspararesolverproblemasdeplaneacinydepresupuesto.Destacabaen estegrupoG.Dantzing. Elaporte t d deeste t grupof fuemodelar d l problemas bl condesigualdades d i ld d lineales li l yestablecer t bl el lcriterio it i deseleccindelosobjetivos. ElgrupoSCOOP,noslohabandesarrolladoelmodelogeneraldePL,sinotambinunmtodo pararesolverlo(Simplex). LasaplicacionesinicialesdelaPLfueronmilitares,econmicasyteoradejuegos. H seaplican Hoy li endi diversas reascomotransporte,medio di ambiente, bi sociologa, i l educacin, d i hospitalesylaindustriaengeneral.
ICS1113.Prof.:Pamelalvarez M. 4

PARTEII:ProgramacinLineal
ProblemadeProgramacinLineal:problemadeoptimizacinconfuncinobjetivoy restriccioneslineales.

min s .a

g i ( x ) 0 i ,i = 1,..., m xC
min cT x s.a Ax = b x0

f (x )

Podemosutilizarvectoresymatrices:

min c x s .a Ax b
Donde:

A M mxn ( ); c , x n ; b m
ICS1113.Prof.:Pamelalvarez M. 5

PARTEII:ProgramacinLineal
Elnmerodevariablesdedecisindeterminaladimensionalidaddelproblema Problemasdedosvariablespuedensergraficadosen2D Seescogeunejeparacadavariable Cadadesigualdaddeterminaunsemiplanofactible Lareginfactibledelproblemaeslainterseccindelossemiplanos Paragraficarunarestriccinbastaconcalcularlasdosinterseccionesytrazarla lneaentreellas TomarunVFOarbitrarioytrazarcurvasdenivel EncontrarladireccindemejoradelVFO;ubicarvrticescandidatosaptimo Calcularlasolucincorrespondienteacadavrticecandidato,resolviendoel sistemadeecuacionesderestric.activasenelvrtice Comparar p losVFOreemplazando p lascoordenadasenlaF.O.

Lasrestriccionesdeterminanelconjuntodesolucionesfactibles

Unasolucinptimasiemprepuedeencontrarseenunvrtice

ICS1113.Prof.:Pamelalvarez M.

PARTEII:ProgramacinLineal
Resolucingrficadeproblemas: Beneficiodidctico. Vemosloconunejemplo:Problemadelamezclaproductiva
ndicedeproduccin(hrs/unidad) Operacin
Cortado Troquelado Esmaltado Utilidad Utilid d unitaria($)

Artculo1
10 5 4 10

Artculo2
20 5 2 15

Capacidadproductiva (hrsdeoperacin/periodo)
4.000 1.500 800

Elmodelo d l asociado i d sera:


ICS1113.Prof.:Pamelalvarez M. 7

PARTEII:ProgramacinLineal
Modelo:

P ) Max 10 x1 + 15 x2 s.a. 10 x1 + 20 x2 4.000 5 x1 + 5 x2 1.500 4 x1 + 2 x2 800 x1 , x2 0

(1) ( 2) ( 3) ( 4)

x2
(4)

400 300

Unidadesafabricardecadaartculo

200 100
6000

(4)

100

200

300 400 (3)

(1) (2) 3333,3


1500

x1
8

ICS1113.Prof.:Pamelalvarez M.

PARTEII:ProgramacinLineal
Modelo:

P ) Max 10 x1 + 15 x2 s.a. 10 x1 + 20 x2 4.000 5 x1 + 5 x2 1.500 4 x1 + 2 x2 800 x1 , x2 0

(1) ( 2) ( 3) ( 4)

x2
(4)

400 300

x1* = 400 / 3 x* = 400 / 3 2


(4) 100 200 300 (3) (1) (2) 3333,3 400

Unidadesafabricardecadaartculo

200 100

x1
9

ICS1113.Prof.:Pamelalvarez M.

PARTEII:ProgramacinLineal
Culeslapendientedelafuncinobjetivo?

m=

c1 c2
x2
(4)

10 2 m= = 15 3

P ) Max 10 x1 + 15 x2 s.a. 10 x1 + 20 x2 4.000 5 x1 + 5 x2 1.500


4 x1 + 2 x2 800 x1 , x2 0
400 300 200 100 (4) ( ) 100 200 300 400 (1)

(1) ( 2) ( 3) ( 4)

(3) ICS1113.Prof.:Pamelalvarez M.

(2) 3333,3

x1
10

PARTEII:ProgramacinLineal
Interpretacindelosresultados:

P ) Max 10 x1 + 15 x2 s.a. 10 x1 + 20 x2 4.000 5 x1 + 5 x2 1.500 4 x1 + 2 x2 800 x1 , x2 0

x1* = 400 / 3 = 133,3 x* = 400 / 3 = 133,3 2 z * = 3.333,3


Restriccionesactivas(obligatorias)einactivas:

(1) ( 2) ( 3) ( 4)

10 x1 + 20 x2 4.000 5 x1 + 5 x2 1.500 4 x1 + 2 x2 800

(1) 10 (400 3 ) + 20 (400 3 ) = 4.000 ( 2 ) 5 (400 3 ) + 5 (400 3 ) 1.500 ( 3) 4 (400 3 ) + 2 (400 3 ) = 800
ICS1113.Prof.:Pamelalvarez M. 11

PARTEII:ProgramacinLineal
Restriccionesactivas(obligatorias)einactivas:
x2
(4)

400 300 200 100 (4) ( ) 100 200 300 400

(3)

(2) 3333,3

(1)

x1

ICS1113.Prof.:Pamelalvarez M.

12

PARTEII:ProgramacinLineal
Vrtices: P ) Max 3 x1 + 5 x 2 s .a . x1 4 2 x 2 12 3 x1 + 2 x 2 18 x1 , x 2 0 V5 V6 V1 = ( x1 , x2 ) = ( 0, 0 ) V2 = ( x1 , x2 ) = ( 0, 0 6) V3 = ( x1 , x2 ) = ( 0,9 ) V4 = ( x1 , x2 ) = ( 2, 6 ) V5 = ( x1 , x2 ) = ( 4, 6 ) V6 = ( x1 , x2 ) = ( 4,5 4 5) V7 = ( x1 , x2 ) = ( 4, 0 ) V8 = ( x1 , x2 ) = ( 6, 0 ) V7 V1
4 6

x2 9

V3

V2 6
4 2

V4

V8
x1

F tibl ono? Factibles ?


13

ICS1113.Prof.:Pamelalvarez M.

PARTEII:ProgramacinLineal
Casosespeciales Solucinptimanica(elqueacabamosdever) Mltiplessoluciones Problemanoacotado Problemainfactible

ICS1113.Prof.:Pamelalvarez M.

14

PARTEII:ProgramacinLineal
Casosespeciales Mltiplessoluciones

P ) Max 4 x1 + 6 x2 s.a. 2 x1 + 3 x2 6 6 x1 + 4 x2 12 2 x1 + 2 x2 2 x1 , x2 0

(1) ( 2) ( 3) ( 4)

ICS1113.Prof.:Pamelalvarez M.

15

PARTEII:ProgramacinLineal
Casosespeciales Problemanoacotado

P ) Max s.a.

x1 + 2 x2 x1 + x2 2 x1 3 x2 2 x1 x2 3 x1 + x2 2 x1 , x2 0

(1) ( 2) ( 3) ( 4) ( 5)

ICS1113.Prof.:Pamelalvarez M.

16

PARTEII:ProgramacinLineal
Casosespeciales Problemainfactible

P ) Max 2 x1 + 3 x2 s.a. x1 x2 1 8 x1 4 x2 16 3 x1 + 4 x2 12 x1 , x2 0

(1) ( 2) ( 3) ( 4)

ICS1113.Prof.:Pamelalvarez M.

17

PARTEII:ProgramacinLineal
Quocurresicambialapendientedelafuncinobjetivo?
P Max 10 x1 + 15 x2 1) s.a. 10 x1 + 20 x2 4.000 4 000 5 x1 + 5 x2 1.500 4 x1 + 2 x2 800 x1 , x2 0
m1 = 10 2 = 15 3

m=

(1) ( 2) ( 3) ( 4)
x2
400 (4)

c1 c2

Podemoshacerunanlisisde sensibilidaddeloscoeficientes delafuncinobjetivo

P2 ) Max 7,5 x1 + 15 x2 s.a. 10 x1 + 20 x2 4.000 5 x1 + 5 x2 1.500 4 x1 + 2 x2 800 x1 , x2 0


m2 = 7,5 7 5 1 = 15 2

(1) ( 2) ( 3) ( 4)

300 200 100 (4) 100 200 300 400 (1)

x1
18

ICS1113.Prof.:Pamelalvarez M.

PARTEII:ProgramacinLineal
Veamosqumspuedepasarsicambiaalgodeunproblema QusituacionessepuedendaralresolverunproblemadePL? Lasolucinptimaexisteperohaymsdeuna. Considerelafuncinobjetivo:

z = 6 x1 + 4 x 2
P ) Max 6 x1 + 4 x 2 s .a . x1 4 2 x 2 12 3 x1 + 2 x 2 18 x1 , x 2 0

P ) Max 3 x1 + 5 x 2 s .a . x1 4 2 x 2 12 3 x1 + 2 x 2 18 x1 , x 2 0

ICS1113.Prof.:Pamelalvarez M.

19

PARTEII:ProgramacinLineal
Quotrassituacionessepuedendar? Elproblemanotengasolucin,dadaunareginfactiblenoacotada. Reemplacecadadesigualdadporuna.

P ) Max 3 x1 + 5 x 2 s .a . x1 4 2 x 2 12 3 x1 + 2 x 2 18 x1 , x 2 0

P ) Max 3 x1 + 5 x 2 s .a . x1 4 2 x 2 12 3 x1 + 2 x 2 18 x1 , x 2 0

ICS1113.Prof.:Pamelalvarez M.

20

PARTEII:ProgramacinLineal
Quotrassituacionessepuedendar? Elproblemanotengasolucin,porquenoexistenpuntosfactibles. Supongaqueagregamoslarestriccin:

x1 5

P ) Max 3 x1 + 5 x 2 s .a . x1 4 2 x 2 12 3 x1 + 2 x 2 18 x1 , x 2 0

P ) Max 3 x1 + 5 x 2 s .a . x1 4 2 x 2 12 3 x1 + 2 x 2 18 x1 5 x1 , x 2 0
21

ICS1113.Prof.:Pamelalvarez M.

PARTEII:ProgramacinLineal
Consideremosahoraelsiguienteproblema:

x2

P ) Max 15 x1 + 20 x2 s .a . 2 x1 + 2 x2 8 x1 + 2 x2 6 x1 , x2 0
x*=(2,2)

x1 4 6

ICS1113.Prof.:Pamelalvarez M.

22

PARTEII:ProgramacinLineal

x2 9 x* 4 3

Qusimilitudhayentrelassolucionesdeambosproblemas?
x2

6 4 2

x*
x1

x1

DndeestlasolucindelosPL? Lasolucinestenunvrtice
ICS1113.Prof.:Pamelalvarez M. 23

PARTEII:ProgramacinLineal
GeometraenPL: Loselementosbsicossobrelosqueseresuelvenproblemaslinealessonconjuntos definidospordesigualdadeslineales. Nosinteresaestudiarlag geometrayestructurasubyacente. y Muchosconceptosymtodosparaprogramacinlinealsebasanenesageometra.

ICS1113.Prof.:Pamelalvarez M.

24

PARTEII:ProgramacinLineal
Caracterizacindesoluciones: Definicin: Unconjuntoformadoporlainterseccindeunnmerofinitodesemiespacios linealessellamapoliedro. Comovimos,unpoliedropuedeseracotadoono. Esoimplicaqueelproblematambinlosea? Dndedijimosqueestabalasolucindelproblema? Recordemos....qusituacionessepuedendar? Elproblema bl esinfactible. i f ibl Elproblemaesnoacotado. Existeunpuntoextremox*deP talquex*essolucinptimadelproblema
ICS1113.Prof.:Pamelalvarez M. 25

PARTEII:ProgramacinLineal
Enproblemasen2Desfcilgraficar,peroqupasaseltamaodelproblema aumenta. Determinemossielpoliedrodefinidoporelsiguientesistemadedesigualdadeses factibleysiesacotadoono.

x1 + 2 x 2 4 x3 4 x1 + 2 x 2 + x3 2 x1 + x 2 x3 5 x1 7 x 2 + x3
Veamosprimerosiesfactible.

4 2 1 2

Ax b )

ICS1113.Prof.:Pamelalvarez M.

26

PARTEII:ProgramacinLineal
Elpoliedroesevidentementefactible,tienemsdeunasolucinfactible,porejemplo

0 satisface las restricciones, Ax 0 b x0 = 0 1


PeroademsesunconjuntoNOACOTADO,cosanofcildeveryaqueesten3D Sea:

1 1 h= 1
ICS1113.Prof.:Pamelalvarez M. 27

PARTEII:ProgramacinLineal
Evaluandoelsistemaenh setiene:

h1 + 2h2 4h3 4h1 + 2h2 + h3 2h1 + h2 h3 5h1 7 h2 + h3


Ysievaluamosx0+th...?

= 1 0 = 1 0 = 2 0 = 1 0

Ah 0

t + 2t 4(1 + t ) = 4t + 2t + (1 + t ) =

4 t 1 t

4 2

2t + t (1 + t ) 5t 7t + (1 + t )

= 1 2t = 1 t

1 2

A( x 0 + th) b, t 0
Valordet? Conclusin?

ICS1113.Prof.:Pamelalvarez M.

28

PARTEII:ProgramacinLineal
Poliedrodefinidoporelsiguientesistemadedesigualdadesesnoacotado.

x1 + 2 x 2 4 x3 4 x1 + 2 x 2 + x3 2 x1 + x 2 x3 5 x1 7 x 2 + x3

4 2 1 2

Ax b )

ICS1113.Prof.:Pamelalvarez M.

29

PARTEII:ProgramacinLineal
Proposicin: SeaP={xRn:Axb}.SupongamosP.EntoncesPesunconjuntonoacotadosiy slosiexisteu Rn,u0,talqueAu 0

TAREA: CmoesenelcasoAx=b,x0?

Qutieneentoncesquepasarparaque,porejemplo,elproblemadeprogramacin linealdeminimizacinseanoacotado? acotado ?

ICS1113.Prof.:Pamelalvarez M.

30

PARTEII:ProgramacinLineal

x0 + th h
x0 Punto f tibl factible

ICS1113.Prof.:Pamelalvarez M.

31

También podría gustarte