NLWrapper.Model: NLWrapper.Model

Description Usage Arguments Examples

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)

evoper documentation built on May 2, 2019, 12:13 a.m.