GithubHelp home page GithubHelp logo

czeslavo / gwo Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 3.0 1.49 MB

Grey Wolf Optimizer (+ PSO for comparison) algorithm implementation in C++ with Python bindings

License: MIT License

CMake 3.57% C++ 76.77% Makefile 1.96% Python 17.69%
optimization-algorithms metaheuristics python-bindings

gwo's Introduction

Grey Wolf Optimizer (GWO) C++ implementation with Python bindings

Structure

  • optimization/ - implementation and python bindings
  • benchmark/ - python code using the bindings, producing data for benchmarking
  • parpers/ - original paper on GWO

Usage

You can go directly to benchmark directory and execute: make run

It will compile optimization.so shared library (with python bindings) and run python script, which imports the aforementioned library (module). Results of the execution will be present in data/ and bests/ directories.

gwo's People

Contributors

czeslavo avatar

Stargazers

 avatar Sergey Matrosov avatar Setareh Askari avatar

Watchers

James Cloos avatar  avatar Matt Tonkins avatar

gwo's Issues

float rand r1 and r2

Possible issue on gwo/optimization/grey_wolf_optimizer.cpp lines 97, 107, 117

I believe this

double r1 = get_random(0., 1.);
double r2 = get_random(0., 1.);

double A1 = 2. * a * r1 - a;
double C1 = calculate_c(calc_type_c, r1, iteration, max_number_of_iterations); 

should be

double r1 = get_random(0., 1.);
double r2 = get_random(0., 1.);

double A1 = 2. * a * r1 - a;
double C1 = calculate_c(calc_type_c, r2, iteration, max_number_of_iterations); 

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.