Questions tagged [rnetlogo]

17 questions
3
votes
0 answers

RNetlogo / NLstart doesn't do anything

I am trying to use Netlogo via R using the following code: library(RNetLogo) my.netlogo1 <- "my.netlogo1" nl.path <- "C:/Program Files/NetLogo 6.1.1/app" NLStart(nl.path, gui = FALSE, nl.obj = my.netlogo1, nl.jarname='netlogo-6.1.1.jar') And I get…
rbtlm640
  • 79
  • 5
1
vote
1 answer

How to stop turtles when all patches have been colored?

How to stop turtles when all patches have been colored in Netlogo? When the turtles have covered the world in patches, I would like the turtles to stop on the last one so that I can record the amount of ticks it took. Here is my code so…
echakee
  • 19
  • 2
1
vote
1 answer

Returning agent set's output into dataframe from loop

This is a RNetlogo problem. Suppose, I have a agentset in Netlogo, where each farmer represent one patch. I have some "setup" and "go" procedure over the patches. I wish to go for 10 ticks. At every tick I wish to extract the values in R against…
0
votes
1 answer

What is the error here? Which command and interface items should I add?

I wrote this net logo code, but having an error all the time. It's expecting commands on the economic conditions and other parameters, but I don't know how to put the command. Can someone identify me the problems? to setup-interface ; Set up the…
user21946043
0
votes
0 answers

What does java.awt.HeadlessException error mean?

When I try running RNetlogo on my Mac, I keep getting the following error when I try running the NLStart command. Error in .jcall(preobj, "S", "cpsettings", .jnew("java/lang/String", nl.path), : java.awt.HeadlessException Here is the code that I…
Kate
  • 1
  • 1
0
votes
0 answers

If RNetlogo is no longer being maintained, can I still use it? Running into errors

I am trying to use RNetlogo so that I can run a global sensitivity analysis on my model using the Sobol method but I am running into an error when I run the NLStart command (see below for code and error). I saw a message on one board where Volker…
Kate
  • 1
  • 1
0
votes
0 answers

Geographic coordinates on createWorld

I am using raster package to make a map of pixels, and the pixel size is 0.01 by geographic coordinate system. I want to run agent-based modelling by using NetLogoR package, in which I can use 'createWorld' to make the plot of map. However, the…
0
votes
1 answer

How to create an R function for use by NetLogo

When using NetLogo's R extension, how do I create or load up an R function for use by the agents later? The following doesn't work: extensions [r] to setup r:eval "function line 1" r:eval "function line 2" r:eval "function line 3" …
ThomasC
  • 861
  • 6
  • 12
0
votes
1 answer

NLLoadModel function in R is not working as expected (NetLogo model should be loaded using R)

I am trying to load NetLogo model using RNetLogo package in R. But I am getting error, please find the details below: Error: Error in NLLoadModel (absolute.model.path) : and an error is popped up stating: Error in loading…
Devu
  • 1
  • 3
0
votes
1 answer

Set energy to go down as my turtle breeds begin moving faster and set a limit to how large a turtle can grow

Currently the sharks and fish continue growing in size and speed what I'm attempting to do is have the energy for the fish and sharks go down more as they continue to move faster as as demonstrated with forward energy over 7 I'm also attempting to…
0
votes
1 answer

Load in data for turtles in Netlogo: loop seems to stop

I'm trying to load data from R to Netlogo. I always get the error Cannot move turtle beyond the worlds edge. error while turtle 8 running SET called by procedure LOAD-DATA called by procedure SETUP called by Button 'Setup' I defined the world…
Alena
  • 3
  • 1
0
votes
0 answers

Applying Quadratic Risk Programming in netlogo

Anybody can please tell me how I can use Quadratic Risk Programming in netlogo? I wish to use following portfolio choice rule - Max:U = E - φσ Where, U = utility, E = expected returns from assets, φ = risk aversion parameter, σ = variances In R i…
0
votes
1 answer

How can I solve the error (you can not use my_ area in a patch context, it is a turtle-only)?

I want the turtles to back again to their areas if batches which I had defined before. The problem is I got an error you can not use my_ area in a patch context, it is a turtle-only the button is to back_from_event ask turtles with [ area = 1…
0
votes
1 answer

why the error you can not use it as an observer context showed up?

I need your support as I'm using the (interact) command as a button it it gives me an error ( you can not use it as an observer context), as I need to make interaction in area = 1 among agents.the setup button as I defined 5 areas with agents with…
0
votes
1 answer

Error in Running NLRX (NetLogo) in Manjaro (Arch) Linux

I am attempting to run an NLRX simulation in Manjaro Linux (RNetLogo wouldn't work for some reason either), and am running into the following error when attempting to set up an dummy experiment: cp: cannot stat '~/.netlogo/NetLogo…
TheAkashain
  • 29
  • 1
  • 6
1
2