Skip to content
Prev 70557 / 398525 Next

nlminb to optmin

Stefan Pohl wrote:
What is "optmin"? Do you mean "optim"?

Either way, you can always try your function at the initial values 
outside of optim. If it returns Inf, you have a problem with your 
objective function. Have you considered that your objective function in 
S-PLUS didn't port the way you expected to R? I.e. if you call your 
objective function in S-PLUS and then in R, using the same inputs, do 
you get identical outputs?

--sundar