-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
What's the problem this feature will solve?
Currently, there are several examples [1] where the agents are supposed to move to a random location within the neighborhood.
This is implemented with a rather verbose class, RandomWalker, .
next_moves = self.model.grid.get_neighborhood(self.pos, self.moore, True)
next_move = self.random.choice(next_moves)
# Now move:
self.model.grid.move_agent(self, next_move)If you look at https://github.com/JuliaDynamics/ABMFrameworksComparison/tree/main/WolfSheep/Mesa, the random_walk.py is one of the reason why Mesa has a long LOC.
Describe the solution you'd like
It would be great if there is a method move_agent_to_neighborhood that encapsulates the random walk procedure defined in the previous section.
[1] bank reserve, Boltzmann wealth model, wolf sheep
Metadata
Metadata
Assignees
Labels
No labels