Agent Group Università di Modena e Reggio Emilia Co-Fields: Towards a Unifying Approach to the Engineering of Swarm Intelligent Systems Marco Mamei [email protected] ESAW '02 Franco Zambonelli [email protected] Co-Fields & Swarms Letizia Leonardi [email protected] 1 Università di Modena e Reggio Emilia Motivations Swarm intelligence can provide useful sources of inspiration to designing multi agent applications. Agent Group However it is very difficult to move from just a collection of examples to a general engineering methodology. Unifying abstractions for for large classes of swarm intelligent systems is a prerequisite for such a general methodology. ESAW '02 Co-Fields & Swarms 2 Università di Modena e Reggio Emilia Co-Fields Model Co-Fields is a model for motion coordination in a multi agent system. Agent Group In the Co-Fields model, agents live in an environment which is described by fields (distributed data structures) that can be spread either by the agents themselves or by the environment. ESAW '02 Co-Fields & Swarms 3 Co-Fields Model Università di Modena e Reggio Emilia Agents combine the fields they sense to obtain a task dependent field (referred as the coordination field) and then move by following the gradient of such combined field. B Agent Group B A A A B B A ESAW '02 A Co-Fields & Swarms A B 4 Co-Fields as a Unifying Abstarction Università di Modena e Reggio Emilia A Co-Fields based system is a simple dynamical Agent Group system. Agents are simply seen as balls rolling upon a surface whose shape is described by the coordination field. Complex movements are achieved not because of the agent will, but because dynamic re-shaping of this surface. The claim of this talk is that Co-Fields can provide a unifying abstraction to describe swarm intelligence exemples. ESAW '02 Co-Fields & Swarms 5 Università di Modena e Reggio Emilia Swarm Intelligent Strategies Wolves Surrounding a Prey – AI in video games, Robot coordination Agent Group Birds Flocking – Air Traffic control Ant Foraging – Routing in telecommunication networks Ant Division of Labor – Multitasking ESAW '02 Co-Fields & Swarms 6 Università di Modena e Reggio Emilia Wolves Surrounding a Prey Natural Explanation Wolves simply hunt for a moose trying Agent Group to maintain a suitable distance from other wolves. Simulations have shown that following this simple strategy, wolves are able to surround the prey. ESAW '02 Co-Fields & Swarms 7 Università di Modena e Reggio Emilia Wolves Surrounding a Prey Co-Fields Explanation The moose and the wolves, propagates these kinds of fields: -1 0 kme 2hm kw k we 2hw 1 k we 2hw -1 kme 2hm 0 1 Agent Group k m moose( x, y, t ) kme hm x X m y Ym 2 ESAW '02 2 wolf i ( x, y, t ) k we Co-Fields & Swarms 2 hw x X wi y Ywi 2 8 Università di Modena e Reggio Emilia Wolves Surrounding a Prey Co-Fields Explanation Then they compute the following coordination fields and follows the gradient downhill n Agent Group coord moose ( x, y, t ) wolfi ( x, y, t ) i 1 n coord wolf i ( x, y, t ) moose( x, y, t ) ESAW '02 Co-Fields & Swarms wolf j ( x, y, t ) j 1, j i 9 Università di Modena e Reggio Emilia Testing Co-Fields Algorithms Differential Equations coord i ( X 1 , X 2 ,..., X n , t ) v dt X j Agent Group dx j Simulations (test the problem in constrained environments) ESAW '02 Co-Fields & Swarms 10 Università di Modena e Reggio Emilia Wolves Surrounding a Prey Solving the Differential Equations Numerically solving the differential equation: WOLF WOLF WOLF WOLF WOLF MOOSE Agent Group MOOSE Wolves do not repeal each other: NO surrounding ESAW '02 WOLF Wolves repeal each other: surrounding Co-Fields & Swarms 11 Birds Flocking Università di Modena e Reggio Emilia Natural Explanation Agent Group The coordinated behavior of flocks can be explained by assuming that each bird tries to maintain a specified distance (the one that offer best flight conditions) from the nearest birds. ESAW '02 Co-Fields & Swarms 12 Università di Modena e Reggio Emilia Birds Flocking Co-Fields Explanation Each bird in the flock propagates the Agent Group following field (repeal at short distances, attracts on long distances): d ( x X Bi ) 2 ( y YBi ) 2 FLOCK i ( x, y, t ) d 4 2a 2 d 2 ESAW '02 Co-Fields & Swarms 13 Birds Flocking Università di Modena e Reggio Emilia Co-Fields Explanation Then they compute the following coordination field and follows the gradient downhill Agent Group CF ( x, y, t ) min ( FLOCKi ( x, y, t ) : i 1,...,n) ESAW '02 Co-Fields & Swarms 14 Flocking Agent Group Università di Modena e Reggio Emilia Solving the Differential Equations ESAW '02 Co-Fields & Swarms 15 Flocking Università di Modena e Reggio Emilia MAS Simulation Agent Group . . . . . . ESAW '02 . . . Co-Fields & Swarms 16 Flocking Università di Modena e Reggio Emilia MAS Simulation Agent Group . . . ESAW '02 . . . Co-Fields & Swarms . . . 17 Università di Modena e Reggio Emilia Ants Foraging Natural Explanation Ants lay down pheromone trails to guide Agent Group other ants towards food or back to the anthill. – Ants wander randomly but are attracted by pheromones. – Food pheromone is laid down when returning form a food source – Nest pheromone is laid down when leaving the anthill ESAW '02 Co-Fields & Swarms 18 Ants Foraging Università di Modena e Reggio Emilia Co-Fields Explanation The environment spread and maintain two initially flat Agent Group fields: Food and Nest fields The environment reacts to ants’ movement by wrinckling the fields’ surface. Ants’ movements are affected by the wrinckles ESAW '02 Co-Fields & Swarms 19 Ants Foraging Università di Modena e Reggio Emilia Co-Fields Explanation Analytical description of a wrinkle: ‒ K(0) is dynamically set so as to be lower that all Agent Group the neighboring wrinkles, to create steepness ‒ K(t) goes to 0 as t increases to accustom for “evaporation” wrinkle( x, y, t ) k (t t0 )e h x X 2 y Y 2 ESAW '02 Co-Fields & Swarms 20 Ant Division of Labor Università di Modena e Reggio Emilia Natural Explanation Agent Group Each individual ant has a response- treshold for every task. It engages in task performance when the level of the task associated stimuli exceeds the treshold. It drops a task when the task associated stimuli falls under another treshold. ESAW '02 Co-Fields & Swarms 21 Ant Labor Division Università di Modena e Reggio Emilia Co-Fields Explanation We can imagine that each ant is embedded in an abstract task-space. Movement in this space are not actual movement, but rather change on duties. Task A Task A 99% Agent Group 99% 33% 66% 99% Task C ESAW '02 66% 66% 33% 33% 33% 33% 66% 99% 66% Task B 99% 33% 66% 99% Task B Task C Co-Fields & Swarms 22 Ant Labor Division Università di Modena e Reggio Emilia Co-Fields Explanation The environment generates fields encoding Agent Group the stimuli encouraging ants in performing a task. Ants move in this space by following the task Task A Field fields downhill. Task A Task B ESAW '02 Co-Fields & Swarms 23 Università di Modena e Reggio Emilia Conclusions We have presented a unifying Agent Group abstraction to deal with swarm intelligent system; resembling: visual, smell, pheromones, air turbolence, taskstimuli. It is a prerequisite for a general engineering methodology. ESAW '02 Co-Fields & Swarms 24 Future Works Università di Modena e Reggio Emilia Theoretical Investigations Dynamical Systems Analysis Relationship with System Theory Other examples and better formalization Agent Group of the current ones Towards true Engineering Principles… ESAW '02 Co-Fields & Swarms 25 Further Info Università di Modena e Reggio Emilia Agent Group http://polaris.ing.unimo.it ESAW '02 Co-Fields & Swarms 26
© Copyright 2026 Paperzz