https://github.com/jakob-r/rsmac
rsmac - use SMAC to optimize functions in R
https://github.com/jakob-r/rsmac
blackbox-optimization optimization r r-package
Last synced: about 1 year ago
JSON representation
rsmac - use SMAC to optimize functions in R
- Host: GitHub
- URL: https://github.com/jakob-r/rsmac
- Owner: jakob-r
- License: mit
- Created: 2017-04-10T06:46:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T10:10:34.000Z (over 7 years ago)
- Last Synced: 2025-03-31T15:25:49.862Z (about 1 year ago)
- Topics: blackbox-optimization, optimization, r, r-package
- Language: R
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rsmac
use smac for r functions
[](https://travis-ci.org/jakob-r/rsmac)
[](https://coveralls.io/github/jakob-r/rsmac?branch=master)
## Installation
```r
devtools::install_github("jakob-r/rsmac")
# if smac is not installed you can run:
rsmac:::installSmac()
```
## Usage
```r
fun = makeSingleObjectiveFunction(
name = "my_sphere",
fn = function(x) {
sum(x*x) + 7
},
par.set = makeParamSet(
makeNumericVectorParam("x", len = 2L, lower = -5, upper = 5)
),
minimize = TRUE
)
scenario = list("use-instances" = "false", runObj = "QUALITY", numberOfRunsLimit = 10)
res = rsmac(fun, scenario = scenario)
```
To see how to set up your scenario check the [smac manual](http://www.cs.ubc.ca/labs/beta/Projects/SMAC/v2.10.03/manual.pdf).
## Notes
* This package is just tested on purely numeric functions so far.
* This package is designed for Unix systems.
* The interaction with smac works completely over the file system.
* Any help is welcome!