{"id":18806913,"url":"https://github.com/buma/batalgorithm","last_synced_at":"2025-04-13T19:13:00.032Z","repository":{"id":57414128,"uuid":"42737611","full_name":"buma/BatAlgorithm","owner":"buma","description":null,"archived":false,"fork":false,"pushed_at":"2020-10-19T06:04:04.000Z","size":9,"stargazers_count":39,"open_issues_count":3,"forks_count":16,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T09:52:02.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-18T17:42:34.000Z","updated_at":"2024-11-04T07:34:03.000Z","dependencies_parsed_at":"2022-08-26T20:42:55.168Z","dependency_job_id":null,"html_url":"https://github.com/buma/BatAlgorithm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buma%2FBatAlgorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buma%2FBatAlgorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buma%2FBatAlgorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buma%2FBatAlgorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buma","download_url":"https://codeload.github.com/buma/BatAlgorithm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766745,"owners_count":21158301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T22:49:58.324Z","updated_at":"2025-04-13T19:13:00.009Z","avatar_url":"https://github.com/buma.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bat Algorithm in Python\n\n## Objective\nThe main objective is to create an implementation of bat algorithm in Python programming language.\n\n## Installation\n\n    pip install BatAlgorithm\n\n### Example\nThe 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 within `BatAlgorithm()` constructor. Order of parameters is as\nfollows: `BatAlgorithm(D, NP, N_Gen, A, r, Qmin, Qmax, Lower, Upper, function)` where:\n\n- `D`  denotes dimension of the problem,\n- `NP` denotes population size,\n- `N_Gen`  denotes number of generations (iterations),\n- `A` parameter denotes loudness,\n- `r` parameter denotes pulse rate,\n- `Qmin` parameter denotes frequency minimum,\n- `Qmax` parameter denotes frequency maximum,\n- `Lower` denotes lower bound,\n- `Upper` denotes upper bound and\n- `function` passes objective function.\n\n## CODE EXAMPLE:\n\n```python\nimport random\nfrom BatAlgorithm import *\n\ndef Fun(D, sol):\n    val = 0.0\n    for i in range(D):\n        val = val + sol[i] * sol[i]\n    return val\n\n# For reproducive results\n#random.seed(5)\n\nfor i in range(10):\n    Algorithm = BatAlgorithm(10, 40, 1000, 0.5, 0.5, 0.0, 2.0, -10.0, 10.0, Fun)\n    Algorithm.move_bat()\n```\n\n## Bugs\nBugs and extension should be send via Github.\n\n## Authors\nIztok Fister Jr. and Marko Burjek\n\n## References\n\nYang, X.-S. \"A new metaheuristic bat-inspired algorithm.\" Nature inspired cooperative strategies for optimization (NICSO 2010). Springer\nBerlin Heidelberg, 2010. 65-74.\n\nFister, 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.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuma%2Fbatalgorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuma%2Fbatalgorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuma%2Fbatalgorithm/lists"}