...quando le cose iniziano a funzionare.
Tra qualche anno, son certo che la programmazione GPGPU sarĂ all'ordine del giorno ed esisteranno efficaci strumenti di supporto allo sviluppo e al debug.
Fino ad allora resterĂ puro autolesionismo.
Showing posts with label simulation. Show all posts
Showing posts with label simulation. Show all posts
Wednesday, 24 August 2011
Tuesday, 12 July 2011
ARM about to create connectionist's paradise
SpiNNaker, that's the name of the system, is based on a chip developed by Steve Furber, the father of ARM's 32-bit RISC processor. Every chip will contain 20 cores on a single die; one of them is designated as a "head" and the others run the "neuron simulation".
All cores are interconnected on the die itselft, and all processors (thousands in the final system) are interconnected through a "Globally Asynchronous Locally Synchronous" architecture. The simulated neurons can "fire" to any other neuron in about 1ms, which is practically the same of humans.
Obviously, Furber and his team are far from recreating the 90billion neurons topology of human brain; according to the well known Moore's law, in a couple of decades a full simulation would be possible but, meanwhile, better models of the brain could be studied and exploited.
Monday, 2 May 2011
Fascinating complexity
Here we go, another little step towards Master Degree! "Complex systems" is achieved and with full score, thanks to a crowd simulation based on Craig Reynolds' BOIDS and rendered by my own 3D engine "PLT".
I love emerging models - as one can easily foresee by reading the name of this blog - and BOIDS is no exception. A few rules and parameters, two constraints and a bit of randomness and we have a hell of algorithm, almost chaotic and showing a lot of unexpected and non-designed behaviours: formation of queues, spontaneous groups, and so on. Michele and I did a validation study, basing on the previous works of Crystals' Project, a joint effort in crowds simulation. Our model worked well, mathing the expected timings and behaviours, at least with reasonable agents' density; being BOIDS a simple reactive multi-agent system, our pedestrian do not embedded sufficient "intelligence" and can easily fall in many subtle cul-de-sac. It's a good result, anyway, and leaves a lot of space for further investigation.
Tags:
boids,
c++,
complex systems,
ia,
mas,
models,
PLT,
simulation
Friday, 4 March 2011
The BOIDS are back in town!
During the last lesson of complex systems course, prof. Vizzari showed a crowd simulation based on BOIDS, an intriguing model invented by Craig Reynolds in 1986 that simulates bird flocks, fish schools and all that kind of self-organizing masses of living stuff. The basic model is based on three simple assumptions:
- each boid moves toward the other flockmates (cohesion)
- each boid moves away from crowded situations (separation)
- each boid follows the direction of the rest of the flock (alignment)
There exist several approaches to crowd simulation (like cellular automata or multi-agent systems) but I do think that BOIDS have many interesting capabilities.
In fact, one of the open issues in crowd simulations is the sponteneous formation of groups because of common goals, shared costumes, socio-political aspects, familiar relationships and so on. BOIDS leave a lot of space for embedding this wide spectrum of behaviours, whilst the model itself mantains the proxemic distances between people and let them gather peacefully, by the rules decribed above.
The video I embed shows my model in a simple scenario made of four groups (yellow, red, green and blue). Green people have their own goal to follow; red and blue have a shared one. Yellow people just walk around the space, with no specific purpose. In the middle of the screen there's a strong repulsor which keeps boids away. The dynamic works as I expect: there's the formation of clusters, boids belonging to the same group tend to aggregate and find their way even in overcrowded situations. What's fascinating is the emerging, unexpected behaviour of yellow ones: some of them hold still, some dodge the crowd, many other enter the moving groups and follow them wherever they go, conditioned by the first rule.Very nice.
| Hajj - the annual pilgrimage to Mecca - is one the most interesting scenario to simulate |
Subscribe to:
Posts (Atom)
