maximType | R Documentation |
Returns the type of optimization as supplied by the optimisation routine.
maximType(x)
x |
object of class 'maxim' or another object which involves numerical optimisation. |
A text message, describing the involved optimisation algorithm
Ott Toomet
maxNR
## maximize two-dimensional exponential hat. True maximum c(2,1):
f <- function(a) exp(-(a[1] - 2)^2 - (a[2] - 1)^2)
m <- maxNR(f, start=c(0,0))
coef(m)
maximType(m)
## Now use BFGS maximisation.
m <- maxBFGS(f, start=c(0,0))
maximType(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.