我得到这个错误,而使用行为空间
The tick counter has not been started yet. Use RESET-TICKS.
error while observer running TICKS
called by procedure __EVALUATOR
运行迭代我不知道为什么会这样。我在“设置”例程中包含了重置标记。
此外,在行为空间对话框向导中,我还包括重置蜱作为要执行的最终命令。然而,我收到这个错误。
下面是我的设置和运行的代码:
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
你会发布行为空间配置的屏幕截图吗? –
@BryanHead:我用截图编辑了问题。 – Yuvaraj
我将'reset-ticks'看作最终的命令。 (不需要)。你确定它在你的'setup'中,*在任何调用'tick'之前?如果你在命令行运行'ca setup',会发生什么? – Alan