mhinsch / JuliaABMtemplate

A very simple self-contained example for an agent-based model in Julia
GNU General Public License v3.0
13 stars 3 forks source link
abm julia-language

JuliaABMtemplate

A very simple standalone ABM example in Julia that can be used as a starting point for a new ABM implementation.

Overview

All model-specific code is contained in lower-case .jl files. All other files contain modules that are more or less general and can be reused.

The main parts of the model:

Changing the model

In order to implement a new model only a few of the included files have to be changed:

And for the GUI version:

Remarks

Run as julia run_gui.jl or julia run_cmdl.jl. Run with --help to see commandline options.

draw_vector.jl contains currently unused code to draw the world as an SVG image using Luxor.

Requirements

In order to run the model the following packages have to be installed: