Mosquito Simulation finding the nearest Human Agent

53 views
Skip to first unread message

Mark Christian Gamata

unread,
Sep 8, 2023, 5:04:50 AM9/8/23
to GAMA
Hello, it is my first time using GAMA platform and I am doing a simulation of mosquito-borne diseases. I am trying to get the nearest  Human Agent for each of my mosquito Agents given a specific range so that the mosquito can follow it and have its meal. I can't figure out how to do it. Maybe someone can help me figure it out.

Thank you.

Kevin Chapuis

unread,
Sep 8, 2023, 10:05:03 AM9/8/23
to gama-p...@googlegroups.com
Dear Mark,

Welcome to the Gama community.

In order to find the closest agent, there is a quite intuitive operator closest_to, then you can see if the distance threshold is met, if not exclude the agent until you find a match. I'll let you dig into this direction, while there exists many other solutions, for example using the buffer operator to represent the range around the mosquito, then overlaps to identify human agents within the area, looking at the closest one.

As a global advice, you should first try to figure out an answer by yourself, looking at the list of operators, other questions previously asked here or models library and tutorials, before asking the community. Providing code examples, as well as, background about your model and/or question is also a bit more engaging for those who try to help you. For instance, using spatial operators will be heavy in terms of computation, which might not be suitable if you plan to have many mosquito agents (switching to a grid based "distance" metric is a light alternative).

Best,
Kevin 

Le ven. 8 sept. 2023 à 11:04, 'Mark Christian Gamata' via GAMA <gama-p...@googlegroups.com> a écrit :
Hello, it is my first time using GAMA platform and I am doing a simulation of mosquito-borne diseases. I am trying to get the nearest  Human Agent for each of my mosquito Agents given a specific range so that the mosquito can follow it and have its meal. I can't figure out how to do it. Maybe someone can help me figure it out.

Thank you.

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gama-platform/29fcbf0e-7e6d-4752-93e5-7d742115a904n%40googlegroups.com.


--
Chapuis kevin
Research Fellow / Freelance Consultant
Computer models & simulations
Reply all
Reply to author
Forward
0 new messages