You can download the source code for the examples in this tutorial here:
Once you have downloaded and decompressed the file, you should look at the instructions here: . Note that to decompress the file you may need to use the command line program 'tar'; a command like "tar -xvf SRC.tar.gz" should extract the contents of the folder to the current directory.
This tutorial walks through a series of examples that demonstrate several ways that Repast HPC models can be constructed. The intent to is show a range of features that are included in the Repast HPC toolkit, and provide worked examples of how models that make use of these features in different ways can be constructed. Some of the features discussed are related to Repast HPC infrastructure- how to set and change model parameters, obtain and record simulation output, achieve different forms of random number generation, etc; other features are more central to how a Repast HPC model is structured and operates- that is, how Repast HPC facilitates the construction of an ABM model in which agents interact according to some set of structured constraints (including spatial arrangements and network connections).
This tutorial is intended for anyone who wants to know the details of RepastHPC and become proficient in developing RepastHPC models. It is written, however, for people with a limited background in an HPC environment- primarily for people who know the basics of agent-based modeling and can work their way through C++ syntax. The hope is that this includes many people who have written code using the Repast environment for Java. Java syntax is based on C++ syntax, and though there are important differences, someone who is familiar with Java can usually read C++ code and begin to write it quickly. In any case, the emphasis in this tutorial is on laying out how Repast HPC and ReLogo are structured, and how to begin to compose, compile, and run models in Repast HPC. Detailed information about how to write C++ code is not included. However, it is much easier to get code running in Java than it is in C++, and the process for doing this may be new to those accustomed to Java. The process by which Repast HPC code is compiled, linked, and run in an HPC environment will involve steps that are unfamiliar to Java users, and these are covered in greater detail in this tutorial. Users alread accustomed to these issues may want to skim sections that deal mainly with them.
To use this tutorial you should have:
The outline for this tutorial is:
The last step of Demo 03 is an example in which there is both a network and a set of spatial projections in operation simultaneously.