Coder Social home page Coder Social logo

as4moco's Introduction

as4moco

Algorithm selection for model counting

as4moco uses algorithm selection and automated algorithm configuration decrease its solving time for #SAT queries. It is based on AutoFolio, an algorithm selection framework.

Requirements

  • Java 21
  • Python 3 (tested for Python 3.10)
  • Ubuntu 22.04 (other version may require a recompilation of the used solver binaries)

How to install

  1. Install modified AutoFolio
    1. Create a new virtual environment: python3 -m venv <Name of Virtual Environment>
    2. Clone modified AutoFolio: git clone https://github.com/RSD6170/AutoFolio/
    3. Install the modified AutoFolio package: <path to venv>/bin/python3 -m pip install <path to cloned repository>
  2. Clone this repository: git clone https://github.com/SoftVarE-Group/as4moco
  3. Modify AlgorithmSelector.java at marked todo with path to python venv and AutoFolio repository: private final static String[] commands = new String[]{"<Path to Python Venv>/bin/python3", "-u", "<Path to AutoFolio repo>/scripts/java_bridge.py"};

How to run

Run Gradle::run with your parameters

Example for Ubuntu: ./gradlew run −−args="−modelFile </path/to/af_model.pkl> −cnfFile </path/to/cnf.dimacs>"

New model files can be created, refer to the example in the AutoFolio repository.

as4moco's People

Contributors

rsd6170 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.