This functions configures the current optimization object with the given
value
for the given key
.
optimbase.set(this = NULL, key = NULL, value = NULL)
optimbase.histset(this = NULL, iter = NULL, key = NULL, value = NULL)
The current optimization object.
The key to configure. See details for the list of possible keys.
The value to assign to the key.
The iteration at which the data must be stored.
An updated optimization object.
optimbase.set
set the content of the key
element of the
optimization object this
to value
.
The only available keys in optimbase.set
are the following:
Set to 1 to enable verbose logging.
The initial guesses, as a n x 1 column vector, where n is the number of variables.
The value of the cost function at the initial point estimate.
The optimum point estimate.
The value of the cost function at the optimum point estimate.
The absolute tolerance for the function value.
The relative tolerance for the function value.
The method used for the tolerance on function value in the termination criteria. The following values are available: TRUE, FALSE. If this criteria is triggered, the status of the optimization is set to 'tolf'.
The absolute tolerance on x.
The relative tolerance on x.
The method used for the tolerance on x in the termination criteria. The following values are available: TRUE, FALSE. If this criteria is triggered during optimization, the status of the optimization is set to 'tolx'.
The maximum number of function evaluations. If this
criteria is triggered during optimization, the status of the optimization
is set to 'maxfuneval' (see
vignette('optimbase',package='optimbase')
for more details).
The number of function evaluations.
The maximum number of iterations. If this criteria is
triggered during optimization, the status of the optimization is set to
'maxiter' (see vignette('optimbase',package='optimbase')
for more details).
The number of iterations.
The objective function, which computes the value of the
cost function and the non linear constraints, if any. See
vignette('optimbase',package='optimbase')
for the details of
the communication between the optimization system and the cost function.
A string containing the status of the optimization.
A list, with nbiter element, containing the history
of x during the iterations. This list is available after optimization if
the history storing was enabled with the storehistory
element.
An vector, with nbiter values, containing the history
of the function value during the iterations. This vector is available
after optimization if the history storing was enabled with the
storehistory
element.
Set to 1 to enable verbose termination logging.
A command which is called back for output. Details
of the communication between the optimization system and the output
command function are provided in
vignette('optimbase',package='optimbase')
.
An additionnal argument, passed to the output command.
The number of variables to optimize.
Set to TRUE to enable the history storing.
An additionnal argument, passed to the cost function.
The minimum bounds for the parameters.
The maximum bounds for the parameters.
The number of inequality constraints.
The name of the log file.
Set to 1 if logging has been started
Set to 1 if logging has been started
Set to TRUE if the algorithm uses derivatives.
The only available keys in optimbase.histset
are 'historyxopt' and
'historyfopt'. Contrary to optimbase.set
, this function only alters
the value of historyxopt
and historyfopt
at the specific
iteration iter
.