GithubHelp home page GithubHelp logo

liuchangda / graphqsat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvidia/graphqsat

0.0 0.0 0.0 1.03 MB

Using GNN and DQN to find a baetter branching heuristic for a CDCL Solver

License: Other

Dockerfile 0.32% Python 13.25% Shell 0.70% CMake 5.62% Makefile 11.48% C++ 64.42% SWIG 0.38% C 3.85%

graphqsat's Introduction

GQSAT

Can Q-learning with Graph Networks learn a Generalizable Branching Heuristic for a SAT solver?

How to add metadata for evaluation

python3 add_metadata.py --eval-problems-paths <path_to_folder_with_cnf>

How to train

./train.sh

How to evaluate

  • add the path to the model to the script first
  • choose the evaluation dataset
  • ./evaluate.sh

How to build a solver (you need this only if you changed the c++ code)

Run make && make python-wrap in the minisat folder.

How to build swig code (if you changed minisat-python interface, e.g. in GymSolver.i)

Go to minisat/minisat/gym, run swig -fastdispatch -c++ -python3 GymSolver.i and then repeat the building procedure from the previous step.

Individual Contributor License Agreement

Please fill out the following CLA and email to [email protected]: https://www.apache.org/licenses/icla.pdf

Cite

@inproceedings{kurin2019improving,
  title={Can Q-Learning with Graph Networks Learn a Generalizable Branching Heuristic for a SAT Solver?},
  author={Kurin, Vitaly and Godil, Saad and Whiteson, Shimon and Catanzaro, Bryan},
  booktitle = {Advances in Neural Information Processing Systems 32},
  year={2020}
}

Acknowledgements

We would like to thank Fei Wang whose initial implementation of the environment we used as a start, and the creators of Minisat on which it is based on. We would also like to thank the creators of Pytorch Geometric whose MetaLayer and Graph Nets implementation we built upon.

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.