增量值呈指数增长

问题描述:

我目前正在尝试增加属于同一品种的每个特工的属性的值.属性的每一帧都应增加一个预定值,在这种情况下为1.

I am currently trying to increase the value of an attribute belonging to every agent of the same breed. Every frame the attribute should increase by a pre-determined value, in this case 1.

ask breed [if attribute < max-value [set attribute attribute + 1]]

我在模型中有两个这个品种的代理商,他们都以相同的速度改变属性,即

I have two agents of this breed in the model and they both change the attribute at the same pace i.e

tick0:100(100是起始值) tick1:100 tick2:101 tick3:103 tick4:106 tick5:110 tick6:121 tick7:128

tick0: 100 (100 is the starting value) tick1: 100 tick2: 101 tick3: 103 tick4: 106 tick5: 110 tick6: 121 tick7: 128

这里似乎有一种模式,尽管我不知道为什么增加属性而不是增加1.以前有人遇到过这样的事情吗?

There seems to be a pattern here although I can't figure out why it's increasing the attribute rather than incrementing by 1. Anybody came across anything like this before?

Ah愚蠢的错误.我是通过另一个人口每帧增加的代理人来称呼这个的!

Ah silly mistake. I was calling this through another agent whose population was increasing per frame!