(YouTube link)
A group of Swedish students have built a fully automated factory out of LEGO.
This is the result of a bachelor thesis made by a group of students at Chalmers University of Technology in 2010. The result is a development of "Minifabriken 2009". The whole factory is programmed in Matlab and it starts just by clicking on the start icon on desktop.
http://www.tofsen.se/articles/17/en-fabrik-av-lego via Pusha