I'm doing a project were I have to create a program who solves the N queens problem using a SAT solver. I have already transformed the constraints into conjunctive normal form and I'm now writing the code for the DIMACS file. I however have a question. I was planning to give the user 2 options:
The 1st option would be for the user to give the positions of certain queens, and then having the SAT solver find a solution to that specific set-up.
The 2nd option would be for the SAT solver to print all solutions of the problem. For example, for n=4 it would print both solutions, for n=5 all 10 solutions and so on
My question is for the 2nd option. Is there a way to call the SAT solver multiple times through a loop to find all solutions?