parameter.search: Parameter Search

View source: R/optimization.R

parameter.searchR Documentation

Parameter Search

Description

Implements a recursive grid search routine to solve optimization problems in arbitrary dimensions.

Usage

parameter.search(
  n,
  cost,
  grid = NULL,
  bounds,
  splits = 10,
  progression = NULL,
  verbose = T,
  ...
)

Arguments

n

Number of recursions to perform

cost

The cost function which must return a numeric value and accept parameter values as the first arguments and in the order they are provided.

bounds

A dataframe containing the minimum and maximum values permitted of each parameter

splits

The number of subdivisions to perform for each dimension (so grid size is n x splits ^ dimensionality)

progression

The size of the new search-space to interrogate. A value between 1 and splits/2. Default value (NULL) will yeield a progression of max(1, splits/4), good for most problems.

...

Optional argument that is passed directly onto the cost function

Author(s)

Thomas Bryce Kelly


tbrycekelly/TheSource documentation built on Nov. 7, 2023, 12:48 a.m.