Getting Started

Download the tarball file from the download page and extract it.

Inside the extracted folder, you’ll find the binary version of the library (libMAGNET.a), the license and copyright files, a folder containing the header files required to correctly build the models and a bash script to easily compile the models by using the library. No installation is required.

Building a Model

Current version of the bash script is designed assuming the header file is stored in the include/ directory located in the same directory with it and the libMAGNET.a file. Put the libMAGNET.a library fle, the include/ directory and the build_model.sh script in the same directory of the C file with the model you want to build. Just execute the script passing as argument the name of the model source file; it will generate a binary file named model; this latter is the executable file to lunch for analyzing the Markovian agent model.

Model Execution and Results

Execute the aforementioned model binary file and wait for the results. At the end of the computation, you will find some .csv files (one per agent) and a .log file, named as the name of the model chosen during the model description. The log file summarizes the main parameters of the model, like number of agents, time parameters and so on.