diff options
| author | Federico Igne <git@federicoigne.com> | 2022-08-13 11:33:30 +0100 |
|---|---|---|
| committer | Federico Igne <git@federicoigne.com> | 2022-08-13 11:33:30 +0100 |
| commit | 2fd9cc46ff2428bb2fa891f47002e9d3e7585583 (patch) | |
| tree | 81b8b0122a00e9cd06d5f55091a3b087e430ddb0 /examples | |
| download | rubik-2fd9cc46ff2428bb2fa891f47002e9d3e7585583.tar.gz rubik-2fd9cc46ff2428bb2fa891f47002e9d3e7585583.zip | |
init: import project
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/sol1.txt | 15 | ||||
| -rwxr-xr-x | examples/sol2.txt | 11 | ||||
| -rwxr-xr-x | examples/sol3.txt | 14 |
3 files changed, 40 insertions, 0 deletions
diff --git a/examples/sol1.txt b/examples/sol1.txt new file mode 100755 index 0000000..2f58ef1 --- /dev/null +++ b/examples/sol1.txt | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | clingo version 4.4.0 | ||
| 2 | Reading from rubik.lp | ||
| 3 | Solving... | ||
| 4 | Answer: 1 | ||
| 5 | move(0,pitch,0,-1) move(1,roll,1,-1) move(2,yaw,0,-1) move(3,pitch,1,-1) move(4,yaw,1,-1) move(5,roll,1,-1) move(6,pitch,0,-1) move(7,yaw,0,-1) move(8,pitch,0,1) move(9,roll,1,-1) move(10,pitch,0,-1) is(0,0,red,white,green) is(0,1,white,green,orange) is(0,2,orange,white,blue) is(0,3,green,red,yellow) is(0,4,blue,orange,yellow) is(0,5,white,red,blue) is(0,6,blue,yellow,red) is(0,7,yellow,green,orange) solved(10) | ||
| 6 | Answer: 2 | ||
| 7 | move(0,pitch,0,-1) move(1,roll,1,-1) move(2,yaw,0,-1) move(3,pitch,1,-1) move(4,yaw,1,-1) move(5,roll,1,-1) move(6,pitch,0,-1) move(7,yaw,0,-1) move(8,pitch,0,1) move(9,roll,1,-1) move(10,pitch,0,1) is(0,0,red,white,green) is(0,1,white,green,orange) is(0,2,orange,white,blue) is(0,3,green,red,yellow) is(0,4,blue,orange,yellow) is(0,5,white,red,blue) is(0,6,blue,yellow,red) is(0,7,yellow,green,orange) solved(10) | ||
| 8 | Answer: 3 | ||
| 9 | move(0,pitch,0,-1) move(1,roll,1,-1) move(2,yaw,0,-1) move(3,pitch,1,-1) move(4,yaw,1,-1) move(5,roll,1,-1) move(6,pitch,0,-1) move(7,yaw,0,-1) move(8,pitch,0,1) move(9,roll,1,-1) move(10,roll,0,1) is(0,0,red,white,green) is(0,1,white,green,orange) is(0,2,orange,white,blue) is(0,3,green,red,yellow) is(0,4,blue,orange,yellow) is(0,5,white,red,blue) is(0,6,blue,yellow,red) is(0,7,yellow,green,orange) solved(10) | ||
| 10 | SATISFIABLE | ||
| 11 | |||
| 12 | Models : 3+ | ||
| 13 | Calls : 1 | ||
| 14 | Time : 765.674s (Solving: 765.45s 1st Model: 765.44s Unsat: 0.00s) | ||
| 15 | CPU Time : 766.460s | ||
diff --git a/examples/sol2.txt b/examples/sol2.txt new file mode 100755 index 0000000..92374be --- /dev/null +++ b/examples/sol2.txt | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | clingo version 4.4.0 | ||
| 2 | Reading from rubik.lp | ||
| 3 | Solving... | ||
| 4 | Answer: 1 | ||
| 5 | move(0,pitch,0,-1) move(1,roll,1,-1) move(2,roll,1,-1) move(3,pitch,0,-1) move(4,roll,1,-1) move(5,yaw,0,1) move(6,pitch,1,-1) move(7,pitch,1,-1) move(8,roll,1,-1) move(9,yaw,1,-1) move(10,pitch,0,1) move(11,yaw,1,-1) move(12,roll,0,1) is(0,0,yellow,green,orange) is(0,1,blue,white,orange) is(0,2,yellow,orange,blue) is(0,3,blue,yellow,red) is(0,4,green,orange,white) is(0,5,red,blue,white) is(0,6,green,red,yellow) is(0,7,red,white,green) solved(12) | ||
| 6 | SATISFIABLE | ||
| 7 | |||
| 8 | Models : 1+ | ||
| 9 | Calls : 1 | ||
| 10 | Time : 566.654s (Solving: 566.65s 1st Model: 566.64s Unsat: 0.00s) | ||
| 11 | CPU Time : 572.460s | ||
diff --git a/examples/sol3.txt b/examples/sol3.txt new file mode 100755 index 0000000..cd3ec66 --- /dev/null +++ b/examples/sol3.txt | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | clingo version 4.4.0 | ||
| 2 | Reading from rubik.lp | ||
| 3 | Solving... | ||
| 4 | Answer: 1 | ||
| 5 | move(0,yaw,0,-1) move(1,yaw,0,-1) move(2,pitch,0,1) move(3,roll,1,-1) move(4,yaw,0,-1) move(5,yaw,0,-1) move(6,pitch,1,-1) move(7,yaw,1,1) move(8,roll,1,-1) is(0,0,orange,yellow,green) is(0,1,white,green,orange) is(0,2,orange,white,blue) is(0,3,red,blue,yellow) is(0,4,white,blue,red) is(0,5,blue,yellow,orange) is(0,6,green,white,red) is(0,7,yellow,red,green) solved(8) | ||
| 6 | Optimization: 8 | ||
| 7 | OPTIMUM FOUND | ||
| 8 | |||
| 9 | Models : 1 | ||
| 10 | Optimum : yes | ||
| 11 | Optimization : 8 | ||
| 12 | Calls : 1 | ||
| 13 | Time : 9935.368s (Solving: 9935.09s 1st Model: 9935.09s Unsat: 0.00s) | ||
| 14 | CPU Time : 9949.430s | ||
