Skip to content

Commit d3510b3

Browse files
authored
Merge pull request #147 from AI-Planning/kstar-legacy
Update to K*
2 parents 0941874 + cd0aae6 commit d3510b3

File tree

8 files changed

+78
-19
lines changed

8 files changed

+78
-19
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
singularity pull --name kstar.sif shub://ctpelok77/kstar
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "K* planner: integrating the K* algorithm into Fast Downward",
3+
"description": "The first K∗ based solver for PDDL planning tasks; it is best suited for problems with very large solution set-size requirements (>1,000).",
4+
"homepage": "https://github.com/ctpelok77/kstar",
5+
"install-size": "36M",
6+
"dependencies": [],
7+
"endpoint": {
8+
"services": {
9+
"solve": {
10+
"template": "planner",
11+
"args":[
12+
{
13+
"name": "search_algorithm",
14+
"type": "categorical",
15+
"description": "Search Algorithm",
16+
"choices":[
17+
{
18+
"display_value":"Kstar Blind k=1",
19+
"value":"kstar(blind(),k=1)"
20+
},
21+
{
22+
"display_value":"Kstar Blind k=2",
23+
"value":"kstar(blind(),k=2)"
24+
}
25+
],
26+
"default":"kstar(blind(),k=1)"
27+
}
28+
],
29+
"call":"{package_name} {domain} {problem} --search '{search_algorithm}'",
30+
"return": {
31+
"type": "generic",
32+
"files": "found_plans/sas_plan.*"
33+
}
34+
}
35+
36+
}
37+
}
38+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
singularity run -e $(dirname $0)/kstar.sif $@
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
rm kstar.sif

planutils/packages/kstar/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
singularity pull --name kstar.sif shub://ctpelok77/kstar
3+
python3 -m pip install kstar-planner==1.4.6
Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,50 @@
11
{
2-
"name": "K* planner: integrating the K* algorithm into Fast Downward",
3-
"description": "The first K∗ based solver for PDDL planning tasks; it is best suited for problems with very large solution set-size requirements (>1,000).",
4-
"homepage": "https://github.com/ctpelok77/kstar",
5-
"install-size": "36M",
2+
"name": "K* planner",
3+
"description": "New implementation of K* search based on Fast Downward.",
4+
"homepage": "https://github.com/ibm/kstar",
5+
"install-size": "203M",
66
"dependencies": [],
77
"endpoint": {
88
"services": {
99
"solve": {
1010
"template": "planner",
1111
"args":[
1212
{
13-
"name": "search_algorithm",
13+
"name": "number_of_plans",
14+
"type": "int",
15+
"description": "Number of Plans",
16+
"default": 10
17+
},
18+
{
19+
"name": "quality",
20+
"type": "string",
21+
"description": "Quality bound",
22+
"default": "1.0"
23+
},
24+
{
25+
"name": "unordered",
1426
"type": "categorical",
15-
"description": "Search Algorithm",
27+
"description": "Unordered top-quality",
1628
"choices":[
1729
{
18-
"display_value":"Kstar Blind k=1",
19-
"value":"kstar(blind(),k=1)"
30+
"display_value":"Unordered top-quality planner",
31+
"value":"--unordered"
2032
},
2133
{
22-
"display_value":"Kstar Blind k=2",
23-
"value":"kstar(blind(),k=2)"
34+
"display_value":"Top-quality planner",
35+
"value":""
2436
}
2537
],
26-
"default":"kstar(blind(),k=1)"
38+
"default":"--unordered"
2739
}
40+
2841
],
29-
"call":"{package_name} {domain} {problem} --search '{search_algorithm}'",
42+
"call":"{package_name} -k {number_of_plans} -q {quality} -H lmcut {unordered} {domain} {problem} >> plan",
3043
"return": {
31-
"type": "generic",
32-
"files": "found_plans/sas_plan.*"
44+
"type": "log",
45+
"files": "*plan*"
3346
}
3447
}
35-
3648
}
3749
}
38-
}
50+
}

planutils/packages/kstar/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
singularity run -e $(dirname $0)/kstar.sif $@
3+
kstar_planner $@

planutils/packages/kstar/uninstall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
rm kstar.sif
3+
python3 -m pip uninstall kstar-planner

0 commit comments

Comments
 (0)