Giter Club home page Giter Club logo

docker-bumblebee's Introduction

Docker Hub Docker Hub

BumbleBEE on Docker

BEE (Ben-Gurion University Equi-propagation Encoder) is a compiler which enables to encode finite domain constraint problems to CNF.

BumbleBEE is a constraint solver which enables to read BEE model from input file, compile it to CNF using BEE, solve the generated CNF using SAT-solver with Prolog interface and output the assignment for the declared variables in the BEE model.

For any further details visit BEE home page, this repository only contains Dockerfile for BumbleBEE solver.

Usage

Build or pull

docker build -t bumblebee .
## OR
docker pull lipen/bumblebee

Run

docker run --rm -v $PWD:/input lipen/bumblebee example.bee

Example input/output

## <<example.bee>>                <<BumbleBEE output>>
new_bool(a)                       %  \'''/ //      BumbleBEE       / \_/ \_/ \
new_int(x, -5, 5)                 % -(|||)(')     (15/06/2017)     \_/ \_/ \_/
new_int(y, -10, 0)                %   ^^^        by Amit Metodi    / \_/ \_/ \
new_int(z, 1, 10)                 %
new_int(i1, -25, 25)              %  reading BEE file ... done
int_times(x, x, i1)               %  load pl-satSolver ... OK
new_int(i2, 0, 100)               %  encoding BEE model ... done
int_times(y, y, i2)               %  solving CNF (satisfy) ...
new_int(i3, -25, 125)             a = false
int_plus(i1, i2, i3)              x = 0
new_int(i4, -24, 135)             y = 0
int_plus(i3, z, i4)               z = 7
int_lt(i4, 50)                    i1 = 0
new_int(i5, -5, 15)               i2 = 0
int_plus(x, -y, i5)               i3 = 0
new_int(i6, -15, 14)              i4 = 7
int_plus(i5, -z, i6)              i5 = 0
int_eq_reif(i6, -5, b7)           i6 = -7
bool_eq(a, b7)                    ----------
solve satisfy                     ==========

docker-bumblebee's People

Contributors

lipen avatar

Watchers

 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.