[starlogo-users] First model...difficulties...kin selection

Milos Blagojevic spearsatanas at hotmail.com
Wed Sep 13 06:33:30 EDT 2006


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/



More information about the starlogo-users mailing list