sann2spot: Interface SANN to SPOT

View source: R/spotTools.R

sann2spotR Documentation

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

sphere <- function(x){sum(x^2)}
algpar <- matrix(c(1:10, 1:10), 10,2)
sann2spot(algpar, fn = sphere)


SPOT documentation built on June 26, 2022, 1:06 a.m.