增量值呈指数增长 [英] Increment value increasing exponentially

查看:84
本文介绍了增量值呈指数增长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试增加属于同一品种的每个特工的属性的值.属性的每一帧都应增加一个预定值,在这种情况下为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!

这篇关于增量值呈指数增长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆