Skip to main content

9.9) Behaviour


Go to tools, open BehaviorSpace, and create a new experiment, which will open a new window (similar to that on the left) and name it subsidies-per-kwh_experiment. The first field let you vary variables (the once defined as sliders are already in there). For now we will only vary subsidies so delete all the other variables. To vary the per kWh subsidies change the line as follows: ["subsidies-per-kwh" [0 0.05 0.3]] this will iterate the variable from 0 to 0.3 in steps of 0.05. In the next field we set the number of simulation runs per setting to 10. The default output (count turtles) is not very helpful and can be deleted, we would rather use our cumulative solar power generation total-PV-generation as reporter. Untick the box “Measure runs at every step” and we will get only the final output, which is enough for now. You can leave the default setup and go commands and unlimited runs (0) since we already defined a stop condition. By clicking ok you will now see the experiment with 70 runs (7 settings with 10 runs each) in the BehaviorSpace.