NLWrapper.Model: NLWrapper.Model

Description Usage Arguments Examples

View source: R/netlogo-helper.R

Description

This wrapper prepares the environment and instantiates the model

Usage

1
NLWrapper.Model(netlogodir, modelfile, dataset, maxtime)

Arguments

netlogodir

The base path of NetLogo installation

modelfile

The absolute path for NetLogo model file

dataset

The names of model variables

maxtime

The total number of iterations

Examples

1
2
3
4
5
6
7
8
## Not run: 
   rm(list=ls())
   p<- "C:/Program Files/NetLogo 6.0.4/app"
   output<- c("count sheep", "count wolves")
   m<- file.path(nlpath, "models", "Sample Models", "Biology", model, "Wolf Sheep Predation.nlogo")
   o<- NLWrapper.Model(p, m, output, 150)

## End(Not run)

antonio-pgarcia/evoper documentation built on Aug. 30, 2020, 10:40 p.m.