Skip to content

sedjokas/TB_Hybrid_Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TB_Hybrid_Model

Hybrid model for controlling the spread of tuberculosis (TB) in a Multi-scale environment. Implemented using GAMA PLATFORM

To execute a .gaml code using the GAMA platform, follow these steps:

  1. Download and Install GAMA: Ensure you have the latest version of the GAMA platform installed on your computer. You can download it from the official GAMA website (https://gama-platform.org).
  2. Open GAMA: Launch the GAMA application.
  3. Create a New Model: Go to the File menu and select New Model. This will create a new .gaml file.
  4. Write or Import Your Code: You can either write your code directly in the GAMA editor or import your existing .gaml file using the Import option in the File menu. The .gaml file in this project is nammed MetaPop_HybridTB.gaml
  5. Set Up Your Experiment: Define the parameters of your experiment in the code, such as the number of agents, environmental settings, etc.
  6. Run the Model: After importing the code, click the Run button in the toolbar to start the simulation. You can also press F11.
  7. Visualize the Results: Watch the results of the simulation in the various visualization tabs offered by GAMA (graphs and/or maps for this project).
  8. Adjust and Iterate: If necessary, adjust the code and rerun the simulation to observe the changes.

System Requirement for this source code

GAMA 1.6 or ++

For beginner in GAMA PLATFORM

To run these source codes, download GAMAPLATFORM 1.6 or ++ url: https://gama-platform.github.io/download for free. Please be sure that you have JDK or JRE installed in your system. Create a new model and copy/paste the model to your GAMA, File : MetaPop_HybridTB.gaml

To Run R files

Using RStudio

  1. Open RStudio: Launch RStudio on your computer.
  2. Open the R Script: Click on File > Open File... and select your .R file.
  3. Run the Script: You can run the entire script by clicking the Source button at the top of the script editor, or run individual lines by placing the cursor on the line and pressing Ctrl + Enter (Windows/Linux) or Cmd + Enter (Mac).

Using the Command Line

  1. Open Terminal: Open your terminal or command prompt.
  2. Navigate to the Directory: Use the cd command to navigate to the directory containing your .R file.
  3. Run the Script: Use the Rscript command followed by the name of your file.

Using Visual Studio Code

  1. Install R and VS Code: Ensure you have R installed on your system and Visual Studio Code (VS Code) installed.
  2. Install R Extension: In VS Code, go to the Extensions view (Ctrl + Shift + X), search for "R", and install the R extension.
  3. Open the R Script: Open your .R file in VS Code.
  4. Run the Script: You can run the script by clicking the Run button or using the command palette (Ctrl + Shift + P) and selecting Run Source.

Using R GUI

  1. Open R GUI: Launch the R GUI on your computer.
  2. Open the R Script: Click on File > Open Script... and select your .R file.
  3. Run the Script: Click on Edit > Run all to execute the entire script.

Each of these methods allows you to run R scripts effectively, depending on your preferred environment.

About

Hybrid model for controlling the spread of tuberculosis (TB) in a Multi-scale environment. Implemented using GAMA PLATFORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors