GithubHelp home page GithubHelp logo

terna / slapp3 Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 5.0 66.19 MB

Swarm-Like Agent Protocol in Python (3)

License: Creative Commons Zero v1.0 Universal

Python 88.09% Jupyter Notebook 11.70% Shell 0.21%

slapp3's Introduction

SLAPP

Swarm-Like Agent Protocol in Python (3)

Here you have SLAPP 3.3.10 build 20201101, running in Python 3 (in the SLAPP repository you have related material and very old versions; the 2.0.x versions are still related to Python 2).

We have here also a Reference Handbook (it is still a draft and has to be improved).

Five chapters of the book of Boero, R., Morini, M., Sonnessa, M., and Terna, P., Agent-based Models of the Economy - From Theories to Applications, are related to SLAPP.

A recent paper (Business Cycle in a Macromodel with Oligopoly and Agents' Heterogeneity: An Agent-Based Approach, 2017) of M.Mazzoli, M.Morini, and P.Terna, is using SLAPP as agent-based modeling shell.

We have also a running version of SLAPP, via the wonderful Binder project: try it!

In October 2016 I taught a course on Agent-Based Simulation for the Master in Data Science for Complex Economic Systems, MADAS and for the Vilfredo Pareto Doctorate in Economics. I have introduced SLAPP both as a tutorial in agent-based programming and a simulation shell, with some comparative references to NetLogo. Look here for the contents and videos of the course; have also a preliminary look to the _README.txt file.
The file 2.mp4 of lesson 4 contains, from minute 41, a short introduction to the use of SLAPP online.


SLAPP logo: credits to Steve Rogers.


How to start: a quick introduction

If you are interested in an introduction to Agent-based programming techniques in a general way, read the content of the file "SLAPP tutorial.txt" ; the tutorial shows the fundamental ideas of the Swarm project, i.e., the roots of the SLAPP construction; NB, to use SLAPP, it is not necessary to study this tutorial.

To start running the agent-based shell, read the content of the file "SLAPP shell.txt" and install the required libraries (about library installation, above all look at the Appendix A of the Reference Handbook here in this same folder); then, via a terminal, go into the SLAPP main folder (that where you have unzipped SLAPP), and:

1 - launch the application "basic" as in the following window:

the effect is (plain text output only):

or

2 - launch the application "school" as in the following window:

the effect is (plain text output):

and as graphical output:

or

3 - launch the application "production" as in the following window:

the effect is (plain text output):

and as graphical output:

If you prefer to work with Python in a notebook—using (i) the IPython interactive version of Python or, better, (ii) the agnostic language shell named Jupyter—via a terminal go into the main SLAPP folder (that where you have unzipped SLAPP) and launch Jupyter as below:

Then chose iRunShell.ipynb as in:

Finally, run the notebook placing the cursor in the first cell and hitting the key in the top bar (or entering Shift+Enter); then chose a project as in:

The results will be the same reported above in the non interactive presentation.

Please note that we have only a set of example. A good starting point about running SLAPP is the Reference Handbook, section How to run SLAPP.

slapp3's People

Contributors

terna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.