Abelhas

Overview

Abelhas (aka Lua PSO) is a Lua library for particle swarm optimization (PSO), a population-based stochastic optimization algorithm inspired by the social behavior of some species, like bees, fishes, and birds, and used for solving a multitude of numeric problems with linear and discrete search spaces. The first particle swarm optimization algorithm was invented by Dr. James Kennedy and Russell Eberhart in 1995 and since then several versions and variants have been created. Abelhas is one of them.

For people familiarized with particle swarms, Abelhas is a particle swarm optimizer that uses global neighborhood, speed limits and particle replacement. It does not have the concept of inertia.

Animation showing particles converging to a maximum

History

Licensing information

Abelhas is copyrighted free software distributed under the same license that Lua 5.1, so, if you can use Lua in your application, you can use Abelhas too. The full license text follows:

Abelhas (c) 2005-2012 Alexandre Erwin Ittner

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHOR OR COPYRIGHT HOLDER BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

If you use this package in a product, an acknowledgment in the product
documentation would be greatly appreciated (but it is not required).

Download

Abelhas is a pure-Lua library and can be downloaded from the download page in GitHub. After downloading, just unpack the distribution package and copy the file pso.lua to the Lua packages directory in your system.

Some old tarballs are also archived in Luaforge but all new releases are done in GitHub.

It is also possible to install Abelhas using Lua Rocks. If you have LuaRocks installed in your system, just type luarocks install abelhas in the shell.

Development

All current development is done in GitHub. Code contributions are welcome! Just fork the repository and send me a pull request or e-mail me a patch.

Contact information

Author:
Alexandre Erwin Ittner
E-mail:
alexandre#ittner.com.br (e-mail obfuscated to avoid spam-bots. Please replace the "#" with an "@")
PGP Key:
0x0041A1FB (key fingerprint: 9B49 FCE2 E6B9 D1AD 6101 29AD 4F6D F114 0041 A1FB)
Homepage:
http://www.ittner.com.br/