Emergent Spirograph-like Patterns from Artificial Swarming

Year: 2014 Authors: Jito Vanualailai

Core claim

A Lyapunov-based two-dimensional swarm model can generate bounded trajectories whose limit cycles form unique emergent visual patterns.

Topics

artificial swarming, emergent patterns, Lyapunov stability, limit cycles, computer simulation

Domains

nonlinear planar ODEs, gradient systems, Poincaré-Bendixson theorem, generative art, Spirograph-like patterns, visual pattern design, ornamental motifs

Methods

Lagrangian swarm modeling, Direct Method of Lyapunov, numerical simulation, parameter randomization

Media

computer-generated trajectories, color portraits, black-and-white plots

Paper text

The text below is the locally extracted OCR/Markdown version of the paper. Raw PDF files remain local and are not published here.

Proceedings of Bridges 2014: Mathematics, Music, Art, Architecture, Culture

Emergent Spirograph-like Patterns from Artificial Swarming

Jito Vanualailai School of Computing, Information & Mathematical Sciences The University of the South Pacific, Suva, Fiji jito.vanualailai@usp.ac.fj

Abstract

Computer simulations of a nonlinear planar system of first-order ODEs which we developed from a simple assumption that biological swarming is an outcome of aggregative behavior of the individuals in the swarm showed a surprising and novel outcome; the emergence of uniquely structured patterns that are intriguingly intricate, exquisite, symmetrical and regular. Some patterns look like flowers; others look like Spirograph curves and Guilloché patterns but with more intricate variations. Unlike Spirograph curves though, the swarm-induced patterns cannot be reproduced by any closed-form formula or by another pattern subjected to some resizing, translation, rotation and/or reflection.

Introduction

A way to model biological swarming is to assume that swarming is an interplay between long-range attraction and short-range repulsion between the individuals in the swarm [1]. It is a Lagrangian approach. In this paper, we develop a Lagrangian model via the Direct Method of Lyapunov, and show the surprising outcomes in the form of intriguing visual patterns.

A Two-Dimensional Swarm Model

Consider a swarm of individuals, taken as point masses. At time , let , , be the planar position of the th individual, which we define as a point mass residing in a disk of radius r > 0 , i.e., . We call the disk a bin, with its bin size being the radius of the disk. Let us define the centroid of the swarm as . At time , let be the instantaneous velocity of the th point mass. We have thus a system of first-order ODEs for the th individual, assuming the initial condition at :

Suppressing , we let and be our state vectors. Also, let . If and , then our swarm of individuals is governed by

Our objective is to construct the instantaneous velocity , , for every individual via a Lyapunov-like function that should also establish the boundedness and hence the cohesiveness of system (2). For long-range attraction between individuals, we will use , .

Vanualailai

For short-range repulsion, we will use . Let there be scalars \gamma_i > 0 and \beta_{ij} > 0, and consider as a tentative Lyapunov-like function for system (2),

It is positive over the domain D(L) \coloneqq \left\{\mathbf{x} \in \mathbb{R}^{2n} : Q_{ij}(\mathbf{x}) > 0 \ \forall i,j \in \mathbb{N}, i \neq j\right\}. The time-derivative of along every solution of system (2) is, on suppressing ,

It is clear that the terms in the curly brackets are and , respectively. Let there be scalars \mu_{i} > 0 and \varphi_{i} > 0 such that and . Then for all . Thus, for the th individual, system (1) becomes

Define a diagonal matrix . Then our system (2) becomes the gradient system

the th terms of which are given by (4). From the Lyapunov-like function, we can conclude the boundedness of solutions of (5) about the centroid and, hence, the existence of equilibrium points or limit cycles in via the Poincaré-Bendixson Theorem. This means that the trajectory of each individual in the swarm will either converge to a unique equilibrium point or to a unique limit cycle. Further, we can show that the parameters of the system determine whether we have equilibrium points or limit cycles. The unique patterns are the limit cycles emerging from such artificial swarming.

Computer Simulations

Our simulations involve , or individuals, shown as red disks, each of radius and randomly positioned initially within a square of side . The parameters , and are all fixed at 1, whereas are randomized between 10 and 30, leading to the variation in pattern. A simulation is performed over the time interval , where is indicated in each example. The entire trajectories are first shown in black. The emergent pattern is then isolated and also shown in color, with each trajectory assigned a different color. An attempt is made to name the portrait by referring to a part of the portrait that is familiar or can be named.

Example 1. Our first example shows an intriguing pattern by time (Fig. 1). The pattern is isolated by showing the trajectories over the time interval [400, 1000]. Each individual settles into its own unique pattern as shown in Fig. 2.

Emergent Spirograph-like Patterns from Artificial Swarming

img-0.jpeg (a) Formation of a pattern by time .

img-1.jpeg (b) Color portrait. Figure 1: Cross-in-the-Lotus

img-2.jpeg Figure 2: The trajectory of each individual taken over the time interval [400, 1000].

Example 2. Our second example shows a pattern that forms in the vicinity of the initial positions. The pattern eerily reminds one of a crown-of-thorns (Fig. 3). The black-and-white portrait is taken over and color over [100, 1000].

Example 3. From a crown-of-thorns to a more pleasant Mediterranean olive wreath – as it seems to appear in this third example (Fig. 4) – or a beautiful South Pacific lei or some exotic Asian chrysanthemum (Fig. 5).

References

[1] V. Gazi and K.M. Passino. Stability analysis of social foraging swarms. IEEE Transactions on Systems, Man and Cybernetics - Part B, 34(1):539-557, 2004.

Vanualailai

img-3.jpeg (a) Black-and-white portrait.

img-4.jpeg (b) Color portrait.

img-5.jpeg Figure 3: Crown-of-Thorns (a) Black-and-white portrait.

img-6.jpeg (b) Color portrait.

img-7.jpeg (a) Color portrait. Figure 5: Lei and Chrysanthemum

img-8.jpeg Figure 4: Olive Wreath (b) Color portrait.

0 items under this folder.