Coder Social home page Coder Social logo

akaysh / spidermonkey.jl Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 0.0 536 KB

A Julia package for Spider Monkey Optimization.

License: MIT License

Julia 100.00%
spider-monkey-optimization smo-algorithm julia optimization-algorithms optimization swarm-intelligence heuristic-search-algorithms

spidermonkey.jl's Introduction

SpiderMonkey.jl

Build Status Coverage Status

Spider Monkey Optimization is a numerical optimization algorithm which is based on the foraging begavior of spider monkeys. It is one of the swarm intelligence approaches which can be broadly classified as an algorithm inspired by intelligent foraging behavior of fission–fusion social structure based animals. The animals which follow fission–fusion social systems (like Spider Monkeys), split themselves from large to smaller groups and vice-versa based on the scarcity or availability of food.
Here is the research paper for SMO algorithm and here is my Aegist Spider Monkey algorithm research paper which proposed a few tweaks in the original algorithm to make it more efficient (will be implemented soon as a part of this package).

Install

Pkg.add("SpiderMonkey")

Usage

Import the library

This brings the function smo (short for Spider Monkey Optimization) into the scope.

using SpiderMonkey

Define your optimization function and parameters

The function can be defined like the ones in BlackBoxOptimizationBenchmarking or you can use one of those implemented bechmarking functions.

For the SMO optimization algorithm we need the function f to be optimized, the dimension of the search space D or the function and population of the spider monkeys P for the heuristic search. We also need to define the upper ub and lower bounds lb of the search space coordinates for the boundaries which are DX1 arrays.

SMO

using BlackBoxOptimizationBenchmarking;
ub = fill(5,(100,));
lb = fill(-5,(100,));
smo(100,30,BlackBoxOptimizationBenchmarking.F1.f,0.5,25,20,8,100,ub,lb);

Best hyperparameters?

There are lots of parameters that can be tweaked. The algorithm is generally fairly robust meaning that slight changes in parameters should not result in drastically different performance.

I suggest reading on Spider Monkey Optimization algorithm here before starting. However if you don't feel like it, the parameters worth playing around with might be:

  • ɳ: perturbation rate
  • λ: local leader limit, max count for which the position of the local leader remains unchanged
  • α: global leader limit, max count for which the position of the global leader remains unchanged
  • β: maximum number of groups allowed
  • τ: maximum number of iterations

spidermonkey.jl's People

Contributors

akaysh avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

spidermonkey.jl's Issues

License ?

Hello, under what license is this project released under ? I would like to study it to learn from it. Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.