Translating a netlogo model to Python Mesa
full_func_multiagent_grid.ipynb
in visual studio code (and make sure your mesa environment is activated)You know have some familiarity with:
Basic mesa model structure
Data collection
Model + data visualization
Multi-iteration runs and parameter sweeping
Data saving and post-hoc plotting
What are the agents, environment, and processes in the netlogo model?
How can we represent these in python mesa?
What data do we want to collect?
How can we visualize this data?
Wait, can we start simple? And break up the complexity?
In the first Markdown chunk of the notebook:
First python chunck:
Create agent class and let it do things
Create model class, collect some data
Create simple visualization
Run the model, save some data
check back to the fullfunc grid model
Also here - work in managable steps! (first get agents initialized properly, then get them moving, then think about data collection, then think about further visualizations)