-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ba9fc79
commit 3dd81b6
Showing
17 changed files
with
156 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
target | ||
portsat | ||
*.paf | ||
|
||
report/report.log | ||
report/report.aux | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[package] | ||
name = "ter" | ||
version = "0.1.0" | ||
name = "portsat" | ||
version = "1.0.0" | ||
edition = "2018" | ||
authors = [ | ||
"Christophe Yang", | ||
"Quentin Januel", | ||
"Sylvain Declercq", | ||
"Quentin Januel ([email protected])", | ||
"Sylvain Declercq ([email protected])", | ||
"Christophe Yang ([email protected])", | ||
] | ||
license = "MIT" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,21 @@ | ||
# Computational model of argumentation | ||
# PORTSAT | ||
|
||
You can use the solver as described in the ICCMA'15 Supplementary Notes on probo: | ||
## Installation | ||
|
||
## Print the name, version and authors | ||
``` | ||
cargo run -- | ||
``` | ||
### Prerequisites | ||
|
||
## Print the supported formats | ||
``` | ||
cargo run -- --formats | ||
``` | ||
**NOTE:** We have an extra format `loose-apx` which allows for APX file with less assumptions (e.g. the arguments and attacks can be mixed, or there can be multiple definitions per line). If your APX graph fails to parse with the default `apx` format, give a try to `loose-apx`. However the parsing is slower. | ||
PORTSAT is made in Rust, so you need to install Rust first. You can find the installation instructions [here](https://www.rust-lang.org/tools/install). | ||
|
||
## Print the supported problems | ||
``` | ||
cargo run -- --problems | ||
``` | ||
|
||
## Print the available SAT solvers | ||
``` | ||
cargo run -- --solvers | ||
``` | ||
### Compile source code | ||
|
||
## Solve a given problem | ||
``` | ||
cargo run -- -p <problem> -f <file> -fo <fileformat> [-a <additional_parameter>] [-s <solvers>] [--pr-mss] | ||
``` | ||
Example: | ||
``` | ||
cargo run -- -p DC-CO -s manysat,dpll -f graph.tgf -fo tgf -a a | ||
You just need to run the make command in the root directory of the project. | ||
```bash | ||
make | ||
``` | ||
**NOTE**: You cannot set the solvers when the problem involves the grounded extension. | ||
|
||
**NOTE2**: The `--pr-mss` flag will make the solver use the MSS algorithms for the preferred semantics. Otherwise it will enumerate all complete extensions and filter the ones that are preferred. | ||
## Usage | ||
|
||
## Prerequisite | ||
- [Rust](https://www.rust-lang.org/) | ||
- [Python](https://www.python.org/) (10.0 or higher) | ||
### MacOS | ||
Make sure to have the `libomp` library installed. If you do not, you can install it with the following command: | ||
If the installation was successful, you can run the program with the following command: | ||
```bash | ||
brew install libomp | ||
``` | ||
|
||
## Compile | ||
The Python scripts will attempt to use the release version of the solver. | ||
In order to compile it, run the following command: | ||
``` | ||
cargo build --release | ||
``` | ||
In order to install the python dependencies, run | ||
./portsat | ||
``` | ||
pip install -r requirements.txt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
NAME = portsat | ||
|
||
build: | ||
cargo build --release | ||
cp target/release/$(NAME) $(NAME) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.