Skip to content
chbrownPublic
forked from chokkan/liblbfgs

About

libLBFGS: a library of Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS)

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

libLBFGS

C library of limited-memory BFGS (L-BFGS)

libLBFGS is a C port of the implementation of Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) method written by Jorge Nocedal. The original FORTRAN source code is available here.

The L-BFGS method solves the unconstrained minimization problem:

minimize F(x), x = (x1, x2, ..., xN)

only if the objective function F(x) and its gradient G(x) are computable.

Refer to the libLBFGS web site for more information.

Installation instructions

Get the requisite development environment

  • CentOS / Redhat / Fedora:

      yum groupinstall "Development Tools"
    
  • Ubuntu:

      apt-get install build-essential
    
  • OS X:

    • Get Xcode from the Mac App Store.

    • Get homebrew and install the packages we'll need:

          brew install coreutils shtool
      

Install from source repository:

git clone https://github.com/chbrown/liblbfgs
cd liblbfgs
./configure
make
make install

Or you might need to bump up your permissions:

sudo make install

This will produce the following files (depending on your system's build defaults):

/usr/local/include/lbfgs.h
/usr/local/lib/liblbfgs.a
/usr/local/lib/liblbfgs.la
/usr/local/lib/liblbfgs-1.10.so
/usr/local/lib/liblbfgs.so -> liblbfgs-1.10.so
/usr/local/share/doc/liblbfgs/*

More documentation about the configuration settings can be found in INSTALL.

License

libLBFGS is distributed under the terms of the MIT license.

  • Copyright (c) 1990, Jorge Nocedal
  • Copyright (c) 2007-2010, Naoaki Okazaki

About

libLBFGS: a library of Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages