我创建了一个模型,作为2个不同的滑块,即ratio1
和ratio2
。它们位于界面上,它们的值应该加起来为1(此处为:labour-unit
),也不能超过此值。现在,NetLogo让我超过了条件。
我试过这个:
to setup
create-turtles number-of-turtles ;; number of firms to be defined through slider
set labour-unit ratio1 + ratio2
set labour-unit 1
end
因此,我的问题是:如何在2个滑块值不能超过定义值的设置中创建条件?