forked from gvegayon/ABCoptim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
51 lines (35 loc) · 1.94 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
output: github_document
---
[](http://cran.rstudio.com/web/packages/ABCoptim/index.html)
[](http://cran.rstudio.com/web/packages/ABCoptim/index.html)
[](https://ci.appveyor.com/project/gvegayon/ABCoptim)
[](https://travis-ci.org/gvegayon/ABCoptim)
[](https://codecov.io/github/gvegayon/ABCoptim?branch=master)
# ABCoptim: An implementation of the Artificial Bee Colony (ABC) Algorithm (R-package)
This is an implementation of Karaboga (2005) ABC optimization algorithm. It was developed upon the basic version programmed in *C* and distributed at the algorithm's official website (see the references).
Any evident (precision) error should be blamed to the package author (not to the algorithm itself).
# Example
```{r example1}
library(ABCoptim)
# Function to optimize. Min at (pi,pi)
fun <- function(x) {
-cos(x[1])*cos(x[2])*exp(-((x[1] - pi)^2 + (x[2] - pi)^2))
}
# Since it is stochastic, we need to set a seed to get the same
# results.
set.seed(123)
# Finding the minimum
ans <- abc_optim(rep(10,2), fun, lb=-20, ub=20, criter=200)
ans
plot(ans)
```
Authors
=======
George G. Vega Yon [aut]
Enyelbert Muñoz [cnt]
References
==========
D. Karaboga, _An Idea based on Honey Bee Swarm for Numerical Optimization_, tech. report TR06,Erciyes University, Engineering Faculty, Computer Engineering Department, 2005 http://mf.erciyes.edu.tr/abc/pub/tr06_2005.pdf
Artificial Bee Colony (ABC) Algorithm (website) http://mf.erciyes.edu.tr/abc/index.htm
Basic version of the algorithm implemented in 'C' (ABC's official website) http://mf.erciyes.edu.tr/abc/form.aspx