Description Usage Arguments Details Value Note Author(s) References See Also Examples
Optimization using Wolf conditions.
1 2 3 | optim.WF(objfnc, data, start = getInitial(objfnc, data),
control = nlr.control(tolerance = 0.001, minlanda = 1/2^10,
maxiter = 25 * length(start)), ...)
|
objfnc |
any objective function for minimizing, it must contains accept formula, data and start as argument, extra argument can be passed by (...). The output of objfnc must be a list contains: $value(attr,gradient,hessian), $angmat (angular matrix),$angvec (angular vector) to check convergence. Usually it might have |
data |
list of the data, that might have predictor and response variables with names. |
start |
list of initial values with names as parameters. |
control |
nlr.control options to control the optimization iterations. |
... |
any external parameters passe to |
Optimize objective function objfnc
with respect to parameters start
. The mothod is gradient base using Wolf condition for rectifying the negative definit hessian problems.
The following function are called from optim.WF
.
CubInrep
: Cubic interpolation,
result is a list of:
parameters |
list of estimated parameters wit hsame names as |
objfnc |
computed object function returned back by |
history |
history of fitt, include parameters and objective values, other level of iteration is presented for which in each iteration some more steps is done to rectify the singularity of hessian. |
User can define his own optimization function objfnc
for any purpose, but this function designed eficiently for robust estimates. It is applied for minimizing several kind of objective functions such as heteroscedastic chi-square likelihood, robust loss, but for other general problem usage is not tested.
Together with optim.NLM
are used in nlr
package to acheive optimization result in failure of one another method.
This function call by nlr
, for compatibility it is better to call from nlr
rather than directly by user. User can use it for optimization purposes.
Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/
Nocedal J and Wright SJ 2006 Numerical optimization.. New York, NY.
1 2 3 4 5 6 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
"optim.WF"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.