Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions planutils/packages/kstar-legacy/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

singularity pull --name kstar.sif shub://ctpelok77/kstar
38 changes: 38 additions & 0 deletions planutils/packages/kstar-legacy/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "K* planner: integrating the K* algorithm into Fast Downward",
"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).",
"homepage": "https://github.com/ctpelok77/kstar",
"install-size": "36M",
"dependencies": [],
"endpoint": {
"services": {
"solve": {
"template": "planner",
"args":[
{
"name": "search_algorithm",
"type": "categorical",
"description": "Search Algorithm",
"choices":[
{
"display_value":"Kstar Blind k=1",
"value":"kstar(blind(),k=1)"
},
{
"display_value":"Kstar Blind k=2",
"value":"kstar(blind(),k=2)"
}
],
"default":"kstar(blind(),k=1)"
}
],
"call":"{package_name} {domain} {problem} --search '{search_algorithm}'",
"return": {
"type": "generic",
"files": "found_plans/sas_plan.*"
}
}

}
}
}
3 changes: 3 additions & 0 deletions planutils/packages/kstar-legacy/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

singularity run -e $(dirname $0)/kstar.sif $@
3 changes: 3 additions & 0 deletions planutils/packages/kstar-legacy/uninstall
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

rm kstar.sif
2 changes: 1 addition & 1 deletion planutils/packages/kstar/install
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

singularity pull --name kstar.sif shub://ctpelok77/kstar
python3 -m pip install kstar-planner==1.4.6
35 changes: 8 additions & 27 deletions planutils/packages/kstar/manifest.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,19 @@
{
"name": "K* planner: integrating the K* algorithm into Fast Downward",
"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).",
"homepage": "https://github.com/ctpelok77/kstar",
"install-size": "36M",
"name": "K* planner",
"description": "New implementation of K* search based on Fast Downward.",
"homepage": "https://github.com/ibm/kstar",
"install-size": "203M",
"dependencies": [],
"endpoint": {
"services": {
"solve": {
"template": "planner",
"args":[
{
"name": "search_algorithm",
"type": "categorical",
"description": "Search Algorithm",
"choices":[
{
"display_value":"Kstar Blind k=1",
"value":"kstar(blind(),k=1)"
},
{
"display_value":"Kstar Blind k=2",
"value":"kstar(blind(),k=2)"
}
],
"default":"kstar(blind(),k=1)"
}
],
"call":"{package_name} {domain} {problem} --search '{search_algorithm}'",
"call":"{package_name} -k 10 -q 1.0 -H lmcut {domain} {problem} >> plan",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only thing that gives me pause. You've moved away all the configuration and hard-coded the cli options. Why not leave it exposed? Would kstar use these as defaults? If not, you could beef up the run shell script to look and set defaults.

The reason it's nice to expose these in the json as args is that it will pre-populate the UI for those settings (online editor, and I think vscode as well). So running kstar from there (hosted on solver.planning.domains), could be configured for the individual user.

"return": {
"type": "generic",
"files": "found_plans/sas_plan.*"
"type": "log",
"files": "*plan*"
}
}

}
}
}
}
2 changes: 1 addition & 1 deletion planutils/packages/kstar/run
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

singularity run -e $(dirname $0)/kstar.sif $@
kstar_planner $@
2 changes: 1 addition & 1 deletion planutils/packages/kstar/uninstall
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

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