You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example: move_to('sugar', 'max'). This would abstract the code for handling sequential conflicts, making it easier than handling them from scratch each time.
The text was updated successfully, but these errors were encountered:
hi @adamamer20, I tried to understand this issue, if I am correct this feature aims to write a function which upon calling would solve the issue of multiple agents trying to move on the same grid at the same time which will prevent us from dealing with those edge cases everytime.
Can you please share me necessary resources which can help me address this issue ?
Also could you please elaborate on any points i missed.
@suryanshgargbpgc You're correct in your understanding! I recommend checking out the sugarscape example for polars to get a clear picture of these concurrency conditions. You can see it here:
In this example, the best move might be the same for multiple agents at the same time. Since we're moving all ants simultaneously in a vectorized way, it's important to address this issue. I handled it this way in sugarscape, and I believe the same reasoning can be generalized to accommodate various agent attribute objectives, removing the burden of the implementation on the user
It would be beneficial to have a function in the DiscreteSpaceDF (and AgentContainer) for moving agents based on attributes:
For example:
move_to('sugar', 'max')
. This would abstract the code for handling sequential conflicts, making it easier than handling them from scratch each time.The text was updated successfully, but these errors were encountered: