Usage
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(...) "print"(x,verbose=FALSE,...) "is"(x=NULL) "summary"(object,showhistory,...) "is"(x=NULL) "as"(x=NULL) "is"(x=NULL) "as"(x=NULL)
Arguments
verbose
The verbose option, controlling the amount of messages.
fx0
The value of the function for the initial guess.
xopt
The optimum parameter.
fopt
The optimum function value.
tolfunabsolute
The absolute tolerance on function value.
tolfunrelative
The relative tolerance on function value.
tolfunmethod
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.
tolxabsolute
The absolute tolerance on x..
tolxrelative
The relative tolerance on x.
tolxmethod
Possible values: FALSE, TRUE.
maxfunevals
The maximum number of function evaluations.
funevals
The number of function evaluations.
maxiter
The maximum number of iterations.
iterations
The number of iterations.
status
The status of the optimization.
historyxopt
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.
historyfopt
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.
verbosetermination
The verbose option for termination criteria.
outputcommand
The command called back for output. This must be a
valid R function accepting the following arguments:
- state
- A character string, typically indicating the status of the
algorithm.
- data
- A list containing at least the following elements:
- x
- the current point estimate,
- fval
- the value of the cost function at the current point
estimate,
- iteration
- the current iteration index,
- funccount
- the number of function evaluations.
fmsdataAn optional object of class 'optimbase.outputargs'.
outputcommandarg
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.
numberofvariables
The number of variables to optimize.
storehistory
The flag which enables/disables the storing of the
history.
costfargument
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'.
boundsmin
Minimum bounds for the parameters.
boundsmax
Maximum bounds for the parameters.
nbineqconst
The number of nonlinear inequality constraints.
logfile
The name of the log file.
logfilehandle
The handle for the log file.
logstartup
Set to TRUE when the logging is started up.
withderivatives
Set to TRUE when the method uses derivatives.
...
optional arguments to 'print' or 'plot' methods.
x
An object of class 'optimbase'.
object
An object of class 'optimbase'.
showhistory
Optional logical flag, to define whether optimization
history must be summarized or not.