Skip to content
Back to skills

GEO INFER ANT

ASecurity

Ant Colony Optimization and swarm intelligence for geospatial problems. Use when solving spatial optimization with ACO, PSO, ABC algorithms, implementing stigmergic coordination, or optimizing geographic routing and resource allocation with bio-inspired methods.

  • 17 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 1, 2026
ai-agentspythongobashnodegitapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 1, 2026

npx -y skills add ActiveInferenceInstitute/GEO-INFER --skill GEO-INFER-ANT --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of GEO INFER ANT?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for GEO INFER ANT
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/activeinferenceinstitute-geo-infer-ant/badge)](https://www.skillsdirectory.com/skills/activeinferenceinstitute-geo-infer-ant)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geo-infer-ant
description: Ant Colony Optimization and swarm intelligence for geospatial problems. Use when solving spatial optimization with ACO, PSO, ABC algorithms, implementing stigmergic coordination, or optimizing geographic routing and resource allocation with bio-inspired methods.
prerequisites:
  required:
    - geo-infer-space
  recommended:
    - geo-infer-math
difficulty: advanced
estimated_time: 60min
examples_dir: ../GEO-INFER-EXAMPLES/examples/
---

# GEO-INFER-ANT

## Instructions

### Core capabilities

- **ACO**: seeded Ant System, Ant Colony System, and Max-Min Ant System for
  matrix-backed routing, VRP-style constraints, and multi-objective paths.
- **PSO**: bounded continuous optimization with obstacle handling, local or
  global neighborhoods, adaptive parameters, and swarm coordination.
- **ABC**: employed, onlooker, and scout phases for bounded continuous search.
- **Stigmergy**: H3-indexed pheromone fields, diffusion, evaporation, deposit
  auditing, and digital trace coordination.
- **Applications**: environmental monitoring, disaster response, and urban
  traffic routing consume real supplied observations and graph/network inputs.
- **Analysis**: spatial patterns, interaction networks, emergence measures, and
  performance statistics are available from importable package APIs.

### Key imports

```python
import numpy as np

from geo_infer_ant.algorithms import (
    AntColonyOptimization,
    ParticleSwarmOptimization,
    ArtificialBeeColony,
)
from geo_infer_ant.core import PheromoneSystem, SwarmAgent, AgentPopulation
```

## Examples

### Matrix-backed ACO

```python
distance_matrix = np.array([
    [0.0, 1.0, 2.0],
    [1.0, 0.0, 1.0],
    [2.0, 1.0, 0.0],
])
optimizer = AntColonyOptimization(
    number_of_ants=20,
    max_iterations=50,
    variant="ACS",
    random_seed=42,
)
optimizer.initialize_problem(
    nodes=np.arange(3),
    distance_matrix=distance_matrix,
)
result = optimizer.solve()
print(result.best_solution, result.best_fitness)
```

## Guidelines

Use explicit bounds and finite numeric objective functions. Seed every
optimization or application run when reproducibility matters, and initialize
ACO with its problem matrices before solving. Treat empty observations or an
absent graph as an input condition and inspect the returned status rather than
assuming an improvement.

### Validation

Run the module gate from the repository root:

```bash
uv run python GEO-INFER-TEST/run_unified_tests.py --module ANT
```

For focused development, run the affected tests first:

```bash
uv run python -m pytest -c pyproject.toml -W error \
  GEO-INFER-ANT/tests/unit/test_deep_contracts.py
```

All optimizers accept `random_seed`/`seed` for reproducible local validation.
State serialization is JSON-compatible, H3 resolutions accept integer or
`h3_rN` forms, and malformed spatial bounds or matrices fail at the boundary.

### Integrations

ANT integrates with GEO-INFER-SPACE when installed and keeps deterministic
local behavior available when optional spatial adapters are absent. Population
agents can share a PheromoneSystem and can receive an injected Active Inference
model from GEO-INFER-ACT.

Files in this skill

  • AGENTS.md1.4 KB
  • IMPLEMENTATION_STATUS.md3.2 KB
  • README.md1.6 KB
  • SKILL.md3.1 KB
  • config/AGENTS.md1.2 KB
  • config/README.md895 B
  • config/example_config.yaml5.8 KB
  • config/schema.json14.1 KB
  • docs/api_reference.md14.2 KB
  • docs/examples/advanced_example.md15 KB
  • docs/examples/basic_example.md8.3 KB
  • docs/getting_started.md9 KB
  • docs/index.md5.2 KB
  • examples/AGENTS.md1.2 KB
  • examples/README.md1.4 KB
  • examples/swarm_intelligence_demo.py24.3 KB
  • pyproject.toml3.4 KB
  • requirements.txt219 B
  • run_tests.py10.9 KB
  • setup.py4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.