使用行为空间运行迭代时出现此错误
The tick counter has not been started yet. Use RESET-TICKS.
error while observer running TICKS
called by procedure __EVALUATOR
我不确定为什么会这样。我在“set”例程中包含了reset-ticks。
此外,在行为空间对话框向导中,我还包括 reset-ticks 作为要执行的最终命令。然而我得到了这个错误。
下面是我的设置和代码:
to setup
clear-all
setup-citizens
setup-parties
update-support
reset-ticks
end
to go
ask parties [ adapt set my-old-size my-size ]
update-support
election
plot-voter-turnout
plot-volatility
if (Turnout-100%? = false) [plot-citizen-comparison]
tick
end