is there some primitive for using value of variable from previous tick? I tried to compute variable of "price" for one agent and I mean to use formula which includes other agents' "price" variable but from previous tick.
相关问题
- Batch - Set variables in for loop
- Making turtles wait x number of ticks
- JavaScript, confusing syntax when declaring a vari
- How can I create a new variable based on condition
- Why is a variable not updating after changing its
相关文章
- Loss of variables switching orientations
- What is the limit in size of a Php variable when s
- Makefile and use of $$
- Splitting an array into the variables in php
- javascript setInterval() and Variable Scope
- Initialization in polymorphism of variables
- Is Type name = name; ever useful in C++?
- BASH: Is “export” needed, when setting a variable
No, there is no built-in way to do this in NetLogo. Your best bet would probably be to create a variable called something along the lines of
varname-last-tick
and then updating that as the last thing you do in thego
procedure of these agents. It sounds like the variable you want to use for your agents is 'price', so it would be something like,then you can use
[price-last-tick] of other agents
in your code rather than the current price.