Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

buma/BatAlgorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Objective

The main objective is to create an implementation of bat algorithm in Python programming language.

Installation

pip install BatAlgorithm

Example

The following example presents a simple use of bat algorithm.Fun() denotes the objective function that may be changed by the user. Control parameters should be defined withinBatAlgorithm() constructor. Order of parameters is asfollows:BatAlgorithm(D, NP, N_Gen, A, r, Qmin, Qmax, Lower, Upper, function) where:

  • D denotes dimension of the problem,
  • NP denotes population size,
  • N_Gen denotes number of generations (iterations),
  • A parameter denotes loudness,
  • r parameter denotes pulse rate,
  • Qmin parameter denotes frequency minimum,
  • Qmax parameter denotes frequency maximum,
  • Lower denotes lower bound,
  • Upper denotes upper bound and
  • function passes objective function.

CODE EXAMPLE:

importrandomfromBatAlgorithmimport*defFun(D,sol):val=0.0foriinrange(D):val=val+sol[i]*sol[i]returnval# For reproducive results#random.seed(5)foriinrange(10):Algorithm=BatAlgorithm(10,40,1000,0.5,0.5,0.0,2.0,-10.0,10.0,Fun)Algorithm.move_bat()

Bugs

Bugs and extension should be send via Github.

Authors

Iztok Fister Jr. and Marko Burjek

References

Yang, X.-S. "A new metaheuristic bat-inspired algorithm." Nature inspired cooperative strategies for optimization (NICSO 2010). SpringerBerlin Heidelberg, 2010. 65-74.

Fister, I. Jr., Fister, I., Yang, X.-S., Fong, S., Zhuang, Y. "Bat algorithm: Recent advances." IEEE 15th International Symposium on Computational Intelligence and Informatics (CINTI), IEEE, 2014. 163-167.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp