Giter Club home page Giter Club logo

utvpi-oa's Introduction

Implements algorithms to compute tight UTVPI overapproximations of polyhedra.

The algorithms provided are:

  • Based on linear programming - LP0
  • Based on Fourier-Motzkin elimination - FM1, FM2

Two implementations of LP0 have been provided, one using CPLEX and the other using PIPLib. This code also includes a C++ API (in include/utvpi_oa_fm.h) with functionality for performing Fourier-Motzkin elimination (similar to FMLib) and using it to compute UTVPI overapproximations, and this has been used to implement FM1 and FM2.

Details of the algorithms can be found in the paper:

A. A. Patwardhan, P. Kumar, S. Rao, A. Miné and R. Upadrasta. On Tightest Octagonal Over-Approximations of Polyhedra.

Setup

Prerequisites

  • CMake v3.12+
  • Compiler for C and C++
  • IBM CPLEX (for CPLEX version of LP0)
  • PIPLib (for PIPLib version of LP0)

Install cplex at $HOME/ibm/ILOG/CPLEX_Studio128.

Installation

To install FM1, FM2, and the CPLEX version of LP0, use:

$ mkdir build && cd build
$ cmake ..
$ make

To install the PIPLib version of LP0, use:

$ cd lp-pip
$ mkdir build && cd build
$ cmake ..
$ make

The path of the PIPLib installation can be passed to CMake using the PIPLIB_PATH variable.

Data

The input polyhedron must be provided in the PolyLib/FMLib format. Example input files have been provided under the examples/ directory. A python script, converter.py, has also been provided to convert polyhedra in the H-representation in the cddlib format to the FMLib format.

Running the program

The program accepts a polyhedron as input from the standard input and sends its UTVPI overapproximation as output to the standard output.

The executable (named utvpi-oa for FM1/FM2/CPLEX LP0 and lp-pip for PIPLib LP0) can be found after make in the build directory.

License

This code is provided under the BSD 3-Clause License.

Acknowledgements

The implementation of the Fourier-Motzkin elimination functionality is inspired by FMLib.

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.