Learn R Programming

optimx (version 0.84)

get.result: Result extraction tool for answers from optimx

Description

The optimx general-purpose optimization wrapper function that calls other R tools for optimization, including the existing optim() function creates a data frame of results. get.results extracts elements from this data frame.

Usage

get.result(optimx.obj, method, attribute)

Arguments

optimx.obj
object returned by `optimx'
method
Name of the method for which all results are desired (e.g. `spg')
attribute
type of result desired for all methods (e.g. `fvalues'). There is partial matching on inputs, so `fval' will recover `fvalues'.

Value

  • get.result returns the items requested or a warning string. If both method and attribute are provided, the function returns a warning message as a character string

encoding

UTF-8

concept

  • minimization
  • maximization

Details

None