These functions support the S3 class 'optimbase' and related S3 classes 'optimbase.outputargs' and 'optimbase.functionargs'. They are intended to either create objects of these classes, check if an object is of these classes, or coerce it to one of these classes.
optimbase(verbose, x0, fx0, xopt, fopt, tolfunabsolute,
tolfunrelative, tolfunmethod, tolxabsolute, tolxrelative, tolxmethod,
maxfunevals, funevals, maxiter, iterations, fun, status, historyxopt,
historyfopt, verbosetermination, outputcommand, outputcommandarg,
numberofvariables, storehistory, costfargument, boundsmin, boundsmax,
nbineqconst, logfile, logfilehandle, logstartup, withderivatives)
optimbase.outputargs(...)
optimbase.functionargs(...)
# S3 method for optimbase
print(x,verbose=FALSE,...)
# S3 method for optimbase
is(x=NULL)
# S3 method for optimbase
summary(object,showhistory,...)
# S3 method for optimbase.outputargs
is(x=NULL)
# S3 method for optimbase.outputargs
as(x=NULL)
# S3 method for optimbase.functionargs
is(x=NULL)
# S3 method for optimbase.functionargs
as(x=NULL)
The verbose option, controlling the amount of messages.
The initial guess.
The value of the function for the initial guess.
The optimum parameter.
The optimum function value.
The absolute tolerance on function value.
The relative tolerance on function value.
Logical flag for the tolerance on function value in the termination criteria. This criteria is suitable for functions which minimum is associated with a function value equal to 0.
The absolute tolerance on x..
The relative tolerance on x.
Possible values: FALSE, TRUE.
The maximum number of function evaluations.
The number of function evaluations.
The maximum number of iterations.
The number of iterations.
The cost function.
The status of the optimization.
The list to store the history for xopt. The vectors of
estimates will be stored on separated levels of the list, so the length of
historyfopt
at the end of the optimization should be the number of
iterations.
The vector to store the history for fopt. The values of
the cost function will be stored at each iteration in a new element, so
the length of historyfopt
at the end of the optimization should be
the number of iterations.
The verbose option for termination criteria.
The command called back for output. This must be a valid R function accepting the following arguments:
A character string, typically indicating the status of the algorithm.
A list containing at least the following elements:
the current point estimate,
the value of the cost function at the current point estimate,
the current iteration index,
the number of function evaluations.
An optional object of class 'optimbase.outputargs'.
The outputcommand argument is initialized as an empty object of class 'optimbase.outputargs' passed to the command defined in the outputcommand element of the optimbase object. This object has no required structure or content but is typically a list which may be used to provide some extra information to the output command.
The number of variables to optimize.
The flag which enables/disables the storing of the history.
The costf argument is initialized as an empty object of class 'optimbase.functionargs'. This object has no required structure or content but is typically a list which may be used to provide some information to the cost function'.
Minimum bounds for the parameters.
Maximum bounds for the parameters.
The number of nonlinear inequality constraints.
The name of the log file.
The handle for the log file.
Set to TRUE when the logging is started up.
Set to TRUE when the method uses derivatives.
optional arguments to 'print' or 'plot' methods.
An object of class 'optimbase'.
An object of class 'optimbase'.
Optional logical flag, to define whether optimization history must be summarized or not.
The optimbase
function returns a new object of class 'optimbase', i.e.
a list containing the following elements:
Default is FALSE.
Default is NULL.
Default is NULL.
Default is 0.
Default is 0.
Default is 0.
Default is .Machine$double.eps.
Default is FALSE.
Default is 0.
Default is .Machine$double.eps.
Default is TRUE.
Default is 100.
Default is 0.
Default is 100.
Default is 0.
Default is ''.
Default is ''.
Default is NULL.
Default is NULL.
Default is FALSE.
Default is ''.
Default is ''. If the user configures this element, it is expected to be an object of class 'optimbase.outputargs' or will be coerced to an object of class 'optimbase.outputargs'.
Default is 0.
Default is FALSE.
Default is ''. If the user configures this element, it is expected to be an object of class 'optimbase.functionargs' or will be coerced to an object of class 'optimbase.functionargs'.
Default is NULL.
Default is NULL.
Default is 0.
Default is ''.
Default is 0.
Default is FALSE.
Default is FALSE.
The print.optimbase
and is.optimbase
functions are S3 method for
objects of class 'optimbase'. The showhistory
argument can be provided
to the print.optimbase
function to indicate whether or not the history
of optimization should be printed.
The optimbase.outputargs
function returns a new object of class
'optimbase.outputargs', i.e. a list of all arguments provided by the user. The
is.optimbase.outputargs
functions are S3 method for objects of class
'optimbase.outputargs'.
The optimbase.functionargs
function returns a new object of class
'optimbase.functionargs', i.e. a list of all arguments provided by the user.
The is.optimbase.functionargs
functions are S3 method for objects of
class 'optimbase.functionargs'.