search for: optfntool

Displaying 3 results from an estimated 3 matches for "optfntool".

Did you mean: optfntools
2012 May 08
1
optim question
Hello, I used optim to find the MLE estimates of some parameters. See the code below. It works for data1(x). but It did not work for data2 and the error says" L-BFGS-B needs finite values of 'fn' ". data2: c(x, 32) that is, if I added the number 32 at the end of data1. The error appears "non-finite function value" etc. Any comments or suggestions? Thanks!
2011 Dec 12
1
Detecting typo in function argument
...r info, optim() seems to stop much more quickly. The error is "obvious", but I'm wondering if there is a simple way to trap or warn of it. For completeness, I include the commands I used to force the error. Note that it will only work fully with the latest (R-forge) version of optimx/optfntools because of the form of gr="gfwd" that allows a choice of different numerical gradient routines. This is a curiosity rather than a necessity, but if there is a simple way to check, I'll put it in my codes. Cheers, JN rm(list=ls()) start<-rep(3,6) lo<-rep(2,6) up<-rep(4,6)...
2011 Nov 17
0
Non-finite finite-difference value" error in eha's, aftreg
...ch error messages, why not capture the parameter vector and check the function computation at those parameters and nearby? Yes, a bit tedious, but rarely have I found it a waste of time. For information, there should be a small function available shortly on R-forge (project optimizer, likely in the optfntools package) to do an axial search around a set of parameters and generate some information about the functional surface. I still have to prepare documentation and examples, but if anxious, contact me off-list. JN > Message: 21 > Date: Wed, 16 Nov 2011 15:06:00 +0100 > From: Milan Bouchet...