#14180: SatSolver.clauses
--------------------------------------+-------------------------------------
Reporter: malb | Owner: jason
Type: PLEASE CHANGE | Status: needs_info
Priority: major | Milestone: sage-5.8
Component: misc | Resolution:
Keywords: sat, cryptominisat | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Martin Albrecht | Merged in:
Dependencies: #14198 | Stopgaps:
--------------------------------------+-------------------------------------
Comment (by malb):
Replying to [comment:9 ncohen]:
> > `clauses()` does not accept any input file, only a file to write
'''to''' (?)
> Oh. But may it be because there is actually no way to create a xor
clause with te DIMACS interface ?
Correct, only !CryptoMiniSat does that.
> Well, why wouldn't you just write `gens = clauses` then ? `O_o`
If I do this in the base clase ({{{SatSolver}}}) it would point to the
{{{clauses()}}} method in the base class which just raises
{{{NotImplementedError}}}. So every subclass would have to redefine it it.
This way (doing it in {{{__getattr__}}} means it is handled automatically.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14180#comment:10>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.