Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup-siblings produces an exaggerated number of siblings #194

Open
ambitious-octopus opened this issue Sep 2, 2020 · 0 comments · Fixed by #198
Open

setup-siblings produces an exaggerated number of siblings #194

ambitious-octopus opened this issue Sep 2, 2020 · 0 comments · Fixed by #198
Labels
bug Something isn't working netlogo This issue is related to the development of the model in netlogo

Comments

@ambitious-octopus
Copy link
Contributor

During standard setup the setup-siblings procedure generates an exaggerated number of siblings. The problem does not extend to connections that are created during the generate_households procedure. The number of siblings that are generated is proportional to the number of initial agents of the model.

You can try it yourself by entering this code at the end of setup-siblings:

  ask persons with [ any? out-offspring-link-neighbors ][
    show count sibling-link-neighbors]

With 2k initial agents this is the result:
Annotazione-2020-09-02-143720

Possible solution:
During the mesa translation I solved this problem by eliminating within the cycle the agents that have already been connected. Without eliminating these agents, it happens that the agents who have already been assigned siblings are fished out and added an additional group of siblings among the candidates, creating an exaggerated number of siblings.

@ambitious-octopus ambitious-octopus added bug Something isn't working netlogo This issue is related to the development of the model in netlogo labels Sep 2, 2020
@ambitious-octopus ambitious-octopus linked a pull request Oct 1, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working netlogo This issue is related to the development of the model in netlogo
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant