SlideShare ist ein Scribd-Unternehmen logo
1 von 22
Downloaden Sie, um offline zu lesen
Extending the Gillespie’s Stochastic Simulation
Algorithm for Integrating Discrete-Event and
Multi-Agent Based Simulation
Sara Montagna, Andrea Omicini, Danilo Pianini
{sara.montagna, andrea.omicini, danilo.pianini}@unibo.it
Alma Mater Studiorum—Universit`a di Bologna a Cesena
The XVI International Workshop on Multi-Agent Based Simulation
May 5, 2015 - Istanbul, Turkey
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 1 / 22
Outline
1 Background
Discrete Event Simulation (DES)
Agent Based Modelling (ABM) and Simulation (MABS)
2 Motivation
3 A Unified Stochastic Computational Model
Model
Simulation algorithm
4 Tools: The ALCHEMIST Platform
5 Conclusion
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 2 / 22
Background Discrete Event Simulation (DES)
DES
. . . The most used approach in the simulation mainstream
Instantaneous events responsible for the changes in the system state
In between events, no change to the system is assumed to occur
All events are ordered (even if they happen at the exact same time)
It is normally very efficient since it allows to jump in time from one
relevant event
Defining a DES means to model the behaviour of a system as an ordered
sequence of non-continuous events, by specifying for each of them the
perturbations in the system state it provokes, and the exact point in time
when it has to be triggered.
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 3 / 22
Background Agent Based Modelling (ABM) and Simulation (MABS)
MABS I
MABS (Multi-Agent Based Simulation) was introduced as a novel and
alternative approach to Discrete Event Simulation (DES) and to Systems
Dynamic (SD)
Rather than a simulation method, it is a simulation paradigm
ABM models the system at the micro-level
active entity are autonomous and interacting agent
dynamic environment
global system-level behaviour as a result of the agent-to-agent
interactions
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 4 / 22
Background Agent Based Modelling (ABM) and Simulation (MABS)
MABS II
The simulation platform
Various platforms were developed for the purpose [All10],
tools for developing, editing, and executing ABM, as well as for
visualising the simulation dynamic.
How do they operate over a timeline?
How are agents and environment behaviours coupled and scheduled?
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 5 / 22
Background Agent Based Modelling (ABM) and Simulation (MABS)
Crucial Issue: Time
How to deal with the evolution of time?
Continuous approaches
Rare
Specifically used for modelling the endogenous dynamic of the
environment coupled with discrete agent internal processes.
Discrete approaches
Time-driven
most widely used
fixed time steps
Event-driven
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 6 / 22
Motivation
Motivation: Why not Time-driven?
Efficiency
Time passes fixed time steps
even if no action changes the state happen in between
Carefully choice of temporal granularity
low granularity may ruin results
high granularity may lead to a waste of computational resources
Accuracy, validity, coherency
All the events happening in the same ∆t are executed together
possible loss of order and changes on the system outcome
to be as close as possible to the MAS paradigm, actions and
interactions should be conducted concurrently
Congruence
Simultaneous updates of system entities is far from reality
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 7 / 22
Motivation
From the Time-driven Drawbacks to Our Contribution
Based on two intuitions
a unified conceptual framework [Omi15]
coherent interpretation of event-driven and multi-agent systems
powerful simulation framework [Mey14]
from the integration of DES and MABS
. . . and one observation
Gillespie’s SSA [Gil77] as an event-driven algorithm
Our proposal
A computational model integrating DES and MABS based on an extension
of the Gillespie’s stochastic simulation algorithm.
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 8 / 22
A Unified Stochastic Computational Model
Gillespie’s SSA as an Event-driven Algorithm
Gillespie’s algorithm
Gillespie first proposed an event driven stochastic simulation algorithm
(SSA) for the exact stochastic simulation of chemical systems
Gibson and Bruck [GB00] improved its performance
Next reaction selection not by propensity (function of concentration of
reagents and a markovian rate) but by generated putative times
Dependency graph meant to update only the events whose scheduling
time might have changed because of other events
Building on their work, we extended the algorithm in order to be able
to shift from the world of chemistry to the richer MABS world
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 9 / 22
A Unified Stochastic Computational Model Model
Generalised Chemistry
Pure chemistry vs. agent-based systems
Single, static compartment versus multiple, possibly mobile, and
interconnected agents whose ability to communicate may depend on
environmental and technological factors
Molecules are described by concentrations (an integer), agents may
carry and process any kind of data
Reactions “scheduling” in nature follows a Poisson distribution whose
rate equation depends on reagents’ concentration [Gil77]. Events in
an agent-based simulation may be influenced by any of the
environment components and follow any probability distribution
(triggers, timers, events with memory)
Agents live in an environment, such abstraction is absent in chemistry
A huge leap, indeed
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 10 / 22
A Unified Stochastic Computational Model Model
Close the Gap: Environment
ReactionA proactive behaviour
Linking Rule
A function of the environment
that decides wether or not
two nodes are connected
Moleculetoken representing a
chunk of data
(think of it as a pointer)
ConcentrationActual data associated
with a "molecule"
Environment
Riemannian manifold
where nodes live
NodeA container of reactions
and molecules situated
in the environment
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 11 / 22
A Unified Stochastic Computational Model Model
Close the Gap: Reactions
Number of
neighbors<3
Node
contains
something
Any other
condition
about this
environment
Rate equation: how conditions
influence the execution speed
Conditions Probability distribution Actions
Any other
action
on this
environment
Move a node
towards...
Change
concentration
of something
Reaction
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 12 / 22
A Unified Stochastic Computational Model Model
Flexibility and Data Types
Abstract Concentration
Concentration can be any data type
Pick integers, the result is a simulator for (bio)chemistry, with multiple
intercommunicating compartments situated in an environment
[MPV12]
Pick “set of tuples matching a tuple template”, the result is a
simulator of network of programmable tuple spaces
Pick “any object”, the result is flexibile enough to simulate a network
of devices running their own program [PVB15]
For each type of concentration, a specific set of legal conditions and
actions can (must) be defined
All the other entities can be defined in a generic fashion, and reused
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 13 / 22
A Unified Stochastic Computational Model Simulation algorithm
Extended SSA—Phase 1: Pick the Next Event
How to select the next event?
Most high-performance SSAs presume an underlying model that only
includes memoryless events [STP08]
Gibson/Bruck’s “next reaction” uses putative times instead
We extended it adding support for addition and removal of events at
runtime
Agents may join and leave the system at runtime, new agents may be
equipped with novel behaviours
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 14 / 22
A Unified Stochastic Computational Model Simulation algorithm
Extended SSA—Phase 2: Dependency Management
How to select the next event?
The dependency graph is key for the high performance of SSAs
[STP08]
In general, it is very hard to build a dependency graph in an open
environment composed of multiple entities
We extended the original concept of (static) dependency graph with:
Events can be added and removed at runtime, the graph is dynamically
updated
Execution contexts: local, neighborhood, global
Separation of influencing context and context of influence (input and
output)
Overall, the dependency graph is greatly pruned, with positive impact
on performance
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 15 / 22
Tools: The ALCHEMIST Platform
The ALCHEMIST Platform as a Tool 1
ALCHEMIST: A chemistry-inspired meta-simulator
Based on the machinery already described
Java written
Provides out of the box support for simulating distributed
programmable tuple spaces and Protelis [PVB15] devices
Supports mobility and complex environments, both indoor and
outdoor (with data from OpenStreetMap)
Available as Maven artifact (it.unibo.alchemist:alchemist)
1
http://alchemist.apice.unibo.it
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 16 / 22
Tools: The ALCHEMIST Platform
Architecture of ALCHEMIST
Dynamic Dependency Graph
Dynamic Reaction Manager
Discrete Event Engine
Core
Environment
(model)
Reporting
Graphical Output
Logging System
Interactive UI
XML Bytecode
Environment Builder
Language
Chain
DSL to XML Compiler
Domain Specific Language
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 17 / 22
Tools: The ALCHEMIST Platform
Case Study: Crowd-sensitive User Steering in London
(a) Initial (b) Ongoing (c) Near-end
Figure: Three snapshots of the simulation. Our altered distance metric (the
gradient) goes from green (most favourable and close to destination) to red
(unpleasant or far from destination). Agents (in black) climb this structure
towards greener values.
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 18 / 22
Tools: The ALCHEMIST Platform
Case Study: Crowd-sensitive User Steering in London
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 19 / 22
Conclusion
Conclusion
Integration of DES and MABS
We adopted an extension of Gillespie’s SSA as stochastic event-driven
algorithm
We extended it to support the inherent complexity of multiagent
systems, still retaining the performance optimisations
We extended the chemical model towards higher flexibility,
introducing the environment, generalising the concept of reaction and
allowing arbitrary data to be a “concentration”
We implemented those concepts inside the ALCHEMIST framework
A non-trivial example was provided: crowd steering in London
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 20 / 22
References
References I
Rob Allan.
Survey of agent based modelling and simulation tools.
Technical Report DL-TR-2010-007, Computational Science and Engineering Department,
October 2010.
Michael A. Gibson and Jehoshua Bruck.
Efficient exact stochastic simulation of chemical systems with many species and many
channels.
J. Phys. Chem. A, 104:1876–1889, 2000.
Daniel T. Gillespie.
Exact stochastic simulation of coupled crfreactions.
The Journal of Physical Chemistry, 81(25):2340–2361, December 1977.
Ruth Meyer.
Event-driven multi-agent simulation.
In Electronic Proceedings of the Fifteenth International Workshop on Multi-Agent-Based
Simulation, 2014.
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 21 / 22
References
References II
Sara Montagna, Danilo Pianini, and Mirko Viroli.
A model for drosophila melanogaster development from a single cell to stripe pattern
formation.
In Proceedings of the 27th Annual ACM Symposium on Applied Computing, SAC ’12,
pages 1406–1412, New York, NY, USA, 2012. ACM.
Andrea Omicini.
Event-based vs. multi-agent systems: Towards a unified conceptual framework.
In 2015 19th IEEE International Conference on Computer Supported Cooperative Work in
Design (CSCWD2015). IEEE Computer Society, May 2015.
Danilo Pianini, Mirko Viroli, and Jacob Beal.
Protelis: Practical aggregate programming.
In 30th Symposium On Applied Computing (SAC 2015). ACM, 2015.
Alexander Slepoy, Aidan P. Thompson, and Steven J. Plimpton.
A constant-time kinetic monte carlo algorithm for simulation of large biochemical reaction
networks.
The Journal of Chemical Physics, 128(20):205101, 2008.
Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 22 / 22

Weitere ähnliche Inhalte

Andere mochten auch

"A 30min Introduction to Agent-Based Modelling" for GORS
"A 30min Introduction to Agent-Based Modelling" for GORS"A 30min Introduction to Agent-Based Modelling" for GORS
"A 30min Introduction to Agent-Based Modelling" for GORSBruce Edmonds
 
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariAgent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariGiuseppe Vizzari
 
Simulating Superdiversity
Simulating Superdiversity Simulating Superdiversity
Simulating Superdiversity Bruce Edmonds
 
Unit 6: Responsible Tourism Supply Chains
Unit 6: Responsible Tourism Supply ChainsUnit 6: Responsible Tourism Supply Chains
Unit 6: Responsible Tourism Supply Chainsduanesrt
 
Unit 12: Responsible Tourism Policy And Planning For Tourism Authorities
Unit 12: Responsible Tourism Policy And Planning For Tourism AuthoritiesUnit 12: Responsible Tourism Policy And Planning For Tourism Authorities
Unit 12: Responsible Tourism Policy And Planning For Tourism Authoritiesduanesrt
 
SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...
SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...
SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...SMART Infrastructure Facility
 

Andere mochten auch (6)

"A 30min Introduction to Agent-Based Modelling" for GORS
"A 30min Introduction to Agent-Based Modelling" for GORS"A 30min Introduction to Agent-Based Modelling" for GORS
"A 30min Introduction to Agent-Based Modelling" for GORS
 
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe VizzariAgent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
Agent-based modeling and simulation tutorial - EASSS 2009 - Giuseppe Vizzari
 
Simulating Superdiversity
Simulating Superdiversity Simulating Superdiversity
Simulating Superdiversity
 
Unit 6: Responsible Tourism Supply Chains
Unit 6: Responsible Tourism Supply ChainsUnit 6: Responsible Tourism Supply Chains
Unit 6: Responsible Tourism Supply Chains
 
Unit 12: Responsible Tourism Policy And Planning For Tourism Authorities
Unit 12: Responsible Tourism Policy And Planning For Tourism AuthoritiesUnit 12: Responsible Tourism Policy And Planning For Tourism Authorities
Unit 12: Responsible Tourism Policy And Planning For Tourism Authorities
 
SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...
SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...
SMART Seminar Series: ‘Agent-Based Simulation of Socio-Technical Processes: M...
 

Ähnlich wie Extending the Gillespie's Stochastic Simulation Algorithm for Integrating Discrete-Event and Multi-Agent Based Simulation

Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual Framework
Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual FrameworkEvent-Based vs. Multi-Agent Systems: Towards a Unified Conceptual Framework
Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual FrameworkAndrea Omicini
 
Towards Reinforcement Learning-based Aggregate Computing
Towards Reinforcement Learning-based Aggregate ComputingTowards Reinforcement Learning-based Aggregate Computing
Towards Reinforcement Learning-based Aggregate ComputingGianluca Aguzzi
 
Foundations of Multi-Agent Systems
Foundations of Multi-Agent SystemsFoundations of Multi-Agent Systems
Foundations of Multi-Agent SystemsAndrea Omicini
 
IRJET- Violent Social Interaction Recognition
IRJET- Violent Social Interaction RecognitionIRJET- Violent Social Interaction Recognition
IRJET- Violent Social Interaction RecognitionIRJET Journal
 
Tools For Statistical And Behavioral Analysis Of Mason Models
Tools For Statistical And Behavioral Analysis Of Mason ModelsTools For Statistical And Behavioral Analysis Of Mason Models
Tools For Statistical And Behavioral Analysis Of Mason ModelsRichard Oliver Legendi
 
Slides UMAP'13 paper "Exploiting the Semantic Similarity of Contextual Situat...
Slides UMAP'13 paper "Exploiting the Semantic Similarity of Contextual Situat...Slides UMAP'13 paper "Exploiting the Semantic Similarity of Contextual Situat...
Slides UMAP'13 paper "Exploiting the Semantic Similarity of Contextual Situat...Victor Codina
 
Parameter Engineering vs. Parameter Tuning: the Case of Biochemical Coordinat...
Parameter Engineering vs. Parameter Tuning: the Case of Biochemical Coordinat...Parameter Engineering vs. Parameter Tuning: the Case of Biochemical Coordinat...
Parameter Engineering vs. Parameter Tuning: the Case of Biochemical Coordinat...Stefano Mariani
 
Using Fractal Enterprise Model to Assist Complexity Management
Using Fractal Enterprise Model to Assist Complexity ManagementUsing Fractal Enterprise Model to Assist Complexity Management
Using Fractal Enterprise Model to Assist Complexity ManagementIlia Bider
 
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...IRJET Journal
 
Kuchinsky_Cytoscape_BOSC2009
Kuchinsky_Cytoscape_BOSC2009Kuchinsky_Cytoscape_BOSC2009
Kuchinsky_Cytoscape_BOSC2009bosc
 
Blending Event-Based and Multi-Agent Systems around Coordination Abstractions
Blending Event-Based and Multi-Agent Systems around Coordination AbstractionsBlending Event-Based and Multi-Agent Systems around Coordination Abstractions
Blending Event-Based and Multi-Agent Systems around Coordination AbstractionsAndrea Omicini
 
Event-driven Programming for Situated MAS with ReSpecT Tuple Centres
Event-driven Programming for Situated MAS with ReSpecT Tuple CentresEvent-driven Programming for Situated MAS with ReSpecT Tuple Centres
Event-driven Programming for Situated MAS with ReSpecT Tuple CentresStefano Mariani
 
sp-trajano-april2010
sp-trajano-april2010sp-trajano-april2010
sp-trajano-april2010Axel Trajano
 

Ähnlich wie Extending the Gillespie's Stochastic Simulation Algorithm for Integrating Discrete-Event and Multi-Agent Based Simulation (20)

Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual Framework
Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual FrameworkEvent-Based vs. Multi-Agent Systems: Towards a Unified Conceptual Framework
Event-Based vs. Multi-Agent Systems: Towards a Unified Conceptual Framework
 
sustainability-07-12359.pdf
sustainability-07-12359.pdfsustainability-07-12359.pdf
sustainability-07-12359.pdf
 
Towards Reinforcement Learning-based Aggregate Computing
Towards Reinforcement Learning-based Aggregate ComputingTowards Reinforcement Learning-based Aggregate Computing
Towards Reinforcement Learning-based Aggregate Computing
 
Work Package 3
Work Package 3Work Package 3
Work Package 3
 
Foundations of Multi-Agent Systems
Foundations of Multi-Agent SystemsFoundations of Multi-Agent Systems
Foundations of Multi-Agent Systems
 
IRJET- Violent Social Interaction Recognition
IRJET- Violent Social Interaction RecognitionIRJET- Violent Social Interaction Recognition
IRJET- Violent Social Interaction Recognition
 
From Self-Organising Mechanisms to Design Patterns
From Self-Organising Mechanisms to Design PatternsFrom Self-Organising Mechanisms to Design Patterns
From Self-Organising Mechanisms to Design Patterns
 
3 diagramming causal loops of pv system design, operations, and maintenance...
3   diagramming causal loops of pv system design, operations, and maintenance...3   diagramming causal loops of pv system design, operations, and maintenance...
3 diagramming causal loops of pv system design, operations, and maintenance...
 
Tools For Statistical And Behavioral Analysis Of Mason Models
Tools For Statistical And Behavioral Analysis Of Mason ModelsTools For Statistical And Behavioral Analysis Of Mason Models
Tools For Statistical And Behavioral Analysis Of Mason Models
 
Slides UMAP'13 paper "Exploiting the Semantic Similarity of Contextual Situat...
Slides UMAP'13 paper "Exploiting the Semantic Similarity of Contextual Situat...Slides UMAP'13 paper "Exploiting the Semantic Similarity of Contextual Situat...
Slides UMAP'13 paper "Exploiting the Semantic Similarity of Contextual Situat...
 
Parameter Engineering vs. Parameter Tuning: the Case of Biochemical Coordinat...
Parameter Engineering vs. Parameter Tuning: the Case of Biochemical Coordinat...Parameter Engineering vs. Parameter Tuning: the Case of Biochemical Coordinat...
Parameter Engineering vs. Parameter Tuning: the Case of Biochemical Coordinat...
 
Using Fractal Enterprise Model to Assist Complexity Management
Using Fractal Enterprise Model to Assist Complexity ManagementUsing Fractal Enterprise Model to Assist Complexity Management
Using Fractal Enterprise Model to Assist Complexity Management
 
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...
Forecasting Municipal Solid Waste Generation Using a Multiple Linear Regressi...
 
Kuchinsky_Cytoscape_BOSC2009
Kuchinsky_Cytoscape_BOSC2009Kuchinsky_Cytoscape_BOSC2009
Kuchinsky_Cytoscape_BOSC2009
 
PONE_Visinets_published
PONE_Visinets_publishedPONE_Visinets_published
PONE_Visinets_published
 
Blending Event-Based and Multi-Agent Systems around Coordination Abstractions
Blending Event-Based and Multi-Agent Systems around Coordination AbstractionsBlending Event-Based and Multi-Agent Systems around Coordination Abstractions
Blending Event-Based and Multi-Agent Systems around Coordination Abstractions
 
Event-driven Programming for Situated MAS with ReSpecT Tuple Centres
Event-driven Programming for Situated MAS with ReSpecT Tuple CentresEvent-driven Programming for Situated MAS with ReSpecT Tuple Centres
Event-driven Programming for Situated MAS with ReSpecT Tuple Centres
 
sp-trajano-april2010
sp-trajano-april2010sp-trajano-april2010
sp-trajano-april2010
 
FISSA.pdf
FISSA.pdfFISSA.pdf
FISSA.pdf
 
Wip 13
Wip 13Wip 13
Wip 13
 

Mehr von Danilo Pianini

Time fluid field-based Coordination
Time fluid field-based CoordinationTime fluid field-based Coordination
Time fluid field-based CoordinationDanilo Pianini
 
Engineering the Aggregate - Talk at Software Engineering for Intelligent and ...
Engineering the Aggregate - Talk at Software Engineering for Intelligent and ...Engineering the Aggregate - Talk at Software Engineering for Intelligent and ...
Engineering the Aggregate - Talk at Software Engineering for Intelligent and ...Danilo Pianini
 
Versioning and License selection
Versioning and License selectionVersioning and License selection
Versioning and License selectionDanilo Pianini
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous IntegrationDanilo Pianini
 
Enforce reproducibility: dependency management and build automation
Enforce reproducibility: dependency management and build automationEnforce reproducibility: dependency management and build automation
Enforce reproducibility: dependency management and build automationDanilo Pianini
 
Productive parallel teamwork: Decentralized Version Control Systems
Productive parallel teamwork: Decentralized Version Control SystemsProductive parallel teamwork: Decentralized Version Control Systems
Productive parallel teamwork: Decentralized Version Control SystemsDanilo Pianini
 
Computational Fields meet Augmented Reality: Perspectives and Challenges
Computational Fields meet Augmented Reality: Perspectives and ChallengesComputational Fields meet Augmented Reality: Perspectives and Challenges
Computational Fields meet Augmented Reality: Perspectives and ChallengesDanilo Pianini
 
Practical Aggregate Programming with Protelis @ SASO2017
Practical Aggregate Programming with Protelis @ SASO2017Practical Aggregate Programming with Protelis @ SASO2017
Practical Aggregate Programming with Protelis @ SASO2017Danilo Pianini
 
Towards a Foundational API for Resilient Distributed Systems Design
Towards a Foundational API for Resilient Distributed Systems DesignTowards a Foundational API for Resilient Distributed Systems Design
Towards a Foundational API for Resilient Distributed Systems DesignDanilo Pianini
 
Continuous integration and delivery
Continuous integration and deliveryContinuous integration and delivery
Continuous integration and deliveryDanilo Pianini
 
Democratic process and electronic platforms: concerns of an engineer
Democratic process and electronic platforms: concerns of an engineerDemocratic process and electronic platforms: concerns of an engineer
Democratic process and electronic platforms: concerns of an engineerDanilo Pianini
 
Simulating Large-scale Aggregate MASs with Alchemist and Scala
Simulating Large-scale Aggregate MASs with Alchemist and ScalaSimulating Large-scale Aggregate MASs with Alchemist and Scala
Simulating Large-scale Aggregate MASs with Alchemist and ScalaDanilo Pianini
 
Software development made serious
Software development made seriousSoftware development made serious
Software development made seriousDanilo Pianini
 
Protelis: Practical Aggregate Programming - Symposium on Applied Computing (S...
Protelis: Practical Aggregate Programming - Symposium on Applied Computing (S...Protelis: Practical Aggregate Programming - Symposium on Applied Computing (S...
Protelis: Practical Aggregate Programming - Symposium on Applied Computing (S...Danilo Pianini
 
Engineering computational ecosystems (2nd year PhD seminar)
Engineering computational ecosystems (2nd year PhD seminar)Engineering computational ecosystems (2nd year PhD seminar)
Engineering computational ecosystems (2nd year PhD seminar)Danilo Pianini
 
From Engineer to Alchemist, There and Back Again: An Alchemist Tale
From Engineer to Alchemist, There and Back Again: An Alchemist TaleFrom Engineer to Alchemist, There and Back Again: An Alchemist Tale
From Engineer to Alchemist, There and Back Again: An Alchemist TaleDanilo Pianini
 
SAPERE WP1 Alchemist status at 02/2013
SAPERE WP1 Alchemist status at 02/2013SAPERE WP1 Alchemist status at 02/2013
SAPERE WP1 Alchemist status at 02/2013Danilo Pianini
 
Recipes for Sabayon: cook your own Linux distro within two hours
Recipes for Sabayon: cook your own Linux distro within two hoursRecipes for Sabayon: cook your own Linux distro within two hours
Recipes for Sabayon: cook your own Linux distro within two hoursDanilo Pianini
 
A Framework to Specify and Verify Computational Fields for Pervasive Computin...
A Framework to Specify and Verify Computational Fields for Pervasive Computin...A Framework to Specify and Verify Computational Fields for Pervasive Computin...
A Framework to Specify and Verify Computational Fields for Pervasive Computin...Danilo Pianini
 

Mehr von Danilo Pianini (20)

Time fluid field-based Coordination
Time fluid field-based CoordinationTime fluid field-based Coordination
Time fluid field-based Coordination
 
Engineering the Aggregate - Talk at Software Engineering for Intelligent and ...
Engineering the Aggregate - Talk at Software Engineering for Intelligent and ...Engineering the Aggregate - Talk at Software Engineering for Intelligent and ...
Engineering the Aggregate - Talk at Software Engineering for Intelligent and ...
 
Versioning and License selection
Versioning and License selectionVersioning and License selection
Versioning and License selection
 
Continuous Integration
Continuous IntegrationContinuous Integration
Continuous Integration
 
Enforce reproducibility: dependency management and build automation
Enforce reproducibility: dependency management and build automationEnforce reproducibility: dependency management and build automation
Enforce reproducibility: dependency management and build automation
 
Productive parallel teamwork: Decentralized Version Control Systems
Productive parallel teamwork: Decentralized Version Control SystemsProductive parallel teamwork: Decentralized Version Control Systems
Productive parallel teamwork: Decentralized Version Control Systems
 
Computational Fields meet Augmented Reality: Perspectives and Challenges
Computational Fields meet Augmented Reality: Perspectives and ChallengesComputational Fields meet Augmented Reality: Perspectives and Challenges
Computational Fields meet Augmented Reality: Perspectives and Challenges
 
Practical Aggregate Programming with Protelis @ SASO2017
Practical Aggregate Programming with Protelis @ SASO2017Practical Aggregate Programming with Protelis @ SASO2017
Practical Aggregate Programming with Protelis @ SASO2017
 
Towards a Foundational API for Resilient Distributed Systems Design
Towards a Foundational API for Resilient Distributed Systems DesignTowards a Foundational API for Resilient Distributed Systems Design
Towards a Foundational API for Resilient Distributed Systems Design
 
Continuous integration and delivery
Continuous integration and deliveryContinuous integration and delivery
Continuous integration and delivery
 
Democratic process and electronic platforms: concerns of an engineer
Democratic process and electronic platforms: concerns of an engineerDemocratic process and electronic platforms: concerns of an engineer
Democratic process and electronic platforms: concerns of an engineer
 
Simulating Large-scale Aggregate MASs with Alchemist and Scala
Simulating Large-scale Aggregate MASs with Alchemist and ScalaSimulating Large-scale Aggregate MASs with Alchemist and Scala
Simulating Large-scale Aggregate MASs with Alchemist and Scala
 
Software development made serious
Software development made seriousSoftware development made serious
Software development made serious
 
Protelis: Practical Aggregate Programming - Symposium on Applied Computing (S...
Protelis: Practical Aggregate Programming - Symposium on Applied Computing (S...Protelis: Practical Aggregate Programming - Symposium on Applied Computing (S...
Protelis: Practical Aggregate Programming - Symposium on Applied Computing (S...
 
SAPERE Analysis tools
SAPERE Analysis toolsSAPERE Analysis tools
SAPERE Analysis tools
 
Engineering computational ecosystems (2nd year PhD seminar)
Engineering computational ecosystems (2nd year PhD seminar)Engineering computational ecosystems (2nd year PhD seminar)
Engineering computational ecosystems (2nd year PhD seminar)
 
From Engineer to Alchemist, There and Back Again: An Alchemist Tale
From Engineer to Alchemist, There and Back Again: An Alchemist TaleFrom Engineer to Alchemist, There and Back Again: An Alchemist Tale
From Engineer to Alchemist, There and Back Again: An Alchemist Tale
 
SAPERE WP1 Alchemist status at 02/2013
SAPERE WP1 Alchemist status at 02/2013SAPERE WP1 Alchemist status at 02/2013
SAPERE WP1 Alchemist status at 02/2013
 
Recipes for Sabayon: cook your own Linux distro within two hours
Recipes for Sabayon: cook your own Linux distro within two hoursRecipes for Sabayon: cook your own Linux distro within two hours
Recipes for Sabayon: cook your own Linux distro within two hours
 
A Framework to Specify and Verify Computational Fields for Pervasive Computin...
A Framework to Specify and Verify Computational Fields for Pervasive Computin...A Framework to Specify and Verify Computational Fields for Pervasive Computin...
A Framework to Specify and Verify Computational Fields for Pervasive Computin...
 

Kürzlich hochgeladen

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 

Kürzlich hochgeladen (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 

Extending the Gillespie's Stochastic Simulation Algorithm for Integrating Discrete-Event and Multi-Agent Based Simulation

  • 1. Extending the Gillespie’s Stochastic Simulation Algorithm for Integrating Discrete-Event and Multi-Agent Based Simulation Sara Montagna, Andrea Omicini, Danilo Pianini {sara.montagna, andrea.omicini, danilo.pianini}@unibo.it Alma Mater Studiorum—Universit`a di Bologna a Cesena The XVI International Workshop on Multi-Agent Based Simulation May 5, 2015 - Istanbul, Turkey Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 1 / 22
  • 2. Outline 1 Background Discrete Event Simulation (DES) Agent Based Modelling (ABM) and Simulation (MABS) 2 Motivation 3 A Unified Stochastic Computational Model Model Simulation algorithm 4 Tools: The ALCHEMIST Platform 5 Conclusion Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 2 / 22
  • 3. Background Discrete Event Simulation (DES) DES . . . The most used approach in the simulation mainstream Instantaneous events responsible for the changes in the system state In between events, no change to the system is assumed to occur All events are ordered (even if they happen at the exact same time) It is normally very efficient since it allows to jump in time from one relevant event Defining a DES means to model the behaviour of a system as an ordered sequence of non-continuous events, by specifying for each of them the perturbations in the system state it provokes, and the exact point in time when it has to be triggered. Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 3 / 22
  • 4. Background Agent Based Modelling (ABM) and Simulation (MABS) MABS I MABS (Multi-Agent Based Simulation) was introduced as a novel and alternative approach to Discrete Event Simulation (DES) and to Systems Dynamic (SD) Rather than a simulation method, it is a simulation paradigm ABM models the system at the micro-level active entity are autonomous and interacting agent dynamic environment global system-level behaviour as a result of the agent-to-agent interactions Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 4 / 22
  • 5. Background Agent Based Modelling (ABM) and Simulation (MABS) MABS II The simulation platform Various platforms were developed for the purpose [All10], tools for developing, editing, and executing ABM, as well as for visualising the simulation dynamic. How do they operate over a timeline? How are agents and environment behaviours coupled and scheduled? Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 5 / 22
  • 6. Background Agent Based Modelling (ABM) and Simulation (MABS) Crucial Issue: Time How to deal with the evolution of time? Continuous approaches Rare Specifically used for modelling the endogenous dynamic of the environment coupled with discrete agent internal processes. Discrete approaches Time-driven most widely used fixed time steps Event-driven Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 6 / 22
  • 7. Motivation Motivation: Why not Time-driven? Efficiency Time passes fixed time steps even if no action changes the state happen in between Carefully choice of temporal granularity low granularity may ruin results high granularity may lead to a waste of computational resources Accuracy, validity, coherency All the events happening in the same ∆t are executed together possible loss of order and changes on the system outcome to be as close as possible to the MAS paradigm, actions and interactions should be conducted concurrently Congruence Simultaneous updates of system entities is far from reality Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 7 / 22
  • 8. Motivation From the Time-driven Drawbacks to Our Contribution Based on two intuitions a unified conceptual framework [Omi15] coherent interpretation of event-driven and multi-agent systems powerful simulation framework [Mey14] from the integration of DES and MABS . . . and one observation Gillespie’s SSA [Gil77] as an event-driven algorithm Our proposal A computational model integrating DES and MABS based on an extension of the Gillespie’s stochastic simulation algorithm. Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 8 / 22
  • 9. A Unified Stochastic Computational Model Gillespie’s SSA as an Event-driven Algorithm Gillespie’s algorithm Gillespie first proposed an event driven stochastic simulation algorithm (SSA) for the exact stochastic simulation of chemical systems Gibson and Bruck [GB00] improved its performance Next reaction selection not by propensity (function of concentration of reagents and a markovian rate) but by generated putative times Dependency graph meant to update only the events whose scheduling time might have changed because of other events Building on their work, we extended the algorithm in order to be able to shift from the world of chemistry to the richer MABS world Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 9 / 22
  • 10. A Unified Stochastic Computational Model Model Generalised Chemistry Pure chemistry vs. agent-based systems Single, static compartment versus multiple, possibly mobile, and interconnected agents whose ability to communicate may depend on environmental and technological factors Molecules are described by concentrations (an integer), agents may carry and process any kind of data Reactions “scheduling” in nature follows a Poisson distribution whose rate equation depends on reagents’ concentration [Gil77]. Events in an agent-based simulation may be influenced by any of the environment components and follow any probability distribution (triggers, timers, events with memory) Agents live in an environment, such abstraction is absent in chemistry A huge leap, indeed Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 10 / 22
  • 11. A Unified Stochastic Computational Model Model Close the Gap: Environment ReactionA proactive behaviour Linking Rule A function of the environment that decides wether or not two nodes are connected Moleculetoken representing a chunk of data (think of it as a pointer) ConcentrationActual data associated with a "molecule" Environment Riemannian manifold where nodes live NodeA container of reactions and molecules situated in the environment Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 11 / 22
  • 12. A Unified Stochastic Computational Model Model Close the Gap: Reactions Number of neighbors<3 Node contains something Any other condition about this environment Rate equation: how conditions influence the execution speed Conditions Probability distribution Actions Any other action on this environment Move a node towards... Change concentration of something Reaction Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 12 / 22
  • 13. A Unified Stochastic Computational Model Model Flexibility and Data Types Abstract Concentration Concentration can be any data type Pick integers, the result is a simulator for (bio)chemistry, with multiple intercommunicating compartments situated in an environment [MPV12] Pick “set of tuples matching a tuple template”, the result is a simulator of network of programmable tuple spaces Pick “any object”, the result is flexibile enough to simulate a network of devices running their own program [PVB15] For each type of concentration, a specific set of legal conditions and actions can (must) be defined All the other entities can be defined in a generic fashion, and reused Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 13 / 22
  • 14. A Unified Stochastic Computational Model Simulation algorithm Extended SSA—Phase 1: Pick the Next Event How to select the next event? Most high-performance SSAs presume an underlying model that only includes memoryless events [STP08] Gibson/Bruck’s “next reaction” uses putative times instead We extended it adding support for addition and removal of events at runtime Agents may join and leave the system at runtime, new agents may be equipped with novel behaviours Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 14 / 22
  • 15. A Unified Stochastic Computational Model Simulation algorithm Extended SSA—Phase 2: Dependency Management How to select the next event? The dependency graph is key for the high performance of SSAs [STP08] In general, it is very hard to build a dependency graph in an open environment composed of multiple entities We extended the original concept of (static) dependency graph with: Events can be added and removed at runtime, the graph is dynamically updated Execution contexts: local, neighborhood, global Separation of influencing context and context of influence (input and output) Overall, the dependency graph is greatly pruned, with positive impact on performance Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 15 / 22
  • 16. Tools: The ALCHEMIST Platform The ALCHEMIST Platform as a Tool 1 ALCHEMIST: A chemistry-inspired meta-simulator Based on the machinery already described Java written Provides out of the box support for simulating distributed programmable tuple spaces and Protelis [PVB15] devices Supports mobility and complex environments, both indoor and outdoor (with data from OpenStreetMap) Available as Maven artifact (it.unibo.alchemist:alchemist) 1 http://alchemist.apice.unibo.it Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 16 / 22
  • 17. Tools: The ALCHEMIST Platform Architecture of ALCHEMIST Dynamic Dependency Graph Dynamic Reaction Manager Discrete Event Engine Core Environment (model) Reporting Graphical Output Logging System Interactive UI XML Bytecode Environment Builder Language Chain DSL to XML Compiler Domain Specific Language Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 17 / 22
  • 18. Tools: The ALCHEMIST Platform Case Study: Crowd-sensitive User Steering in London (a) Initial (b) Ongoing (c) Near-end Figure: Three snapshots of the simulation. Our altered distance metric (the gradient) goes from green (most favourable and close to destination) to red (unpleasant or far from destination). Agents (in black) climb this structure towards greener values. Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 18 / 22
  • 19. Tools: The ALCHEMIST Platform Case Study: Crowd-sensitive User Steering in London Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 19 / 22
  • 20. Conclusion Conclusion Integration of DES and MABS We adopted an extension of Gillespie’s SSA as stochastic event-driven algorithm We extended it to support the inherent complexity of multiagent systems, still retaining the performance optimisations We extended the chemical model towards higher flexibility, introducing the environment, generalising the concept of reaction and allowing arbitrary data to be a “concentration” We implemented those concepts inside the ALCHEMIST framework A non-trivial example was provided: crowd steering in London Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 20 / 22
  • 21. References References I Rob Allan. Survey of agent based modelling and simulation tools. Technical Report DL-TR-2010-007, Computational Science and Engineering Department, October 2010. Michael A. Gibson and Jehoshua Bruck. Efficient exact stochastic simulation of chemical systems with many species and many channels. J. Phys. Chem. A, 104:1876–1889, 2000. Daniel T. Gillespie. Exact stochastic simulation of coupled crfreactions. The Journal of Physical Chemistry, 81(25):2340–2361, December 1977. Ruth Meyer. Event-driven multi-agent simulation. In Electronic Proceedings of the Fifteenth International Workshop on Multi-Agent-Based Simulation, 2014. Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 21 / 22
  • 22. References References II Sara Montagna, Danilo Pianini, and Mirko Viroli. A model for drosophila melanogaster development from a single cell to stripe pattern formation. In Proceedings of the 27th Annual ACM Symposium on Applied Computing, SAC ’12, pages 1406–1412, New York, NY, USA, 2012. ACM. Andrea Omicini. Event-based vs. multi-agent systems: Towards a unified conceptual framework. In 2015 19th IEEE International Conference on Computer Supported Cooperative Work in Design (CSCWD2015). IEEE Computer Society, May 2015. Danilo Pianini, Mirko Viroli, and Jacob Beal. Protelis: Practical aggregate programming. In 30th Symposium On Applied Computing (SAC 2015). ACM, 2015. Alexander Slepoy, Aidan P. Thompson, and Steven J. Plimpton. A constant-time kinetic monte carlo algorithm for simulation of large biochemical reaction networks. The Journal of Chemical Physics, 128(20):205101, 2008. Montagna, Omicini, Pianini (UNIBO) Gillespie’s SSA to Integrate DES and MABS 2015-05-15 MABS 22 / 22