Skip to content

An interactive Streamlit applet for the Schelling agent based model.

License

Notifications You must be signed in to change notification settings

alex180500/schelling-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Schelling Model of Segregation

The code can be run online using this link: https://share.streamlit.io/alex180500/schelling-model/main/schelling-model.py

This repository is the base of a Streamlit Python applet made as a small project for the Computational Physics with Laboratory course held in Università degli Studi di Palermo by professor Grazia Cottone and professor Salvatore Miccichè.

Special thanks to professor Salvatore Miccichè for the lesson on Agent-Based Models.

All of the code is distributed under the MIT License and is free to use for any purpose, please credit me if possible if you want to use it.

References

The code is based on this amazing article by Adil Moujahid. Another important reference is the amazing Streamlit documentation.

Dependencies

If you want to run the code locally make sure to have the following packages:

  • Python 3
  • Matplotlib
  • Numpy
  • Streamlit

About

An interactive Streamlit applet for the Schelling agent based model.

Topics

Resources

License

Stars

Watchers

Forks

Languages