Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uwrmaxsat terminates with default verbosity level #9

Closed
jsimomaa opened this issue Apr 25, 2024 · 1 comment
Closed

uwrmaxsat terminates with default verbosity level #9

jsimomaa opened this issue Apr 25, 2024 · 1 comment

Comments

@jsimomaa
Copy link

The following invocation does not work:

uwrmaxsat.exe -maxsat problem.cnf

=>

c Using COMiniSatPS SAT solver by Chanseok Oh (2016)
c WARNING! Setting stack limit not supported on this architecture.
c Parsing MaxSAT file...
c ============================[  Problem Statistics ]============================
c |  Number of variables:             1                                         |
c |  Number of clauses:               0                                         |
c ===============================================================================
c Using COMiniSatPS SAT solver by Chanseok Oh (2016)
c Using SCIP solver, version 8.1.0, https://www.scipopt.org
terminate called after throwing an instance of 'Exception_IntOverflow'

But this works:

uwrmaxsat.exe -v2 -maxsat problem.cnf
c Using COMiniSatPS SAT solver by Chanseok Oh (2016)
c WARNING! Setting stack limit not supported on this architecture.
c Parsing MaxSAT file...
c ============================[  Problem Statistics ]============================
c |  Number of variables:             1                                         |
c |  Number of clauses:               0                                         |
c ===============================================================================
c Using COMiniSatPS SAT solver by Chanseok Oh (2016)
c COMiniSatPS: Reduced to 1 vars, 0 cls (grow=0)
c COMiniSatPS: No iterative elimination performed. (vars=1, c/v ratio=0.0)
c Using SCIP solver, version 8.1.0, https://www.scipopt.org
c SCIPobj: soft_cls.size=0, assump_ps->size=1, delayed_assump.size=0, goal_gcd=1, hard_cls=0
c SCIPobj: obj_var=1, obj_offset=1, ob_offset_to_add: 0 0
c Starting SCIP solver in a separate thread (with time-limit = 0s) ...
c ======================[ COMiniSatPS search starting  ]========================
o 0
c Optimal solution: 0
c _______________________________________________________________________________
c
c restarts               : 1
c conflicts              : 0              (0 /sec)
c decisions              : 1              (0.00 % random) (13 /sec)
c propagations           : 2              (25 /sec)
c conflict literals      : 0              ( nan % deleted)
c =======================[ UWrMaxSat resources usage ]===========================
c CPU time               : 0.079 s
c Wall clock time        : 1 s
c _______________________________________________________________________________
s OPTIMUM FOUND
v 1

Here is the problem (modified the extension to .txt for GitHub):
problem.cnf.txt

If you need any further information please let me know.

@marekpiotrow
Copy link
Owner

Hi,

You have observed a "race condition" problem on such a trivial instance: both solvers solve it in milliseconds and try to report their results in the same time. So I change the synchronization mechanism to an atomic test&set operation to avoid this. I hope the problem is solved.

Marek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants