|
Chapter · January 021 doi: 10. 1007/978-3-030-64058-3 101 citations reads 45 authorsBog'liq Paper ICAFS 2020 intemplate4
Simulation of agent-based adaptive network (model in
Anylogic)
To demonstrate the features of proposed methodology we implemented the light
simulation in Anylogic. Active objects are the main building blocks of AnyLogic
model, they can be used to model very diverse objects of the real world. The model is
created having active object class called Main and experiment called Simulation (figure
2).
Fig. 2.
Creating new main class in Anylogic
Next step is Creating Agents; agent is the basic building block of the agent-based
model. Agent-based model consists of multiple agents and their environment. Every
agent is given a set of rules according to which it interacts with other agents; this inter-
action then generates the overall system behavior. For convenience the agent in the
model is depicted as person. To create agents in AnyLogic, the agent’s internal structure
is defined using the active object class, and then created the required number of class
instances, each one representing the individual agent (shown in right bottom corner).
Once some new element have created, it becomes selected and its properties are dis-
played in the Properties view. Simulation model project successfully created the class
that will define the agent’s internal structure; to place agents into the model environ-
ment, we encapsulate the object that models agent (Person) into the class that models
environment (Main) (figure 3) and appropriate convergence for adaptation scenario
(figure 4).
9
Fig. 3.
Multi-agent environment simulation in Anylogic
Fig. 4.
Results of simulation in Anylogic
|
| |