Giter Site home page Giter Site logo

cohenrobinson / commute_model Goto Github PK

View Code? Open in Web Editor NEW
6.0 0.0 0.0 45 KB

An agent-based model showing emergent behaviour from transport inequality.

License: GNU General Public License v3.0

Python 100.00%
abm agent-based-modeling agent behaviour commute modelling mesa python city

commute_model's Introduction

commute_model

Commute Model is an Agent-Based Model (ABM) set at showing emergent behaviour of transport inequality. Currently when run in default, the agents of wealth form a high dense neighbourhood in the centre whereas the agents in poverty are sparce in the outskirts. This not only shows emergent behaviour that is common to today's societies, but leaves room to impliment a solution within the model.

Model Characteristics

The model starts all agents with some initial wealth and randomly distrbutes them around the city. Further distances from the city centre have less avaliability of public transport (PT). Car commuting has a cost per unit distance the agent has to travel to get to the city.

Agent Behaviour

Agents have the following behaviour:

  • A cost of living,
  • The ability to commute to work,
  • Earn an income from working,
  • Can choose to commute either by car or PT,
  • If an agent gains enough wealth, then it can move closer to the city.

Using the model

To run the model, execute 'run.py' with python. This will open up a local mesa server with the ABM running in this model.

Reading the model

On the grid, each agent is represented by a circle; black is the city centre; green is a wealthy agent; yellow is an average agent; red is a poor agent.

The charts below the model show the Gini coefficent of the model over time and the second chart is average distance at where the agents of a particular wealth bracket are located over time.

commute_model's People

Contributors

cohenrobinson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

commute_model's Issues

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.