NAME
r.agent.rand - Agents wander around on the terrain, marking paths to new locations.
KEYWORDS
SYNOPSIS
r.agent.rand
r.agent.rand --help
r.agent.rand [-p] outputmap=string costmap=string rounds=integer [mark=integer] [maxagents=integer] [agentslife=integer] [agentfreedom=integer] [--help] [--verbose] [--quiet] [--ui]
Flags:
- -p
- Allow overwriting existing output maps
- --help
- Print usage summary
- --verbose
- Verbose module output
- --quiet
- Quiet module output
- --ui
- Force launching GUI dialog
Parameters:
- outputmap=string [required]
- Name of step output map
- costmap=string [required]
- Name of penalty resp. cost raster map (note conversion checkbox)
- rounds=integer [required]
- Number of iterations/rounds to run
- Options: 0-999999
- Default: 999
- mark=integer
- Mark each step an agent takes
- Options: 0-<max integer on system would make sense>
- maxagents=integer
- Maximum amount of agents that may live concurrently (x*y)
- Options: 0-<the bigger the playground, the more space they have>
- agentslife=integer
- Time to live for an agent
- Options: 0-<max integer on system would make sense>
- agentfreedom=integer
- Number of possible directions the ant can take (4 or 8)
- Options: 4, 8
This submodule -
r.agent.rand -
is nothing but an example of how the
libagent
library might be used to get a simple setup running.
As the name suggests,
r.agent.rand lets agents
wander around just based on chance. You only need to
define a single input map, just some raster map, that
will be completely ignored, it is only used to set the
frame for the agents to come.
Michael Lustenberger inofix.ch
SOURCE CODE
Available at:
r.agent.rand source code
(history)
Latest change: Monday May 29 21:03:12 2023 in commit: 0065b084310a0c10a8cbb688ae2145322b73f02a
Main index |
Raster index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2024
GRASS Development Team,
GRASS GIS 8.4.1dev Reference Manual