GithubHelp home page GithubHelp logo

fond-compressor's Introduction

FOND Compressor

The FOND Compressor is the compressor of FOND solutions used by the AND* Project.

  • Messa and Pereira, "Policy-Space Search: Equivalences, Improvements, and Compression", submitted to AIJ. (arXiv)

This project version was mainly tested in Linux Mint 21.2.

Note: A newer version of the FOND Compressor might be available in GitHub.


Installing Python Dependencies

pip3 install -r requirements.txt

Usage

./compressor.py

Optional Arguments

  • --separator-token (default " "): Separates the facts and the actions in the input and the output.
  • --null-fact-token (default "-"): Represents the null fact in the output.
  • --goal-token (default "GOAL"): Represents the "goal" states in the input. These states are considered (so that no output mapping captures them), but they are not compressed.
  • --ip-solver-label (default "PULP_CBC_CMD"): Label of the IP solver to be used.

Example Input and Output

Each line has n+1 tokens, with n equal to the number of variables in the SAS+ task.

An empty line denotes the end of the input and the output.

  • Input:
Fact1 Fact2 Fact3 Action1
Fact1 Fact2 not(Fact3) Action1
not(Fact1) not(Fact2) not(Fact3) Action2
not(Fact1) Fact2 Fact3 GOAL

  • Output:
Fact1 - - Action1
- not(Fact2) - Action2


Setting up a Custom IP Solver

Here there is a guide on how to set up a custom IP solver.

fond-compressor's People

Contributors

frederico-messa avatar

Stargazers

Francesco Fuggitti avatar Ramon Fraga Pereira avatar

Watchers

 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.