Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eagletmt/ruby-minisat
Ruby binding for MiniSat
https://github.com/eagletmt/ruby-minisat
Last synced: 22 days ago
JSON representation
Ruby binding for MiniSat
- Host: GitHub
- URL: https://github.com/eagletmt/ruby-minisat
- Owner: eagletmt
- License: mit
- Created: 2013-02-20T16:38:41.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T08:41:44.000Z (over 9 years ago)
- Last Synced: 2024-12-01T07:41:17.560Z (25 days ago)
- Language: Ruby
- Size: 270 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MiniSat
[![Build Status](https://secure.travis-ci.org/eagletmt/ruby-minisat.png)](https://travis-ci.org/eagletmt/ruby-minisat)
Ruby binding for [MiniSat](http://minisat.se/).
## Installation
Add this line to your application's Gemfile:
gem 'minisat', :git => 'git://github.com/eagletmt/ruby-minisat.git'
And then execute:
$ bundle
## Usage
```ruby
require 'minisat's = MiniSat::Solver.new
v1 = MiniSat::Var.new s
v2 = MiniSat::Var.new s
v3 = MiniSat::Var.new s
s << [v1] << [-v2, v3] # v1 /\ (not(v2) \/ v3)
m = s.solve
puts "v1: #{m[v1]}, v2: #{m[v2]}, v3: #{m[v3]}"
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request