Learn R Programming

SPOT (version 2.11.10)

sann2spot: Interface SANN to SPOT

Description

Provide an interface for tuning SANN. The interface function receives a matrix where each row is proposed parameter setting (`temp`, `tmax`), and each column specifies the parameters. It generates a $(n,1)$-matrix as output, where $n$ is the number of (`temp`, `tmax`) parameter settings.

Usage

sann2spot(algpar, par = c(10, 10), fn, maxit = 100, ...)

Arguments

algpar

matrix algorithm parameters.

par

Initial values for the parameters to be optimized over.

fn

A function to be minimized (or maximized), with first argument the vector of parameters over which minimization is to take place. It should return a scalar result.

maxit

Total number of function evaluations: there is no other stopping criterion. Defaults to 10000.

...

further arguments for optim

Value

matrix of results (performance values)

Examples

Run this code
# NOT RUN {
sphere <- function(x){sum(x^2)}
algpar <- matrix(c(1:10, 1:10), 10,2)
sann2spot(algpar, fn = sphere)

# }

Run the code above in your browser using DataLab