get.result: Result extraction tool for answers from optimx

Description Usage Arguments Details Value

View source: R/get.result.R

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

1
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’.

Details

None

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


optplus documentation built on May 2, 2019, 6:48 p.m.