Giter Site home page Giter Site logo

geometric-lattice's Introduction

Graph Lattice

SAT models for generating geometric lattices.

Overview

The folders SGS and Codish contain models for geometric lattices with different approaches for symmetry breaking. The folder BaseModel does not implemenet any symmetry breaking. The file SATGeoLattice.pdf has more information about the model.

Required Packages

The repository contains a python virtual environment, however all packages used are standard python packages. Python3 is assumed.

To run the solver, a working installation of Savile Row, Conjure and Mini SAT are required. Other Solvers can also be used, such as Minion. All need to be inside your path.

The scripts use standard Linux commands and terminal tools. A Linux shell is assumed.

A working installation of GAP is also necessary for symmetry breaking. Please add gap.sh (which lives inside the bin folder in your GAP installation directory, ie: path/to/GAP/bin/gap.sh) inside your local path and rename it to gap. This will ensure that gap commands can be run inside the working directory. Additionally, the package yags is necessary, this package is not provided in a normal installation of GAP. Additionally, Nauty and/or Traces may be needed to install yags.

How to use

To run the experiment, go either SGS, Codish or BaseModel for the different solving approaches and execute:

bash make.sh

To change the solver, simply change it inside make.sh. Here we use --solver=nbc_minisat_all

conjure solve -ac --number-of-solutions=all --solver=nbc_minisat_all geo_sym.essence n.param

This can be changed to:

conjure solve -ac --number-of-solutions=all --solver=minion geo_sym.essence n.param

We can aslo ask the solver to find only one solution by removing the flag --number-of-solutions=all. Other options are also available, to learn more, please run:

conjure --help

The results can be seen inside the Output folder. For each size n we have a folder Resultn that contains the solutions, as well as meta data which can be found in conjure-output. Of particular interest is the file .eprime-info. For more information go to [https://github.com/conjure-cp/conjure].

geometric-lattice's People

Contributors

delyan-kirov avatar

Stargazers

Christopher Jefferson 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.