Questions tagged [mesa-abm]

27 questions
0
votes
1 answer

Select agents by a condition out of the model and change that attribute in mesa?

For an agent based modelling I'm doing with mesa & mesa-geo I need a way, to select and manipulate the agents out of the model.py. For example, if you take the Introductory Tutorial, each step you want a particular randomly picked percentage of all…
0
votes
0 answers

Python mesa ModularServer error 'int' object is not callable

Hey I am using the Python library Mesa for Agent-Based Modeling. I have adapted the 'virus on a network' model to my own research about stakeholder engagement in smart-city and get stuck at debugging the ModularServer which creates the link between…
0
votes
1 answer

Creating nodes at polyline vertices of gis shape file

I am new to mesa but have created an ABM (Agent-Based-Model) previously using netlogo. I am aware that there is a Gis extension for mesa ABM platform called geo-mesa. What I am interested in is, if there is a road network (polyline) shapefile if its…
imantha
  • 2,676
  • 4
  • 23
  • 46
0
votes
0 answers

How to create a python GUI that displays a grid and allows the user to select and fill individual cells?

A bit of background: I'm learning about Agent-Based Modeling, and just implemented Conway's Game of Life using the Mesa package. I've read about initial configurations for this model that produce interesting phenomena, and want to recreate them…
MightyOwl
  • 43
  • 1
  • 6
0
votes
1 answer

How to install Mesa agent based Modelling with Pycharm?

I am currently using Pycharm, and I want to use mesa package for agent based modelling, is it possible ? Thank you.
0
votes
1 answer

Agent Based Coalition Bargaining Model on Python

I am trying to run some simulation on Python for a social network in which agents play a coalition bargaining game. Which package is the most suitable for my needs? Are there examples that I could use when constructing my own code?
N L
  • 19
  • 5
0
votes
1 answer

Mesa tutorial: plot of agent wealth is deterministic instead of random

thanks for taking the time. (Python 3.7.0) I'm a beginner at python and doing the Mesa tutorial since I want to make an agent-based model for a research. I have the following issue: when I run the following code, each time a randomized plot showing…
0
votes
1 answer

Creating agents from a CSV file in mesa - python

I have a CSV file which is storing the ratings (0:lowest to 5:highest) given by consumers for several laptops of different producers.Each row shows the ratings given by one consumer regarding different features. An example of 2 consumers is shown…
user710
  • 161
  • 2
  • 12
0
votes
2 answers

How to install mesa (python package) for use in python 3

I have installed mesa via: $ pip install mesa but it is automatically installing it into /Users/MyName/Documents/User/lib/python2.7/site-packages/mesa/~ which means that when I try to run it with a Python 3 kernel, it can't find the module and I…
HereItIs
  • 145
  • 1
  • 4
  • 15
0
votes
1 answer

Python Mesa Error in advanced tutorial visualization

I am following the tutorial of the python mesa ( http://mesa.readthedocs.io/en/latest/index.html ) and i can't get the visualization from the advanced tutorial ( http://mesa.readthedocs.io/en/latest/tutorials/adv_tutorial.html ) up and running.…
-1
votes
0 answers

How to simulate the bone formation phase of bone remodeling using MESA library in python

I need to use an agent based model package (MESA) to simulate the bone formation phase of the bone remodeling process. The agents that I am using are Osteoblasts, Osteocytes and Bone Lining Cells. Osteoblast Functions and behavior: The function of…
-1
votes
1 answer

Python - mesa : How to get instance variables of each object

I am using mesa for my program. I am trying to execute my Model Class, but I got AttributeError from the Agent Class. This is my script: class ComtrModel (Model): """ A model with some number of Agents""" def __init__(self,N): …
dya
  • 195
  • 1
  • 2
  • 16
1
2