Skip to content

Commit

Permalink
exp. on reduction period
Browse files Browse the repository at this point in the history
  • Loading branch information
shnarazk committed Sep 3, 2017
1 parent 5dfcb60 commit 8232f99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SAT/Mios/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -757,11 +757,12 @@ solve s@Solver{..} assumps = do
-- SOLVE:
nc <- fromIntegral <$> nClauses s
let
nv = fromIntegral nVars
while :: Double -> Double -> IO Bool
while nOfConflicts nOfLearnts = do
status <- search s (floor nOfConflicts) (floor nOfLearnts)
if status == lBottom
then while (1.5 * nOfConflicts) (2000 + nOfLearnts)
then while (1.4 * nOfConflicts) (nv + nOfLearnts)
else cancelUntil s 0 >> return (status == lTrue)
while 100 $ min (nc / 3.0) 10000

Expand Down

0 comments on commit 8232f99

Please sign in to comment.