Get the value for the given element in an optimization object.
optimbase.get(this = NULL, key = NULL)
optimbase.histget(this = NULL, iter = NULL, key = NULL)
An optimization object.
The name of the key to quiery. The list of available keys for
query with optimbase.get
is: 'verbose', 'x0', 'fx0', 'xopt', 'fopt',
'tolfunabsolute', 'tolfunrelative', 'tolfunmethod', 'tolxabsolute',
'tolxrelative', 'tolxmethod', 'maxfunevals', 'maxiter', 'iterations',
'function', 'status', 'historyfopt', 'historyxopt', 'verbosetermination',
'outputcommand', 'outputcommandarg', 'numberofvariables', 'storehistory',
'costfargument', 'boundsmin', 'boundsmax', 'nbineqconst', 'logfile',
'logfilehandle', 'logstartup', and'withderivatives'.
The list of available keys for query with optimbase.histget
is:
'historyxopt' and 'historyfopt'.
The iteration at which the data is stored.
Return the value of the list element key
, or an error message if
key
does not exist.
While optimbase.get
extracts the entire content of the object element,
including historyxopt
and historyfopt
, optimbase.histget
only extracts the content of the history at the iteration iter
.