Giter Club home page Giter Club logo

lbfgs-lite's Introduction

LBFGS-Lite

A header-only LBFGS unconstrained optimizer.

0. About

LBFGS-Lite is a C/C++ header-only library for unconstrained optimization on twice continuously differentiable functions. This code is a modified version of liblbfgs, so that only necessary part is preserved for simplicity.

1. Features

  • Only one header file "lbfgs.hpp" is required for usage.

  • No dependencies except C/C++ standard library.

  • The library is an implementation of Limited-Memory Broyden-Fletcher-Goldfarb-Shanno (LBFGS) with More-Thuente Line Search to ensure linear time/space complexity and strong Wolfe conditions in each iteration.

  • The objective function is required to be twice continuously differentiable on its domain.

  • The library provides an additional callback to utilize externally provided maximum feasible stepsize. It can be helpful when the function is closed on a bounded open domain instead of the whole Euclidean space. The callback avoids function evaluations at infeasible region. This can help a lot for closed functions as long as the Newton step is not always clipped.

  • Engineering features such as skipping update at extremely small curvature are also adopted.

  • Instruction set dependent parts and L1 regularization parts in original code are removed. Multiple files are reorgainzed here with some additional modification.

2. How to use

See "lbfgs_sample.cpp" for details.

3. Planned features

  • LBFGS is only proved to be globally convergent (convergent to stationaries for any initial guess) under convexity assumption, while it also works in many nonconvex cases and yields almost the best results. Slight modification in updating can ensure global convergence without convexity assumption, following a work by Fukushima and Li.

  • Although More-Thuente line search is already good enough, we plan to compare it with Hager-Zhang line search and Nocedal's zoom line search. Hager-Zhang linear search is reported to be full machine accuracy while More-Thuente's method can only attain the half. Nocedal's zoom is also reported to be reliable. We will compare them and choose the best one if the improvement is good enough.

  • Further code optimization (instruction set independent) and reorganization.

6. Licence

LBFGS-Lite is distributed under the term of the MIT license according the previous version by Okazaki and the initial FORTRAN version by Nocedal. Please refer to LICENSE file in the distribution.

7. Maintaince

If any bug, please contact Zhepei Wang ([email protected]).

lbfgs-lite's People

Contributors

zhepeiwang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.