Background

We modeled a subset of the swarm as individual bees. Each bee had an interal state (dancing, scouting, etc) as described below

    1. A bee becomes a scout randomly, with fixed low probability at each time step, and is assigned to a random nest-site.
    2. A bee is within range of a dancing scout and with fixed probability becomes a scout. The new scout is assigned to the nest-site being danced for, with no error.
    1. As soon as the bee becomes a scout, she leaves the swarm (to 'examine' the nest-site). She evaluates the quality of the site without error, and her 'dance duration' is set to a value proportional to the site quality. She then returns to the swarm after about 40 minutes.
    2. Upon return the bee goes to a random position on the swarm and 'dances' for the site. The bee's 'dance time' is decremented and checked to see if the time is zero.
      • If it is zero, the scout reverts to the non-scout state.
      • If it is non-zero, the bee dances for the alloted time, then rests for a fixed time.
    3. In the rest state the bee is completely inactive. When the rest time is done, the bee re-investigates the same nest-site then returns to state (2) described just above.

Programs

The current version is Version14. This code is from Run 1 (R1) as described below. The simulator is a mixed, continuous and discrete-event, simulator. The time resolution in all of the results below was 6 seconds. There is an initial busrt of scouts

Each bee has an internal state as listed:

Progam logic at each time step:

Results

All tables are shown for a case with 4 nests of relative qualities 1.0, 0.75, 0.75, 0.75. Each set of parameters was run for 100 complete trials, so for instance, R15 below represents the average of 100 simulations. The summary sumulation results for each parameter set are listed below the tables.

A win is defined as a quorum of 50 bees at the highest quality nest computed with this code:

Parameters which were varied were:

=== Full simulation data is at the linked site. ===

There are a huge number of bees available in a swarm, but around 100 to 200 participating bees seem to give the best nest selection results. There must be some feedback scheme to regulate the number of participating bees. A real decision by a bee to become a participant should depend on local knowledge. A bee could keep track of the total number of dances she observes (without regard to quality or site) and decide to participate if she does not see enough dances. This has not been implemented.