Skip to content
Prev 383184 / 398502 Next

Question about nlminb function

Hello John,

Thank you so much for your valuable response. I think using several new optimization function (e.g., Rvmmin) would be a good option for me. I will dive into those function. Thank you again!

Best,
Hwanggyu

-----Original Message-----
From: J C Nash <profjcnash at gmail.com>
Sent: Friday, April 3, 2020 9:49 AM
To: Ivan Krylov <krylov.r00t at gmail.com>; Lim, Hwanggyu <hlim at gmac.com>
Cc: r-help at r-project.org
Subject: Re: [R] Question about nlminb function

This thread points out the important and often overlooked difference between "convergence" of an algorithm and "termination"
of a program. I've been pushing this button for over 30 years, and I suspect that it will continue to come up from time to time.

Sometimes it is helpful to put termination criteria actually into the user function. Alternatively try a different optimizer. The optimx package wraps several, including a few for bounds constrained optimization.
Note that a new version will go up once revdeps have been checked. Dylan Beijers noted a minor glitch if users want to "maximize".

If the termination criteria are really critical, some of the methods now merged into optimx (Rvmmin, Rcgmin, Rtnmin) are all in R. I won't pretend that diving in and making changes is easy, though I've tried to move the code more and more to maintainability and transparency. If anyone is interested in pursuing that sort of thing, I'll be willing to advise or help as long as the requests aren't too strident.

For information, while all-R programs used to be much slower than those in Fortran or C or C++, users should time their problems rather than just assume a great penalty for running things completely in R. The human time saving is generally more important.

Best, John Nash
On 2020-04-03 5:24 a.m., Ivan Krylov wrote:
The information in this transmission is confidential and intended only for the recipient listed above. If you are not the intended recipient, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. If you are not the intended recipient, you are hereby notified that any disclosure, copying or distribution of this message, or the taking of any action based upon it, is strictly prohibited.