List Info

Thread: Problems with the Patch-own...




Problems with the Patch-own...
country flaguser name
Brazil
2007-10-19 12:56:34

Hi,

I am having a problem with a variable in my patches-own, must take the value of all present in my simulation to make a calculation I have no idea of how to do it, I am using the NetLogo version 3.1.4.

Does anyone have any idea.

Yours truly;
--
Luís César da Costa
B.Sci. in Computer Science
Computer sCience Coordination - CCC
--------------------------------------------------------------------------------------
National Laboratory of sCientific Computing - LNCC
Av. Getúlio Vargas, 333, Quitandinha, Petrópolis - RJ
Tel: -55 (24) 2233-6267
Fax: -55 (24) 2233-6071
lcostalncc.br
--
"I log in, therefore I am. Reality is for people without Internet access..." Electrical Cheap

__._,_.___
.

__,_._,___
Re: Problems with the Patch-own...
country flaguser name
United States
2007-10-21 14:57:42

You would use VALUES-FROM and then SUM or MEAN or REDUCE...

let sum-patch-variable values-from patches [ variable or expression

~~James

On 10/19/07, lcostalncc.br">lcostalncc.br < lcostalncc.br">lcostalncc.br&gt; wrote:
Hi,

I am having a problem with a variable in my patches-own, must take the value of all present in my simulation to make a calculation I have no idea of how to do it, I am using the NetLogo version 3.1.4.

Does anyone have any idea.

Yours truly;
--
Luís César da Costa

&nbsp;


__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )