The C++ codebase for the multi-disease lab network model used in Ghana.
## Running the ABM
1. The ABM is written in C++ and compiled with g++ in the Linux OS. All the .h and .cpp files reside in the main directory. There is also a makefile to help facilitate building. The makefile will build main(.exe). This file will use various input files that are stored in ./defaults/input/xxxx sub-directories. Check the Input-Files.docx file to get a list of the input files and their uses.
2. In order to run the ABM out of main menu, you need to execute the main executable. This is done by running ./main arg1 arg2 keyword in a Linux environment. This will put output in the ./stats/scenario/job_no. directory for each scenario. You will need a copy of the ABM program (main.exe), the ./defaults/input sub-directory and an empty ./stats sub-directory. Make sure the directory that contains the executable (main.exe) also contains the ./stats and ./defaults sub-directories. Keywords control the output of different statistical outputs to the ./stats/scenario/job no. directory. Including the desired keyword will output the appropriate statistical file.
Example - ./main 8 9 10 keywords
Argument 1 = job_no. This is the sub-directory in the ./stats/scenario sub-directory where the output will be placed
Argument 2-4 = scenario numbers to run –the scenarios in the following table are the defaults used in the model. They can be changed by changing the input files in ./defaults/input/input-file-names/input-file-names.csv file. The scenarios listed (8, 9, 10, 22 and 23) are the current valid scenarios for this model.
Scenario no. Xpert tiers smear tiers Clinical diagnosis tiers Notes
8 1, 2, 3, 4 none All District level Xpert decentralization scenario, simulated over the entire period: 2015-2030
9 1, 2, 3 and some 4 none All Baseline Xpert placement at 170 facilities in Ghana, simulated over the entire period: 2015-2030
10 All none All Full Xpert decentralization scenario, simulated over the entire period: 2015-2030
22 Start 9 switc …