NLopt, the "free/open-source library for nonlinear optimization, providing a common interface for a number of different free optimization routines..." has a L-BFGS routine but seemingly, no BFGS routine. The closest I can see in the list of algorithms might be the SLSQP routine which does use BFGS. I have two questions:
- Why is there no
BFGSroutine? - Should I just use the
L-BFGSroutine instead?
Some context. I am using R which has a basic optim function that allows you to choose BFGS and L-BFGS as algorithms. However, one situation where it is not possible to use L-BFGS instead of BFGS is when the objective function evaluates to NaN at points of the search space. My problem only involves about ten parameters so memory is not an issue.