#418: Add SAT Solvers
-----------------------------------+----------------------------------------
Reporter: malb | Owner: was
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-5.1
Component: packages | Resolution:
Keywords: SAT | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Martin Albrecht | Merged in:
Dependencies: | Stopgaps:
-----------------------------------+----------------------------------------
Comment (by malb):
I should mention that I didn't implement reading from DIMACS files. I did
implement exporting to DIMACS but perhaps some people would find this
interface not that nice. I find it reasonably elegant though because it is
quite modular:
{{{
sage: from sage.sat.converters.polybori import CNFEncoder
sage: solver = sage.sat.solvers.dimacs.DIMACS(filename="mycnf.cnf")
sage: F,s = mq.SR(1,2,2,4,gf2=True,polybori=True).polynomial_system()
sage: encoder = CNFEncoder(solver, F.ring())
sage: _ = encoder(F)
sage: solver.write()
'mycnf.cnf'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/418#comment:18>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.