Counter-Ant System (CAS): A Simple Way to Learn ACO
Version 1.1.0 (2 KB) von
Adisorn Owatsiriwong
Instead of thinking of pheromone as mysterious equations, think of it as counters or votes.
🐜 The Core Idea
Instead of thinking of pheromone as mysterious equations, think of it as counters or votes:
- Each design variable (e.g., each beam) has a set of options (rebar sizes).
- Whenever a safe and feasible solution is built, the chosen options each get +1 vote.
- Old votes gradually fade away (evaporation).
Over many iterations, the options with the most votes rise to the top, guiding the search toward the best design.
🔄 Iterative Learning
At every iteration:
- Ants build designs based on current votes.
- Unsafe designs are discarded.
- Votes decay slightly (forgetting old, possibly wrong choices).
- Feasible designs add fresh votes.
Over time, the swarm converges to the lightest safe total As across both beams.
Zitieren als
Adisorn Owatsiriwong (2025). Counter-Ant System (CAS): A Simple Way to Learn ACO (https://de.mathworks.com/matlabcentral/fileexchange/182184-counter-ant-system-cas-a-simple-way-to-learn-aco), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2024b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.1.0 | add example table |
||
| 1.0.0 |
