Git Product home page Git Product logo

hexlite's Introduction

Build Status codebeat badge

HEXLite Python-based solver for a fragment of HEX

This is a solver for a fragment of the HEX language and for Python-based plugins which is based on Python interfaces of Clingo and WASP and does not contain any C++ code itself.

The intention is to provide a lightweight system for an easy start with HEX.

The vision is that HEXLite can use existing Python plugins and runs based on the Clingo or WASP python interface, without realizing the full power of HEX.

The system is currently under development and only works for certain programs:

  • External atoms with only constant inputs are evaluated during grounding in Gringo
  • External atoms with predicate input(s) and no constant outputs are evaluated during solving in a clasp Propagator
  • External atoms with predicate input(s) and constant outputs that have a domain predicate can also be evaluated
  • Liberal Safety is not implemented
  • Properties of external atoms are not used
  • If it has a finite grounding, it will terminate, otherwise, it will not - as usual with Gringo
  • FLP Check is implemented explicitly and does not work with strong negation and weak constraints
  • FLP Check can be deactivated

A manuscript about the system is under preparation.

In case of bugs please report an issue here: https://github.com/hexhex/hexlite/issues

  • License: GPL (3.0)
  • Author: Peter Schüller [email protected]
  • Available at PyPi: https://pypi.python.org/pypi/hexlite
  • Installation:
    • If you do not have it: install python-pip: for example under Ubuntu via

      $ sudo apt-get install python-pip

    • Install hexlite:

      $ pip install hexlite --user

    • Setup Python to use the "Userinstall" environment that allows you to install Python programs without overwriting system packages:

      Add the following to your .profile or .bashrc file:

      export PYTHONUSERBASE=/.local/ export PATH=$PATH:/.local/bin

    • Run hexlite the first time. This will help to download and build pyclingo unless it is already usable via import clingo:

      $ hexlite

      The first run of hexlite might ask you to enter the sudo password to install several packages. (You can do this manually. Simply abort and later run hexlite again.)

    • Ubuntu 16.04 is tested

    • Debian 8.6 (jessie) is tested

    • Ubuntu 14.04 can not work without manual installation of cmake 3.1 or higher (for buildling clingo)

hexlite's People

Contributors

peschue avatar tobiaskaminski avatar bilaldinc avatar

Watchers

James Cloos 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.