Skip to main content

8.4) PV Installation Idea (cont'd)


Try to go to the Interface and click go. NetLogo stops us from leaving the Procedures tab with an error message telling us that the variable sensing-radius nor neighbor-threshold is unknown to the computer. (If you click on the Interface tab again, NetLogo relents and lets you go there, but turns the Procedures tab label an angry red to remind you that things are not all OK there.)

Because sensing-radius and neighbor-threshold are parameters that all turtles will need to know, we define it as a global variable in the interface with sliders. Chose slider from the drop down menu in the interface and insert a slider for each of the variables:

  • Set the range of sensing-radius from 0 to 15 (increment of 1) and the value to 4
  • The neighbor-threshold range is from 0 to 1, as it is defined as a fraction, set the default value to 0.1 or 10%