Learn R Programming

optimbase (version 1.0-10)

optimbase.outstruct: Create Basic Optimization Data Object

Description

This function creates a basic optimization data object by extracting the content of specific fields of an optimization object.

Usage

optimbase.outstruct(this = NULL)

Arguments

this

An optimization object.

Value

Return an object of class 'optimbase.data', i.e. a list with the following elements:

x

The current optimum point estimate (extracted from this$xopt).

fval

The value of the cost function at the current optimum point estimate (extracted from this$fopt).

iteration

The current number of iteration (extracted from this$iterations).

funccount

The current number of function evaluations (extracted from this$funevals).