foolnotion / lbfgs

Modern C++ port of the Limited-memory BFGS (L-BFGS) optimization algorithm

Home Page:https://github.com/foolnotion/lbfgs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LBFGS

This repository contains a C++20 port of the Limited-memory BFGS implementation from LBFGS-Lite, with a number of usability improvements:

Limitations

  • no step bounds
  • no progress report
  • no cancellation

These will be addressed in the future.

Usage example

The user must define a functor which computes the function and its gradient. Please have a look at https://github.com/foolnotion/lbfgs/blob/main/test/source/lbfgs_test.cpp

About

Modern C++ port of the Limited-memory BFGS (L-BFGS) optimization algorithm

https://github.com/foolnotion/lbfgs


Languages

Language:C++ 62.7%Language:CMake 34.0%Language:Nix 3.3%