Model Help


This model represents a set of agents in a lattice that can choose one over a set of available options. Each agent is initially assingned a random option, and then it can switch it at each time step.
The procedure to decide which option to choose is based on the previous step states of the same agent and of its four neighbours (up, down, left and right). The agent assigns a minimum probability to be chosen to each of the available options. Moreover, each option increases its probability depending on how many neighbours had that state in the previous time step.
The random choice is biased by a coefficient that concentrates, or flatten, the probability curve.

The model is highly automaticised. It creates automatically the lattice structure in Lsd and assigns the initial random states to the agents.

The parameters to set are:


The results to observe are:

Consider that the model generates automatically a run time lattice even if the values of State are not saved.
 

Model Structure
Root->Lattice->Option
             |    
             ->Row->Cell
                     
List of Variables:
Choose(0), down(0), Init(0), InitCanvas(0), left(0), right(0), State(1), up(0)

List of Parameters:
Col, Elas, glob, Id, Line, minprob, NCol, NLine, NState, num, prob, UnitProb, width

Root
Object
Label
Initialize
Comment

Lattice
Object
Label
Initialize
Comment
Lattice up (0)    see introduction
Lattice down (0)    see introduction
Lattice left (0)    see introduction
Lattice right (0)    see introduction
Lattice Init (0)    see introduction
Lattice NCol (P)  Yes see introduction
Lattice NLine (P)  Yes see introduction
Lattice NState (P)  Yes see introduction
Lattice Elas (P)  Yes see introduction
Lattice Choose (0)    see introduction
Lattice minprob (P)  Yes see introduction 
Lattice UnitProb (P)  Yes see introduction
Lattice InitCanvas (0)    see introduction

Option
Object
Label
Initialize
Comment
Option Id (P)  Yes Id marking the option. It must be an integer number different for each Option. See introduction                                                                                                        
Option num (P)  Parameter used to store the cumulated "raw" probability summing the number of agents assuming this Option. See introduction
Option prob (P)  Parameter used to store the probabilities of being chosen by agents. See introduction
Option glob (P)  Total number of agent currently assuming this state. See introduction

Row
Object
Label
Initialize
Comment
Row Line (P)  Line number of the cells contained below the Object 

Cell
Object
Label
Initialize
Comment
Cell State (1)  State of the agent (i.e. one of the options' Id 
Cell Col (P)  Column of the cell