0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

はじめてのSAT solver実行

Last updated at Posted at 2021-09-12

ひさしぶりにSAT solverを触ることになり、環境を再構築したため、備忘録的に。

まずは協議会であるSAT competition 2021のサイトから。
今はminiSatではなく、CadiCalというものになっている様子。

  1. まずはforkして自分のレポジトリの中に。

  1. 次にConfigure&make
./Configure
make
  1. そうすると buildディレクトリの中に実行ファイルcadicalができるので
    cadical -hでhelpを見ておく

  2. 解く問題はCompetitionから適宜持ってくる。2021のものであれば

から

mkdir problems #適当にフォルダを作る ー多数ダウンロードされるため
cd problems
wget --content-disposition -i https://satcompetition.github.io/2021/downloads/main2021.url

などでダウンロード。

  1. あとは実行。とりあえず制限時間120秒(実時間)で
./build/cadical -t 120 ./problems/(問題名指定)

Windowsで実行するのに戸惑ったのが嘘のよう。簡単。

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?