Why netlogo alway shows runtime error when I use behaviorspace?

52 views Asked by At

I am a beginner of netlogo. I developed a model which runs well by clicking SETUP and GO buttons. But it went wrong when I tried to repeat by BehaviorSpace. I only put one value for each variable.

It shows "runtime error: requested 8 random agents from a set of only 0 agents group". Is there anyone know the reason?

For more details, I loaded a map from a csv file before running BehaviroSpact, and then in turtles were created by sprout instead of crt. And the setup procedure begins with clear-turtles instead of ca. I'm not sure if this is the reason.

Thank you so much for your help.

1

There are 1 answers

0
Jiaqi Zhang On

Thanks for all of your comments. I think it is because I didn't put load-map procedure in the setup. It could run without behaviorspace because I loaded the map first and then set up and ran. But the setup and run parallelly run other 7, which have no map and cannot sprout turtles based on the patches variables.