--
You received this message because you are subscribed to the Google Groups "The Modelling4All project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modelling4al...@googlegroups.com.
To post to this group, send email to modell...@googlegroups.com.
Visit this group at http://groups.google.com/group/modelling4all.
For more options, visit https://groups.google.com/d/optout.
Hi.I think c) is the way to go.In the Linking section of the main library there are two micro-behaviours:Add a directed link from another.Add a directed link to another.You can use which ever is more convenient. The tricky part is to have, for example, the 'Add a directed link to another' behaviour on the mother refer to the newly born agent. Perhaps it is easier for the newly created agent to use 'Add a directed link from another' to refer to the mother that spawned him/her.Once you have the links in place the 'Lay out a set of agents where the agents repel each other and the links between them act like springs' behaviour can move the agents around to make a nice looking tree.Give it a try and if you have problems or questions don't hesitate to ask. Or maybe there will be time during the class this afternoon to show you the basic idea.Best,-ken
On 11 March 2014 16:15, Andreas Duering <andreas...@stx.ox.ac.uk> wrote:
--
You received this message because you are subscribed to the Google Groups "The Modelling4All project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modelling4al...@googlegroups.com.
To post to this group, send email to modell...@googlegroups.com.
Visit this group at http://groups.google.com/group/modelling4all.
For more options, visit https://groups.google.com/d/optout.
Hi.
Yes, it is tricky. I experimented with using 'myself' in this example http://m.modelling4all.org/m/?frozen=gHJKoK9GK7wS7Efy0Wqa44&MforAllModel=1It seems to work. Myself here will refer to the mother. See http://ccl.northwestern.edu/netlogo/docs/dictionary.html#myselfBest,-ken
On 12 March 2014 08:20, Andreas Duering <andreasdu...@gmail.com> wrote:
http://m.modelling4all.org/m/?frozen=K8EwNeorLIaeqQmfmN_X6h&MforAllModel=1
The next step is to work with the interface, e.g. repel agents from the edges.
The picture already tells me a lot about family structure etc. but the "family tree" is still only a visual thing. To actually analyse it I must store and sort kinship data/computed kinship data.
I also have not decided yet if I only want to draw the living population's links or if the little ghosts should not lose their links.
Thank you for all the suggestions. I will play around with the options now.
Howard, concerning the naming of family trees:
The actual naming according to kinship is easy in the first few generations. However, after a few generations the names of the children become gigantic.
For example I could create a starter generation of females and give them a random no to represent the original maternal lines.
Then I could give each of their children a number representing the generation (counting up from mother to child to grandchild...).
Then I could number the children per mother (which the code is already recording to calculate average fertility).
But then some brothers and sisters will have exactly the same name after generation no 2.
Best
Andreas
I generally think it is better to compute relationships when possible. E.g. brother is via parent link to child link that has attribute 'male'.Note that if this isn't time critical code in NetLogo you can avoid parent links by using objects with [member? self out-links] (or something close to that). Then out-links are all from parent to child.
Best,-ken
Dear Ken & Howard,generally I managed to implement Ken's suggestions:
http://m.modelling4all.org/m/?frozen=K8EwNeorLIaeqQmfmN_X6h&MforAllModel=1
The next step is to work with the interface, e.g. repel agents from the edges.
The picture already tells me a lot about family structure etc. but the "family tree" is still only a visual thing. To actually analyse it I must store and sort kinship data/computed kinship data.
I also have not decided yet if I only want to draw the living population's links or if the little ghosts should not lose their links.
Thank you for all the suggestions. I will play around with the options now.
Howard, concerning the naming of family trees:
The actual naming according to kinship is easy in the first few generations. However, after a few generations the names of the children become gigantic.
For example I could create a starter generation of females and give them a random no to represent the original maternal lines.
Then I could give each of their children a number representing the generation (counting up from mother to child to grandchild...).
Then I could number the children per mother (which the code is already recording to calculate average fertility).
But then some brothers and sisters will have exactly the same name after generation no 2.
Best
Andreas
Andreas Duering, M.A., M.St.
Clarendon Scholar
D.Phil. student in Archaeology
School of Archaeology
University of Oxford
St Cross College
andreas...@stx.ox.ac.uk
andreasdu...@gmail.com
2014-03-12 8:57 GMT+00:00 Ken Kahn <toon...@gmail.com>:
I generally think it is better to compute relationships when possible. E.g. brother is via parent link to child link that has attribute 'male'.Note that if this isn't time critical code in NetLogo you can avoid parent links by using objects with [member? self out-links] (or something close to that). Then out-links are all from parent to child.
Best,-ken
Hi Andreas, you can change the wrapping of the world by adding "Change the world geometry" behaviour.see you in a bit
On Wed, Mar 12, 2014 at 11:14 AM, Andreas Duering <andreasdu...@gmail.com> wrote:
it might be easier to solve this in the classroom...ok i think I know what you mean. i tried a simple model where mothers create children each tick and let that network grow.i think wrapping might be on but it looks like it is off because the agents at the edge of the screen try to space themselves away from the agents at the opposite edge...so they bunch up, and make it look like wrapping isn't working.
On Wed, Mar 12, 2014 at 2:24 PM, Andreas Duering <andreasdu...@gmail.com> wrote:
Dear Ken & Howard,
I hope you liked my talk yesterday. Thank you for all the info and suggestions.
My first task for today is to resize the world/links of the spring according to the number of agents in the system.
I first tried to just adjust the initial size of the patches /the world according to the sqrt ( count turtles ). But as the world can only be changed once before setup this is not a solution.Then I took the code of the Preferential Attachment model and copy pasted it into a behaviour (Resize world). It did not work.
So I changed "turtles" into the count of males and females in the system etc. But still it is not resizing the springs etc.
What is the missing link? Is it not recognising the actual springs and links in the model?
http://m.modelling4all.org/m/?frozen=iPApP0KN-ghbycR_W2qC4e&MforAllModel=1
I am sorry to bother you with all these questions!
Best
Andreas
Andreas Duering, M.A., M.St.
Clarendon Scholar
D.Phil. student in Archaeology
School of Archaeology
University of Oxford
St Cross College
andreas...@stx.ox.ac.uk
andreasdu...@gmail.com
2014-03-12 14:33 GMT+00:00 Howard Noble <howard...@gmail.com>:
it might be easier to solve this in the classroom...ok i think I know what you mean. i tried a simple model where mothers create children each tick and let that network grow.i think wrapping might be on but it looks like it is off because the agents at the edge of the screen try to space themselves away from the agents at the opposite edge...so they bunch up, and make it look like wrapping isn't working.
On Wed, Mar 12, 2014 at 2:24 PM, Andreas Duering <andreasdu...@gmail.com> wrote:
Hi.
The comment in the Preferential Attachment model is confusing. It says ';; don't bump the edges of the world' but it should say something like ';; keep the average position of all turtles near the centre". In models where the agents are mostly in one area then this does reduce bumping by bringing them towards the centre where there is more room. But doesn't help in the models we've been looking at.Regarding your version of layout the problem is that you define the version borrowed from Preferential Attachment but don't call it. The 'lay out linked males' and 'lay out linked females' continue to call layout-spring instead of the new layout.But you can use their way of computing the factor to determine the spring parameters as I did in the following:But it does look like the best solution is your second link -- use a bigger world with smaller patches and agents.Best,-ken
And speaking of demography models there ishttp://www.openabm.org/model/2905/version/1/view (the NetLogo world view is buried under some text areas and the downloaded files have TXT extensions but the code expects DAT -- but otherwise works fine).
Also http://jasss.soc.surrey.ac.uk/16/4/9.html is both a survey of ABM and demography and describes their model.Best,-ken
On 18 March 2014 10:34, Richard Taylor <richard...@sei-international.org> wrote: