在行为空间实验结束时尝试计算我的乌龟的平方位移(这是为了多次重复模拟而不是改变参数),我得到以下电子表格:
[run number] [step] x_squared_displacement y_squared_displacement
4 10000 0 0
1 10000 0 0
3 10000 0 0
5 10000 0 0
2 10000 0 0
8 10000 0 0
6 10000 0 0
7 10000 0 0
10 10000 0 0
9 10000 0 0
11 10000 0 0
13 10000 0 0
12 10000 0 0
16 10000 0 0
15 10000 0 0
14 10000 0 0
17 10000 0 0
18 10000 0 0
19 10000 0 0
20 10000 0 0
即。所有x_squared_displacements和y_sqaured_displacements都为零。这是我在"最终命令"中的命令。行为空间框的一部分:
set x_squared_displacement [xcor] of turtle 0 * [xcor] of turtle 0
set y_squared_displacement [ycor] of turtle 0 * [ycor] of turtle 0
当我在行为空间之外测试命令时,它们每次都会工作,所以我真的很难知道问题是什么。模型的每次运行中只有一只乌龟(我知道它有点粗糙,我怀疑乌龟0的x坐标是问题,但我不能想到另一种方法)
非常感谢任何帮助