Coder Social home page Coder Social logo

matthiasnickles / diff-sat Goto Github PK

View Code? Open in Web Editor NEW
63.0 4.0 4.0 2.32 MB

Probabilistic Answer Set Programming and Probabilistic SAT solving, based on Differentiable Satisfiability

License: MIT License

Scala 97.37% Java 2.63%
satisfiability answer-set-programming optimization probabilistic-programming artificial-intelligence sat-solver logic-programming psat constraint-programming differentiable-satisfiability

diff-sat's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

diff-sat's Issues

Invalid input data running an ASPIF input

Dear Matthias,
I have been trying to run the diff-SAT for the probabilistic part of it (PrASP), but can't get the system to accept the aspif file. It is probably something I am doing wrong myself. I have been trying so far using your examples in the readme.

I have tested the 0.5.0 and 0.5.2 releases, getting the same behavior.

Steps to reproduce the behavior:

  1. Create file test.lp and copy paste in it the code in example (1).
  2. Run "clingo test.lp --trans-ext=all --pre=aspif > test.aspif"
  3. Run "java -jar diffSAT.jar test.aspif -n 100 --solverarg diversify true --solverarg suppressAnswers true --solverarg showProbsOfSymbols true"
  4. Stdout: "diff-SAT 0.5.2

Error [-100]: Invalid input data:"

Desktop:

  • OS: tested on Windows and Linux

Best Wishes
David


Here I am copy-pasting the content of test.aspif:
asp 1 0 0
1 0 1 1 0 0
1 0 1 2 0 0
1 0 1 3 0 0
1 0 1 4 0 0
1 0 1 8 0 0
1 0 1 9 0 0
1 0 0 0 1 -11
1 0 1 13 0 1 11
1 0 0 0 1 -15
1 0 1 17 0 1 15
1 0 1 5 0 2 6 7
1 0 0 0 2 10 7
1 0 0 0 2 14 6
1 0 1 10 0 1 -18
1 0 1 11 0 1 -18
1 0 1 18 0 1 -10
1 0 1 7 0 1 -19
1 0 1 11 0 1 -19
1 0 1 19 0 1 -7
1 0 1 14 0 1 -20
1 0 1 15 0 1 -20
1 0 1 20 0 1 -14
1 0 1 6 0 1 -21
1 0 1 15 0 1 -21
1 0 1 21 0 1 -6
4 7 coin(1) 0
4 7 coin(2) 0
4 19 pr(heads(1),5000) 0
4 19 pr(heads(2),5000) 0
4 3 win 1 5
4 8 heads(2) 1 6
4 8 heads(1) 1 7
4 8 tails(1) 1 10
4 8 tails(2) 1 14
0

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.