All Projects → bergant → nlexperiment

bergant / nlexperiment

Licence: other
🐟 R package for NetLogo experiments http://bergant.github.io/nlexperiment/

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to nlexperiment

sims
simulations for the Computational Cognitive Neuroscience textbook
Stars: ✭ 70 (+337.5%)
Mutual labels:  simulations
PowerSimulations.jl
Julia for optimization simulation and modeling of PowerSystems. Part of the Scalable Integrated Infrastructure Planning Initiative at the National Renewable Energy Lab.
Stars: ✭ 202 (+1162.5%)
Mutual labels:  simulations
agentpy
AgentPy is an open-source framework for the development and analysis of agent-based models in Python.
Stars: ✭ 236 (+1375%)
Mutual labels:  agent-based-modeling
cluster toolkit
Tools for analyzing galaxy clusters.
Stars: ✭ 16 (+0%)
Mutual labels:  simulations
housing-model
Agent-based model of the UK housing market.
Stars: ✭ 29 (+81.25%)
Mutual labels:  agent-based-modeling
cultural evolution ABM tutorial
This tutorial shows how to create very simple simulation or agent-based models of cultural evolution in R
Stars: ✭ 82 (+412.5%)
Mutual labels:  agent-based-modeling
python-algorithms-and-simulations
Different algorithms and simulations from gravity simulations to cellular automata, implemented in python.
Stars: ✭ 21 (+31.25%)
Mutual labels:  simulations
LifeBrush
A toolkit for painting agent-based mesoscale molecular simulations and illustrations.
Stars: ✭ 38 (+137.5%)
Mutual labels:  agent-based-modeling
ThePhysicsHub
The Physics Hub is an open source physics simulations project that is being developed by physics students worldwide and aims to deliver clear and easy to understand physics simulations free for everyone!
Stars: ✭ 116 (+625%)
Mutual labels:  simulations
flocc
Agent-based modeling in JavaScript in the browser or on the server.
Stars: ✭ 26 (+62.5%)
Mutual labels:  agent-based-modeling
abcFinance
Agent-based computational Finance
Stars: ✭ 27 (+68.75%)
Mutual labels:  agent-based-modeling
yalla
Spheroid models of morphogenesis for the GPU.
Stars: ✭ 30 (+87.5%)
Mutual labels:  agent-based-modeling
nlrx
nlrx NetLogo R
Stars: ✭ 66 (+312.5%)
Mutual labels:  agent-based-modeling
Haskell-abinitio
contains a package in Haskell to calculate the electronic structure properties of molecules using the Hartree-Fock method
Stars: ✭ 14 (-12.5%)
Mutual labels:  simulations
EpiModelHIV
Network Models of HIV Transmission Dynamics among MSM and Heterosexuals
Stars: ✭ 20 (+25%)
Mutual labels:  agent-based-modeling
amuse
Astrophysical Multipurpose Software Environment. This is the main repository for AMUSE
Stars: ✭ 115 (+618.75%)
Mutual labels:  simulations
pade
Python Agent DEvelopment framework
Stars: ✭ 81 (+406.25%)
Mutual labels:  simulations
OpenABL
A domain-specific language for parallel and distributed agent-based simulations.
Stars: ✭ 24 (+50%)
Mutual labels:  agent-based-modeling
COVID-Resource-Allocation-Simulator
Agent-based modelling for resource allocation in viral crises to investigate resource allocation and policy interventions with respect to transmission rate.
Stars: ✭ 61 (+281.25%)
Mutual labels:  agent-based-modeling
DeclareDesign
DeclareDesign: Declare and Diagnose Research Designs
Stars: ✭ 92 (+475%)
Mutual labels:  simulations

nlexperiment

Provides functions to define NetLogo1 experiments with parameter sets, measures and related simulation options in concise structure. The cycle of experiment definition, simulations, data analysis, visualisations and parameter fitting can be easily turned into readable and reproducible documents. It uses RNetLogo2 as an interface to NetLogo environment.

Documentation and Examples

See project website for more information or go through examples to learn how to define and run experiments.

Installation

devtools::install_github("bergant/nlexperiment")

Example

Simple experiment with NetLogo Fire model:3

library(nlexperiment)
nl_netlogo_path("c:/Program Files/NetLogo 6.0.1/app") 

Define the experiment:

experiment <- nl_experiment(
  model_file = "models/Sample Models/Earth Science/Fire.nlogo", 
  while_condition = "any? turtles",
  param_values = list(density = c(57, 59, 61)),
  random_seed = 1,
  step_measures = measures(
    percent_burned = "(burned-trees / initial-trees) * 100"
  )
)

Run the experiment:

result <- nl_run(experiment)  

Plot the results:

nl_show_step(result, x = "step_id", y = "percent_burned", x_param = "density")

See more examples on the project website.


1: Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.

2: Jan C. Thiele (2014). R Marries NetLogo: Introduction to the RNetLogo Package. Journal of Statistical Software, 58(2), 1-41. URL http://www.jstatsoft.org/v58/i02/.

3: Wilensky, U. (1997). NetLogo Fire model. http://ccl.northwestern.edu/netlogo/models/Fire. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].