param.real: Define a Real Parameter

Description Usage Arguments Value Examples

View source: R/params.R

Description

Define a Real Parameter

Usage

1
param.real(bounds, initial = NULL, ...)

Arguments

bounds

A vector of length 2 describing the upper and lower bounds for the parameter. Some optimisation algorithms can handle values of c(-Inf, Inf), but most cannot.

initial

The initial value (must be within bounds), or NULL. See initial.value

...

Additional arguments to be used in optimisation methods

Value

An object of type 'param.real'

Examples

1
2
3
4
5
# unbounded real parameter (may not work in all optimisation algorithms)
param.real(c(-Inf, Inf))

# bounded real parameter
param.real(c(0, 100))

paleolimbot/easyoptim documentation built on May 24, 2019, 6:12 p.m.