AbstractsComputer Science

A Comparison of a Genetic Algorithm and Simulated Annealing Applied to a Traffic Light Control Problem

by Benjamin Burvall




Institution: KTH Royal Institute of Technology
Department:
Year: 2015
Keywords: Natural Sciences; Computer and Information Science; Computer Science; Naturvetenskap; Data- och informationsvetenskap; Datavetenskap (datalogi)
Record ID: 1351747
Full text PDF: http://urn.kb.se/resolve?urn=urn:nbn:se:kth:diva-166453


Abstract

This work compares a Genetic Algorithm (GA) and Simulated Annealing (SA) when applied to a variant of the Traffic Light Control Problem (TLCP).  TLCP is about controlling the lights in one or more traffic intersections in order to optimize traffic flow. This is important in order for society to function properly.  The idea is that to solve this problem quickly, as would be necessary in a real traffic situation, stochastic search algorithms like SA and GA should be used.  GA and SA in particular are chosen because they are often used in previous work.A 4-way traffic intersection is simulated. GA and SA are used to find a schedule for lighting the traffic lights in such a way that for a given collection of cars, the traffic flow is maximized.  The goal is to study how traffic flows in the solutions produced by GA and SA when the problem size increases.The conclusion of this work is that SA seems to generally finds better solutions than GA in small search spaces and that SA and GA are comparable in larger search spaces. ; Det här arbetet jämför en Genetisk Algoritm (GA) och Simulated Annealing (SA) när de appliceras på en variant av Trafikljusstyrningsproblemet (TLCP).  TLCP handlar om att styra trafikljus i en eller flera trafikkorsningar för att optimera trafikflödet genom dem. Detta är viktigt för att samhället ska fungera bra.  Tanken för att lösa problemet tillräckligt snabbt för att fungera i verklig trafik är att använda sig av stokastiska algoritmer såsom GA och SA. Just GA och SA har valts eftersom de ofta används i liknande arbeten.En 4-vägs trafikkorsning simuleras. GA och SA används för att hitta ett schema för hur trafikljusen ska styras för att trafikflödet ska optimeras, för en given mängd bilar.  Målet är att studera hur trafikflödet för lösningarna producerade av GA och SA skalar när storleken på problemet växer.Som slutsats konstateras att SA generellt hittar bättre lösningar på kortare tid än GA när det gäller mindre lösningar. För större lösningar var GA och SA jämförbara.