Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.
Transcript of Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.
![Page 1: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/1.jpg)
Alysson M. Costa – ICMC/USP
Tópicos em otimização combinatória
Introdução
![Page 2: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/2.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Otimização combinatória
Otimização:
De maneira informal: é a busca da melhor solução para um problema.
Esta busca pode ser exata ou heurística.
![Page 3: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/3.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Otimização combinatória
Combinatória:
De maneira informal: combinatória é o ramo da matemática que estuda estruturas discretas finitas ou contáveis.
![Page 4: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/4.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Exemplo
Problema do caixeiro viajante
![Page 5: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/5.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Caixeiro viajante
![Page 6: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/6.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Um problema fácil
![Page 7: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/7.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
The Travelling Salesman Problem: a computational study. Applegate, Bixby, Chvátal and Cook
Um problema fácil
![Page 8: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/8.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
The Travelling Salesman Problem: a computational study. Applegate, Bixby, Chvátal and Cook
Um problema nem tão fácil
![Page 9: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/9.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Caixeiro viajante (estética!)
The Travelling Salesman Problem: a computational study. Applegate, Bixby, Chvátal and Cook
![Page 10: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/10.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Polivanova, N. I.Functional and structural aspects of the visual components of intuition in problem solvingVoprosy Psikhologii, 1974, 4, 41-51
- problemas representados geometricamente £ problemas onde as distâncias são dadas para cada par de cidades.
![Page 11: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/11.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Vickers, D.; Butavicius, M.; Lee, M. & Medvedev, A.Human performance on visually presented Traveling Salesman problemsPsychological Research, 2001, 65, 34-45
Otimização x Estética
![Page 12: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/12.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Ormerod, T. C. & Chronicle, E. P.Global perceptual processes in problem solving: The case of the traveling salesperson.Perception & Psychophysics, 1999, 61, 1227-1238
Associar escala (1-melhor; 5-pior) a estética de soluções do TSP
![Page 13: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/13.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
http://www.cgl.uwaterloo.ca/~csk/projects/tsp/
![Page 14: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/14.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
The Travelling Salesman Problem: a computational study. Applegate, Bixby, Chvátal and Cook
![Page 15: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/15.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
The Travelling Salesman Problem: a computational study. Applegate, Bixby, Chvátal and Cook
![Page 16: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/16.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Caixeiro viajante (história)
Schrijver, A.Aardal, K.; Nemhauser, G. L. & Weismantel, R. (ed.)On the history of combinatorial optimization (till 1960),Handbooks in Operations Research and Management - Discrete Optimization, 2005, 12, 1–68.
David Applegate, Robert Bixby,Vašek Chvátal & William Cook.The Traveling Salesman Problem: A Computational Study Princeton Series in Applied Mathematics, February 2007. http://www.tsp.gatech.edu/
![Page 17: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/17.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Caixeiro viajante (história)
Século XIX
Sir William Rowan Hamilton (matemático irlandês)
Thomas Penyngton (matemático britânico)
Hamilton Icosian game
![Page 18: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/18.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Caixeiro viajante (história) - cavaleiros...
O passeio do cavalo (the Knight's tour)Leonhard Paul Euler (1707-1783)
Knight's tour
![Page 19: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/19.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Caixeiro viajante (história) - cavaleiros...
Euller
![Page 20: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/20.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Caixeiro viajante (história) - cavaleiros...
Exercício: como transformar no TSP ?
?
![Page 21: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/21.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Caixeiro viajante (história)
Século XIX - Um manual de 1832
![Page 22: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/22.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Século XIX - Um manual de 1832
Business leads the traveling salesman here and there, and there is not a good tour for all occurring cases; but through an expedient choice division of the tour so much time can be won that we feel compelled to give guidelines about this.
![Page 23: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/23.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Século XIX - Um manual de 1832
Everyone should use as much of the advice as he thinks useful for his application. We believe we can ensure as much that it will not be possible to plan the tours through Germany in consideration of the distances and the traveling back and fourth, which deserves the traveler’s special attention, with more economy. The main thing to remember is always to visit as many localities as possible without having to touch them twice.
![Page 24: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/24.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Solução viável
O que é uma solução viável para o problema ?
Respeita todas as restrições:= O caminho se inicia e termina em um nó= Cada nó é visitado uma única vez= Não existem subciclos
![Page 25: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/25.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Solução viável
Note que podemos enumerar as soluções viáveis para o problema do caixeiro viajante:
O primeiro nó pode ser tomado arbitrariamente. Temos as soluções viáveis:
123456123465123645...
Quantas são ?(n-1)! = 5! = 120
![Page 26: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/26.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Cidades Número de soluções6 7207 50408 403209 36288010 3628800...30 2.6525286 × 1032
![Page 27: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/27.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Mas...
... não existem outras técnicas melhores que enumeração explícita ?
Sim, existem. Mas nenhuma técnica conhecida que resolva eficientemente problemas como o caixeiro viajante.
Por isso, recorremos a estratégias heurísticas, que não garantem a otimalidade mas costumam obter soluções de boa qualidade.
Neste curso, tentaremos entender que problemas têm (e os que não têm) esta característica de serem difíceis, e estudar heurísticas de diversos tipos para sua resolução aproximada.
![Page 28: Alysson M. Costa – ICMC/USP Tópicos em otimização combinatória Introdução.](https://reader035.fdocumentos.tips/reader035/viewer/2022062318/552fc133497959413d8d785d/html5/thumbnails/28.jpg)
Alysson M. Costa – ICMC/USP
4 mar 2009 . 11:37
Esboço do curso
Noções de complexidade Análise da qualidade de heurísticas Heurísticas simples (construtivas) Busca Local Meta-heurísticas
GRASP Simulated Annealing Busca Tabu Algoritmos evolutivos ...
Math-heuristics