Benchmarking Part of the 'IOHprofiler'.
IOHprofiler: A Benchmarking and Profiling Tool for Iterative Optimization Heuristics
R-package
This branch of the IOHexperimenter consists of the R-implementation of the experimenter, built using Rcpp. To use this package, either clone this repository and install locally, or use the following commands to use devtools to install the package directely:
If devtools is not yet installed, please first use
install.packages('devtools')
Error messages will be shown in your R console if there is any installation issue. Now, the IOHexperimenter package can be installed and loaded using the following commands:
devtools::install_github('IOHprofiler/IOHexperimenter@R')
library('IOHexperimenter')
This will install the package and all required dependencies.
Getting Started
Install the package using one of the methods mentioned package above.
Create you own algorithm, or use the example algorithm provided in the documentation accessed by:
?benchmark_algorithm
Note that your algorithm will need to accept exactly one parameter: An IOHproblem object, which contains the following information about the current problem:
- dimension
- function_id
- instance
- fopt (if known)
- xopt (if known)
And the following functions:
- obj_func()
- target_hit()
- set_parameters()
Several example algorithms have been implemented in the algorithms.R
file.
Run the benchmarks using the function 'benchmark_algorithm'
Analyze your results using the IOHanalyzer by visiting the IOHAnalyzer page
Using C or Python
To use the IOHexperimenter in C++ or python, please look at the other branches in this repository.