Coder Social home page Coder Social logo

metaheuristics's Introduction

最適化アルゴリズム(主にメタヒューリスティクス)の実装コード

以下Qiita記事の実装コードとなります。 コードの解説については記事を参照してください。

実装アルゴリズム

  • 遺伝的アルゴリズム(Genetic Algorithm: GA)
  • 実数型遺伝的アルゴリズム
    • GA BLX-α
    • GA SPX
  • 人口蜂コロニーアルゴリズム(Artificial Bee Colony: ABC)
  • 粒子群最適化(Particle Swarm Optimization: PSO)
  • ホタルアルゴリズム(Firefly Algorithm)
  • コウモリアルゴリズム(Bat Algorithm)
  • カッコウ探索(Cucko Search)
  • ハーモニーサーチ(Harmony Search)
  • くじらさんアルゴリズム(The Whale Optimization Algorithm: WOA)
  • 差分進化(Differential Evolution: DE)
  • タブーサーチ(Tabu Search)

実装問題

Getting started

1. pip install

使っているパッケージは以下です。

  • pip install numpy
  • pip install matplotlib
  • pip install joblib
  • pip install pandas
  • pip install optuna

2. download

このレポジトリをダウンロードします。

> git clone https://github.com/pocokhc/metaheuristics.git

3. Run the program

examples にいくつか実行例が入っています。

> cd metaheuristics/examples

# 全問題と全アルゴリズムに対して探索を実行します
> python main.py

# 1次元と2次元を設定できる問題について、各アルゴリズムの探索過程をgif出力します
> python train_plot.py

# 1次元と2次元を設定できる問題について、結果を画像出力します
> python function_plot.py

# TSPを簡単に探索した結果を出力します
> python plot_TSP.py

metaheuristics's People

Contributors

pocokhc avatar

Watchers

 avatar

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.