Skip to content

eighties-cities/5aday

Repository files navigation

5aday

A multi agent model to simulate the effects of social and temporal segregation on diet disparities.

Install

You first need to install h24 (sbt publishLocal). Then:

sbt osgiBundle

Run a single simulation

sbt -J-Xmx2G "runMain eighties.fiveaday.run.SimulationApp -d ./data/initialisation_distribution_per_cat_2002_2008.csv -p ../h24/results_IDF/population.bin -m ../h24/results_IDF/moves.bin"

Run all scenarios

sbt -J-Xmx4G "runMain eighties.fiveaday.run.SimulationWithMapApp -d ./data/initialisation_distribution_per_cat_2002_2008.csv -p ../h24/results_IDF/population.bin -r ../h24/results_IDF/randomPopulation.bin  -m ../h24/results_IDF/moves.bin -o /tmp/map" 

Run all scenarios for before and after maps

sbt -J-Xmx4G "runMain eighties.fiveaday.run.SimulationWithBeforeAndAfterMapsApp -d ./data/initialisation_distribution_per_cat_2002_2008.csv -p ../h24/results_IDF/population.bin -r ../h24/results_IDF/randomPopulation.bin  -m ../h24/results_IDF/moves.bin -o /tmp/map" 

Run all scenarios and export the data

sbt -J-Xmx4G "runMain eighties.fiveaday.run.SimulationWithBeforeAndAfterMapsApp -d ./data/initialisation_distribution_per_cat_2002_2008.csv -p ../h24/results_IDF/population.bin -r ../h24/results_IDF/randomPopulation.bin  -m ../h24/results_IDF/moves.bin -o /tmp/map -e true" 

Run statistics

sbt -J-Xmx4G "runMain eighties.fiveaday.run.StatisticsApp -d ./data/initialisation_distribution_per_cat_2002_2008.csv -p ../h24/results_IDF/population.bin -m ../h24/results_IDF/moves.bin -c HigherProp -r 10 -o /tmp/statistics/HigherProp" 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •