Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 0 additions & 5 deletions deployables/example_scenarios/saps/instances-test.txt

This file was deleted.

5 changes: 0 additions & 5 deletions deployables/example_scenarios/saps/instances-train.txt

This file was deleted.

11 changes: 0 additions & 11 deletions deployables/example_scenarios/saps/saps-scenario.txt

This file was deleted.

74 changes: 0 additions & 74 deletions deployables/example_scenarios/saps/saps_wrapper.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
example_scenarios/saps_genericWrapper/instances/test/SWlin2006.11218.cnf
example_scenarios/saps_genericWrapper/instances/test/SWlin2006.12713.cnf
example_scenarios/saps_genericWrapper/instances/test/SWlin2006.18830.cnf
example_scenarios/saps_genericWrapper/instances/test/SWlin2006.4166.cnf
example_scenarios/saps_genericWrapper/instances/test/SWlin2006.4435.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
example_scenarios/saps_genericWrapper/instances/train/SWlin2006.10286.cnf
example_scenarios/saps_genericWrapper/instances/train/SWlin2006.19724.cnf
example_scenarios/saps_genericWrapper/instances/train/SWlin2006.2705.cnf
example_scenarios/saps_genericWrapper/instances/train/SWlin2006.4072.cnf
example_scenarios/saps_genericWrapper/instances/train/SWlin2006.8287.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
algo = python -u example_scenarios/saps_genericWrapper/wrapper.py --mem-limit 1024 --sat-checker ./example_scenarios/tools/SAT
deterministic = 0
run_obj = runtime
overall_obj = mean
cputime_limit = 30
cutoff_length = max
target_run_cputime_limit = 5
paramfile = example_scenarios/saps_genericWrapper/saps-params.pcs
instance_file = example_scenarios/saps_genericWrappersaps/instances-train.txt
test_instance_file = example_scenarios/saps_genericWrapper/instances-test.txt
41 changes: 41 additions & 0 deletions deployables/example_scenarios/saps_genericWrapper/wrapper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import os
import sys
sys.path.append(os.path.dirname(__file__) + "/../tools")

from genericWrapper4AC.generic_wrapper import AbstractWrapper
from genericWrapper4AC.domain_specific.satwrapper import SatWrapper

class SAPSWrapper(SatWrapper):

def __init__(self):
SatWrapper.__init__(self)


def get_command_line_args(self, runargs, config):
'''
@contact: lindauer@informatik.uni-freiburg.de, fh@informatik.uni-freiburg.de
Returns the command line call string to execute the target algorithm (here: Spear).
Args:
runargs: a map of several optional arguments for the execution of the target algorithm.
{
"instance": <instance>,
"specifics" : <extra data associated with the instance>,
"cutoff" : <runtime cutoff>,
"runlength" : <runlength cutoff>,
"seed" : <seed>
}
config: a mapping from parameter name to parameter value
Returns:
A command call list to execute the target algorithm.
'''
solver_binary = "example_scenarios/saps_genericWrapper/ubcsat"
cmd = "%s -alg saps" %(solver_binary)
for name, value in config.items():
cmd += " %s %s" %(name, value)

cmd += " -inst %s -cutoff %d -timeout %d -target 0 -seed %d -r satcomp" %(runargs["instance"], runargs["runlength"], runargs["cutoff"], runargs["seed"])
return cmd

if __name__ == "__main__":
wrapper = SAPSWrapper()
wrapper.main()

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Binary file removed deployables/example_scenarios/spear/Spear-32_1.2.1
Binary file not shown.
6 changes: 0 additions & 6 deletions deployables/example_scenarios/spear/features.csv

This file was deleted.

5 changes: 0 additions & 5 deletions deployables/example_scenarios/spear/instances-test.txt

This file was deleted.

5 changes: 0 additions & 5 deletions deployables/example_scenarios/spear/instances-train.txt

This file was deleted.

Loading