[starlogo-users] First model...difficulties...kin selection
Eric Klopfer
klopfer at MIT.EDU
Wed Sep 13 08:02:03 EDT 2006
Hi Milos
This is an interesting problem. At least from my read though I wasn't
able to figure out enough of the code or the problem from what you have
provided. Could you perhaps attach a sample project (you can extract
just the few lines of culprit code, as long as they run by themselves)
that illustrates the behavior.
Some of the questions I had were
which patches were red and how did this relate to the plants?
are there plants on every patch?
how else is energy changing and how does this interact with this code?
Others may have ideas, but it would definitely help to see a project
sowing the problem.
Eric
Milos Blagojevic wrote:
> Hello,
>
> i am tangled with the usage of diffuse command...my project is about kin
> and group selection and it includes simulation of the experiment we
> counducted...it is about plants and their altruistic behaviour...because
> plants can not effectively perceive their own kin we have to assume that
> altruistical act will be essentially random...that is where my modeling
> problem lies... i have used the diffuse command to make a little of
> plant's energy variable be shared among neighbours...but the problem is
> that no matter how small i put the diff % i get really big oscillations
> in that variable...it even goes bellow zero wich is impossible...it
> looks like this:
>
> ask-patches [ if pc = red [ setdiffenergy ( energy-of
> one-of-turtles-here) ]]
> diffuse diffenergy 0.005
> ask-pl4 [if pc = red [ setenergy diffenergy ]]
>
> pl-4 being one of plant breeds...and than it takes the energy ( wich is
> already changing for other influences ) to be the same as the diffused
> one... i don't know how to incorporate that energy change due to random
> sharing to the overall energy variable in any other way...sharing should
> be made to all neghbours though...
>
> is there any other way i coud make variable to be randomly shared among
> neghbours or am i using this command wrong?
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> _______________________________________________
> starlogo-users mailing list
> starlogo-users at media.mit.edu
> http://education.mit.edu/mailman/listinfo/starlogo-users
More information about the starlogo-users
mailing list