sann2spot | R Documentation |
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.
sann2spot(algpar, par = c(10, 10), fn, maxit = 100, ...)
algpar |
|
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 |
matrix
of results (performance values)
sphere <- function(x){sum(x^2)} algpar <- matrix(c(1:10, 1:10), 10,2) sann2spot(algpar, fn = sphere)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.