Skip to content

bivex/ragops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swarm Optimization Platform

Domain-first clean monolith for defining optimization problems and running swarm-based algorithms.

What is included

  • business goals, requirements, glossary, and architecture docs in docs/
  • a pure-domain core with explicit ports
  • a synchronous application service for running optimization use cases
  • in-memory adapters and mealpy-backed swarm algorithms: ba, ffa, csa, fpa, abc, gwo
  • a tiny CLI for running benchmark problems

Run tests

  • .venv312/bin/python -m unittest discover -s tests -v

Run the demo

  • .venv312/bin/python -m swarm_opt run-benchmark --algorithm gwo --objective sphere --dimensions 3 --iterations 15 --population 12 --seed 7

Install algorithm runtime

  • /Users/password9090/.local/bin/python3.12 -m venv .venv312
  • .venv312/bin/python -m pip install mealpy

Optimization algorithms

Currently enabled in this app:

  • ba — Bat Algorithm
  • ffa — Firefly Algorithm
  • csa — Cuckoo Search Algorithm
  • fpa — Flower Pollination Algorithm
  • abc — Artificial Bee Colony
  • gwo — Grey Wolf Optimizer

Book coverage in installed mealpy 3.0.3:

  • available and wired: BA, FFA, CSA, FPA, ABC, GWO
  • not exposed in this installed version: AFSA/FSS, WSA

Installed mealpy optimizer families discovered in this environment:

  • ABC, ACOR, AEO, AFT, AGTO, ALO, AO, AOA, ARO, ASO, AVOA, ArchOA, BA, BBO, BBOA, BCO, BES, BFO, BMO, BRO, BSA, BSO, BeesA
  • CA, CDDO, CDO, CEM, CGO, CHIO, COA, CRO, CSA, CSO, CircleSA, CoatiOA, DE, DMOA, DO, EFO, EHO, EO, EOA, EP, EPC, ES, ESO, ESOA, EVO
  • FA, FBIO, FDO, FFA, FFO, FLA, FOA, FOX, FPA, GA, GBO, GCO, GJO, GOA, GSKA, GTO, GWO, HBA, HBO, HC, HCO, HGS, HGSO, HHO, HS
  • ICA, IMODE, INFO, IWO, JA, LCO, LSHADEcnEpSin, MA, MFO, MGO, MPA, MRFO, MSA, MVO, NGO, NMRA, NRO, OOA, PFA, POA, PSO, PSS, QSA, RIME, RUN
  • SA, SARO, SBO, SCA, SCSO, SFO, SHADE, SHIO, SHO, SLO, SMA, SMO, SOA, SOS, SPBO, SRSR, SSA, SSDO, SSO, SSpiderA, SSpiderO, STO, SeaHO, ServalOA, SquirrelSA
  • TDO, TLO, TOA, TPO, TS, TSA, TSO, TWO, VCS, WCA, WDO, WHO, WOA, WaOA, WarSO, ZOA

Architecture principles

  • domain and use cases drive the structure
  • infrastructure depends on ports, not the reverse
  • mealpy is isolated behind the algorithm adapter layer
  • business rules stay out of CLI, storage, and algorithm adapters

About

Swarm Optimization Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages