02.12.2014 Views

SAT solvers - Sage

SAT solvers - Sage

SAT solvers - Sage

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Sage</strong> Reference Manual: Sat, Release 6.2<br />

sage: solve_sat(F,n=infinity)<br />

[{d: 0, b: 0, c: 0, a: 0}, {d: 1, b: 1, c: 0, a: 1},<br />

{d: 1, b: 0, c: 1, a: 0}, {d: 0, b: 1, c: 1, a: 1}]<br />

# optional - cryptominisat<br />

Now we are only interested in the solutions of the variables a and b:<br />

sage: solve_sat(F,n=infinity,target_variables=[a,b])<br />

[{b: 0, a: 0}, {b: 1, a: 1}]<br />

# optional - cryptominisat<br />

Note: Although supported, passing converter and solver objects instead of classes is discouraged because these<br />

objects are stateful.<br />

REFERENCES:<br />

20 Chapter 3. Highlevel Interfaces

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!