GithubHelp home page GithubHelp logo

coin-or / obb Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 4.0 2.86 MB

Overlapping Branch and Bound Algorithm

Home Page: http://packages.python.org/oBB

License: GNU Lesser General Public License v3.0

Python 21.27% Shell 0.05% Fortran 0.45% C++ 53.80% C 23.98% SWIG 0.45%
global-optimization branch-and-bound

obb's Introduction

OBB: Overlapping Branch and Bound GNU LGPL v3 License Build Status PyPI Version

oBB is an algorithm for the parallel global optimization of functions with Lipchitz continuous gradient or Hessian.

This is an implementation of the algorithm from our paper: Branching and Bounding Improvements for Global Optimization Algorithms with Lipschitz Continuity Properties C. Cartis, J. M. Fowkes and N. I. M. Gould. Journal of Global Optimization, vol. 61, no. 3, pp. 429โ€“457, 2015.

The latest version contains an optional range reduction strategy that improves performance in many cases but may not always guarantee global optimality. For details please see the Master's thesis: A Branch and Bound Algorithm for the Global Optimization and its Improvements A. Guida. Master's Thesis, Faculty of Engineering, University of Florence, 2015.

Documentation

HTML documentation is available at http://packages.python.org/oBB

Requirements

oBB requires the following software to be installed:

Additionally, the following python packages should be installed (these will be installed automatically if using pip, see Installation using pip):

Optionally, matplotlib 1.1.0 or higher (http://www.matplotlib.org/) may be manually installed for visualising the algorithm in 2D.

Installation using pip

For easy installation, use pip (http://www.pip-installer.org/) as root:

$ [sudo] pip install --pre obb

or alternatively easy_install:

$ [sudo] easy_install obb

If you do not have root privileges or you want to install oBB for your private use, you can use:

$ pip install --pre --user obb

which will install oBB in your home directory.

Note that if an older install of oBB is present on your system you can use:

$ [sudo] pip install --pre --upgrade obb

to upgrade oBB to the latest version.

Manual installation

Alternatively, you can download the source code and unpack as follows:

$ wget https://pypi.io/packages/source/o/oBB/oBB-0.8b.zip
$ unzip oBB-0.8b.zip
$ cd oBB-0.8b

and then build and install manually using:

$ python setup.py build
$ [sudo] python setup.py install

If you do not have root privileges or you want to install oBB for your private use, you can use:

$ python setup.py install --user

instead.

Testing

oBB includes a command line test script to check that the installation was successfull. To run the test simply type the following into your shell:

$ test_obb

This will run oBB using MPI on one processor core for a simple 2D sum of sines problem.

Note that if using the MPICH implementation of MPI you first need to start an mpd daemon in the background:

$ mpd &

but this is not necessary for other MPI implementations, e.g. OpenMPI.

Uninstallation

If oBB was installed using pip you can uninstall as follows:

$ [sudo] pip uninstall obb

If oBB was installed manually you have to remove the installed files by hand (located in your python site-packages directory).

Bugs

Please report any bugs using GitHub's issue tracker.

License

This algorithm is released under the GNU LGPLv3 license.

obb's People

Contributors

alberto0991 avatar jfowkes avatar svigerske avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.