PeterSP / gelpia

Rigorous Global Branch-and-Bound Optimizer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Global Extrema Locator Parallelization for Interval Arithmetic

Gelpia algorithm

Gelpia is a cooperative, interval-arithmetic branch-and-bound based algorithm (IBBA). It rigorously finds an upper bound on the global maximum of a multivariate function on a given interval. This means that its answer is guaranteed to be above the global maximum on the interval when evaluated using real arithmetic. Gelpia is a cooperative solver in the sense that we concurrently run fast, approximate algorithms which find local maxima to inform the IBBA of new lower bounds. This causes the IBBA to refocus its attention on more promising regions of the search space. Meanwhile, the IBBA informs the cooperative algorithms of the search space currently being explored to keep them focused on trying to find the global maximum. We have found that this bi-directional communication significantly reduces runtime, allowing us to handle functions with many variables.

Building

Known to build on Ubuntu 14.04 through 18.04.

Currently only Linux is explicitly supported.

  • Requirements:
    • Not included:
      • python3 (Python 3.6 or greater)
        • sly
      • bison
      • flex
      • c++ compiler
      • c compiler
      • wget
    • Included:
      • rust
      • gaol
      • crlibm

For automatic building of the requirements run make requirements For building by hand see documents/BuildingRequirements.md

Once requirements are met, gelpia may be compiled by running make This runs Rust's cargo build system as well as adding the correct files to bin for execution.

Using

Gelpia may then be ran, it is an executable gelpia in the bin directory. It has a built in help system for argument clarification. A query function can be specified either on the command line or via a query file. Syntax for a query file can be found in documents/QueryFormat.md. When ran gelpia outputs an upper and lower bound of the requested extrema.

Testing/Benchmarking

A benchmarking system for Gelpia is located at https://github.com/soarlab/gelpia_tests.git.

Example uses:

> ./bin/gelpia --function "x=[1,10]; y=[5,15]; x^2 + x*y + y*sin(x/10)"
Maximum lower bound 262.6220647721184
Maximum upper bound 262.6220647721185

The default mode is to find the maximum, but this can be changed with the --mode argument.

> ./bin/gelpia --function "x=[1,10]; y=[5,15]; x^2 + x*y + y*sin(x/10)" --mode=min
Minimum lower bound 6.499167083234139
Minimum upper bound 6.499167083234142
> ./bin/gelpia --function "x=[1,10]; y=[5,15]; x^2 + x*y + y*sin(x/10)" --mode=min-max
Minimum lower bound 6.499167083234139
Minimum upper bound 6.499167083234142
Maximum lower bound 262.6220647721184
Maximum upper bound 262.6220647721185

Authors

Gelpia is authored by Mark S. Baranowski and Ian Briggs

About

Rigorous Global Branch-and-Bound Optimizer

License:MIT License


Languages

Language:Python 54.2%Language:Rust 37.2%Language:C++ 6.3%Language:Shell 1.4%Language:Makefile 0.8%