Domain-first clean monolith for defining optimization problems and running swarm-based algorithms.
- 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
.venv312/bin/python -m unittest discover -s tests -v
.venv312/bin/python -m swarm_opt run-benchmark --algorithm gwo --objective sphere --dimensions 3 --iterations 15 --population 12 --seed 7
/Users/password9090/.local/bin/python3.12 -m venv .venv312.venv312/bin/python -m pip install mealpy
Currently enabled in this app:
ba— Bat Algorithmffa— Firefly Algorithmcsa— Cuckoo Search Algorithmfpa— Flower Pollination Algorithmabc— Artificial Bee Colonygwo— 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,BeesACA,CDDO,CDO,CEM,CGO,CHIO,COA,CRO,CSA,CSO,CircleSA,CoatiOA,DE,DMOA,DO,EFO,EHO,EO,EOA,EP,EPC,ES,ESO,ESOA,EVOFA,FBIO,FDO,FFA,FFO,FLA,FOA,FOX,FPA,GA,GBO,GCO,GJO,GOA,GSKA,GTO,GWO,HBA,HBO,HC,HCO,HGS,HGSO,HHO,HSICA,IMODE,INFO,IWO,JA,LCO,LSHADEcnEpSin,MA,MFO,MGO,MPA,MRFO,MSA,MVO,NGO,NMRA,NRO,OOA,PFA,POA,PSO,PSS,QSA,RIME,RUNSA,SARO,SBO,SCA,SCSO,SFO,SHADE,SHIO,SHO,SLO,SMA,SMO,SOA,SOS,SPBO,SRSR,SSA,SSDO,SSO,SSpiderA,SSpiderO,STO,SeaHO,ServalOA,SquirrelSATDO,TLO,TOA,TPO,TS,TSA,TSO,TWO,VCS,WCA,WDO,WHO,WOA,WaOA,WarSO,ZOA
- domain and use cases drive the structure
- infrastructure depends on ports, not the reverse
mealpyis isolated behind the algorithm adapter layer- business rules stay out of CLI, storage, and algorithm adapters