27
Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems Ingars Ribners and Guntis Arnicāns ([email protected], [email protected]) 3 June 2015 Rīga, Latvia

Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Embed Size (px)

Citation preview

Page 1: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Ingars Ribners and Guntis Arnicāns ([email protected], [email protected])

3 June 2015

Rīga, Latvia

Page 2: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Agent-Based Modeling ParadigmSystem – a composition (structure) of autonomous entities – agents.

An example of typical agent based model (Netlogo)

Modeling paradigm inspired by nature

Page 3: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Agent-Based Modeling Paradigm

Agent – a key abstraction in this modeling approach.

Agent means a subject that acts in some environment.

Page 4: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Agent-Based Modeling Paradigm

Main qualities of agent as described by Jennings et.al (1998):• Situatedness;• Autonomy;• Flexibility (responsiveness, pro-activeness, social behaviour)

Page 5: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Properties of Living SystemsGeneral Living Systems (GLS) theory – James G. Miller (1978, 1991)

Living System – a special subclass of open system

Page 6: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Properties of Living SystemsGeneral Living Systems (GLS) theory – James G. Miller (1978, 1991)

Eight hierarchical levels of living systems:

cells, organs, organisms, groups, organizations, communities, societies, supranational systems.

Page 7: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Properties of Living SystemsGeneral Living Systems (GLS) theory – James G. Miller (1978, 1991)

20 standard functional subsystems of a living system:

reproducer, boundary, ingestor, distributor, converter, producer, storage, extruder, motor, supporter, input transducer, internal transducer, channel and net, timer, decoder, associator, memory, decider, encoder, output transducer.

Page 8: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Modeling and Simulation Environment

Goal:

1. To work out a general and extensible language for describing models of systems in agent-based paradigm;

2. To work out an environment for «execution» of models described in above language that would be easy enough to be used by non-programmers.

We are using General Living Systems theory as a reference.

Page 9: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Features of Living Systems(that should be supported by modeling environment)

Large scale concurrent models

(up to 104-105 agents)

Page 10: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Comprehensive environment structures

Features of Living Systems(that should be supported by modeling environment)

Page 11: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Comprehensive environment structures

Temperature, gravitation acceleration, light, ... and their change pattern (t)

Time model

Space model

year cycle...

Day cycle,gravitation field...

Place, altitude...

An example:

Features of Living Systems(that should be supported by modeling environment)

Page 12: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Material interaction

• Environment constraints to the ability of perception;

Visibility limit

Features of Living Systems(that should be supported by modeling environment)

Page 13: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Material interaction

• Environment constraints to the ability of acting.

m𝐹→

(if m>0)

-> constraints on ,𝑣→ 𝑥→

Example 1

Example 2

msg

msg

Influence of material environmentcould be limiting as well as promoting

Features of Living Systems(that should be supported by modeling environment)

Page 14: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Non-material interaction

Features of Living Systems(that should be supported by modeling environment)

Page 15: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Individual evolution process

Features of Living Systems(that should be supported by modeling environment)

Page 16: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Memory, skills, knowledge, reasoning

Ability to discover a structure in the neighborhood

Features of Living Systems(that should be supported by modeling environment)

Page 17: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Client/server architecture

Other features of the modeling environment

Page 18: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

• High level operations with sets;• Synchronous or asynchronous simulation;• Support of intervention into the running system;• "Avatar" feature;• Node management tools;• Openness (i.e. FIPA).

Other features of the modeling environment

Page 19: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Main ConceptsAgent, Event, Environment, Communication arena, Artifact

Page 20: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Main ConceptsAgent, Event, Environment, Communication arena, Artifact

Page 21: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Main ConceptsAgent, Event, Environment, Communication arena, Artifact

Page 22: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Main ConceptsAgent, Event, Environment, Communication arena, Artifact

Page 23: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Main ConceptsAgent, Event, Environment, Communication arena, Artifact

Page 24: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Main ConceptsAgent, Event, Environment, Communication arena, Artifact

Page 25: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

Agent structure

Page 26: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

• A prototype of modeling environment with demo system is implemented to illustrate some of the concepts. Only wakeup functionality (once per second);

• on one Erlang/OTP 17.5 node on (PC i5-4460, 4-cores, 3.2GHz, 16GB RAM, Windows 8)

Prototype

Page 27: Concept of Client-Server Environment for Agent-Based Modeling and Simulation of Living Systems

BenchmarksNumber of

agentsStart time

(ms)*Memory

used (MB)**Memory used by agent (kB)

100 17 20,00 35,00

500 22 25,40 17,80

1000 37 32,10 15,60

5000 194 85,60 13,82

10000 530 152,40 13,59

50000 8007 726,90 14,21

100000 28451 1402,50 13,86

* Average from 4 measurements** Approx. value from Windows 8 Task Manager

Thank You!