Collecting solver data

Lately, I have been putting a lot of effort into collecting data about solver behaviour and dumping it on-the-fly to a MySQL database. Some of this data is then presented by a PHP&javascript interface, such as this.The goal is to better understand how solving works, and thus to possibly come up with better strategies for solving. The requirements of the data gathered are: speed to calculate, size to store and usefulness. ...

November 21, 2012 · 5 min · msoos

How to use CryptoMiniSat 2.9 as a library

There have been some questions asked about how to use CryptoMiniSat as a library. Here, I give a simple example usage to help any future potential users. If there are any question that seems unanswered, please feel free to add them as a comment to this post. First, we initialize the solver with high verbosity: #include "cmsat/Solver.h" using namespace CMSat; SolverConf conf; conf.verbosity = 2; Solver solver(conf); Then we add the variables 0..9: for(int i = 0; i < 10; i++) { solver.newVar(); } And add a clause that would look in the DIMACS input format as “2 -5 10 0”: ...

June 20, 2012 · 2 min · msoos

On hyper-binary resolution

Hyper-binary resolution is actually quite straightforward, or at least appears to be. Let’s take the following example. The clauses in our database are the following: -a V b -a V c -b V -c V g -b V -c V d -d V g Let’s set a to true, and see what happens. Immediately, b and c get set to true through binary clauses. If we now propagate g through the clause -b V -c V g, we ought to do hyper-binary resolution straight away, and add the clause -a V g -- some call this lazy hyper-binary resolution. Good, one more binary clause! ...

May 17, 2012 · 2 min · msoos