sann_random: A simulated annealing variant that re-evaluates the reference...

Description Usage Arguments Value Examples

View source: R/sann_stochastic.R

Description

A simulated annealing variant that re-evaluates the reference point at each comparison

Usage

1
sann_random(fn, par, control = list())

Arguments

fn

function to minimize

par

initial parameters

control

analogous to optim

Value

optimized value, found at minimum of all evaluated solutions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
fn<-function(x){
    abs(x) + rnorm(n=1,mean=0,sd=.3) 
}
par = 2
control <- list()
control$parscale <- 2
control$maxit <- 3000
control$temp<-10
sann_random(fn, par, control)

## End(Not run)

aaronjfisher/designOptim documentation built on May 21, 2019, 8:35 a.m.