Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,116 additions
and
870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
src/ | ||
\.pdf$ | ||
\.Rproj.* | ||
\.Rhist.* | ||
R/abc\.R | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
README\.md | ||
README\.Rmd | ||
^playground$ | ||
LICENSE | ||
\.git/ | ||
source/ | ||
.*\.sh | ||
^appveyor\.yml$ | ||
^\.travis\.yml$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r | ||
|
||
language: R | ||
sudo: false | ||
cache: packages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
2016-11-03 George G. Vega Yon (g.vegayon@gmail.com) | ||
* R/*.R: Adding roxygen to the project. | ||
* src/abc.cpp: Adding pure C++ version of the function | ||
* playground/*: Cleaning up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
Package: ABCoptim | ||
Type: Package | ||
Title: Implementation of Artificial Bee Colony (ABC) Optimization | ||
Version: 0.13.11 | ||
Date: 2013-11-05 | ||
Author: George Vega Yon <g.vegayon@gmail.com> [aut], Enyelbert Muñoz <enyeldoc2011@gmail.com> [ctb] | ||
Maintainer: George Vega Yon <g.vegayon@gmail.com> | ||
Description: An implementation of Karaboga (2005) Artificial Bee Colony Optimization algorithm. This (working) version is a Work-in-progress, which is why it has been implemented using pure R code. This was developed upon the basic version programmed in C and distributed at the algorithm's official website. | ||
Version: 0.2.9000 | ||
Date: 2016-11-03 | ||
Authors@R: c( | ||
person("George", "Vega Yon", email="g.vegayon@gmail.com", role=c("aut", "cre")), | ||
person("Enyelbert", "Muñoz", email="enyeldoc2011@gmail.com", role=c("ctb"))) | ||
Description: An implementation of Karaboga (2005) Artificial Bee Colony | ||
Optimization algorithm. This (working) version is a Work-in-progress, which is | ||
why it has been implemented using pure R code. This was developed upon the basic | ||
version programmed in C and distributed at the algorithm's official website. | ||
Classification/ACM: G.1.6 | ||
Classification/JEL: C61 | ||
Encoding: UTF-8 | ||
URL: http://github.com/gvegayon/ABCoptim, http://mf.erciyes.edu.tr/abc/ | ||
License: GPL (>= 3) | ||
LazyLoad: yes | ||
LinkingTo: Rcpp | ||
Imports: | ||
Rcpp | ||
RoxygenNote: 5.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
export(abc_optim) | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(abc_cpp) | ||
export(abc_optim) | ||
importFrom(Rcpp,sourceCpp) | ||
importFrom(stats,runif) | ||
useDynLib(ABCoptim) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
|
||
#' An implementation of the Artificial Bee Colony (ABC) Algorithm | ||
#' | ||
#' This is an implementation of Karaboga (2005) ABC optimization algorithm. It | ||
#' was developed upon the basic version programmed in \code{C} and distributed | ||
#' at the algorithm's official website (see the references). | ||
#' | ||
#' Please consider that this version is in alpha state of development, thus any | ||
#' evident (precision) error should be blaimed to the package author (not to | ||
#' the algorithm itself) | ||
#' | ||
#' Please visit the project home for more information: | ||
#' \url{https://github.com/gvegayon/ABCoptim}. | ||
#' | ||
#' \tabular{ll}{ Package: \tab ABCoptim\cr Type: \tab Package\cr Version: \tab | ||
#' 0.2.9000\cr Date: \tab 2016-11-03\cr License: \tab GPL version 2 or later\cr | ||
#' } | ||
#' | ||
#' @name ABCoptim-package | ||
#' @aliases ABCoptim-package ABCoptim abc | ||
#' @docType package | ||
#' @author George Vega Yon \email{g.vegayon@@gmail.com} [aut], | ||
#' | ||
#' Enyelbert Muñoz \email{enyeldoc2011@@gmail.com} [cnt) | ||
#' @references D. Karaboga, \emph{An Idea based on Honey Bee Swarm for | ||
#' Numerical Optimization}, tech. report TR06,Erciyes University, Engineering | ||
#' Faculty, Computer Engineering Department, 2005 | ||
#' \url{http://mf.erciyes.edu.tr/abc/pub/tr06_2005.pdf} | ||
#' | ||
#' Artificial Bee Colony (ABC) Algorithm (website) | ||
#' \url{http://mf.erciyes.edu.tr/abc/index.htm} | ||
#' | ||
#' Basic version of the algorithm implemented in \code{C} (ABC's official | ||
#' website) \url{http://mf.erciyes.edu.tr/abc/form.aspx} | ||
#' @keywords package | ||
#' @examples | ||
#' | ||
#' \dontrun{ | ||
#' demo(ABCoptim) # Some functions... | ||
#' } | ||
#' | ||
NULL | ||
|
||
#' @useDynLib ABCoptim | ||
#' @importFrom Rcpp sourceCpp | ||
#' @importFrom stats runif | ||
NULL | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Generated by using Rcpp::compileAttributes() -> do not edit by hand | ||
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 | ||
|
||
#' @rdname abc_optim | ||
#' @export | ||
abc_cpp <- function(par, fn, ub = 1e20, lb = -1e20, FoodNumber = 20L, limit = 100L, maxCycle = 1000L, criter = 50L) { | ||
.Call('ABCoptim_abc_cpp', PACKAGE = 'ABCoptim', par, fn, ub, lb, FoodNumber, limit, maxCycle, criter) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.