about
usage: about [-h]
- -h, --help
show this help message and exit
add_feature_extractor
Add a feature extractor to the platform.
usage: add_feature_extractor [-h] [--nickname NICKNAME] [--no-copy]
extractor-path
- extractor-path
path or nickname of the feature extractor
- -h, --help
show this help message and exit
- --nickname <nickname>
set a nickname for the feature extractor
- --no-copy
do not copy the source directory to the platform directory, but create a symbolic link instead
add_instances
Add instances to the platform.
usage: add_instances [-h] [--nickname NICKNAME] [--no-copy] instances-path
- instances-path
path to the instance set
- -h, --help
show this help message and exit
- --nickname <nickname>
set a nickname for the instance set
- --no-copy
do not copy the source directory to the platform directory, but create a symbolic link instead
add_solver
Add a solver to the Sparkle platform.
usage: add_solver [-h] [--deterministic]
[--solution-verifier SOLUTION_VERIFIER]
[--nickname NICKNAME] [--skip-checks] [--no-copy]
solver-path
- solver-path
path to the solver
- -h, --help
show this help message and exit
- --deterministic
Flag indicating the solver is deterministic
- --solution-verifier <solution_verifier>
the class name of the solution verifier to use for the Solver. If it is a Path, will resolve as a SolutionFileVerifier class with the specified Path instead.
- --nickname <nickname>
set a nickname for the solver
- --skip-checks
Checks the solver’s functionality by testing it on an instance and the pcs file, when applicable.
- --no-copy
do not copy the source directory to the platform directory, but create a symbolic link instead
check
Command to help users check if their input solvers, instance sets or feature extractors are readable by Sparkle. Specify a path to an instance to test calling the wrapper.
usage: check [-h] [--cutoff-time CUTOFF_TIME] [--seed SEED]
{extractor,feature-extractor,solver,instance-set,ExtractorFeature-Extractor,Instance-Set,Solver,FeatureExtractor,InstanceSet}
path [instance_path]
- type
type of the object to check
- path
path to the object to check
- instance_path
Path to an instance to use for the command
- -h, --help
show this help message and exit
- --cutoff-time <cutoff_time>, --cutoff <cutoff_time>, --timeout <cutoff_time>
The duration the portfolio will run before the solvers within the portfolio will be stopped (default: 60)
- --seed <seed>
seed to use for the command
cleanup
Command to clean files from the platform.
usage: cleanup [-h] [--all] [--remove] [--performance-data]
- -h, --help
show this help message and exit
- --all
clean all output files
- --remove
remove all files in the platform, including user data such as InstanceSets and Solvers
- --performance-data
clean performance data from empty lines
compute_features
Sparkle command to Compute features for instances using added extractors and instances.
usage: compute_features [-h] [--recompute] [--settings-file SETTINGS_FILE]
[--run-on {Runner.LOCAL,Runner.SLURM}]
- -h, --help
show this help message and exit
- --recompute
Re-run feature extractor for instances with previously computed features
- --settings-file <settings_file>
Specify the settings file to use in case you want to use one other than the default
- --run-on
On which computer or cluster environment to execute the calculation.
compute_marginal_contribution
Command to compute the marginal contribution of solvers to the portfolio.
usage: compute_marginal_contribution [-h] [--perfect] [--actual]
--selection-scenario SELECTION_SCENARIO
- -h, --help
show this help message and exit
- --perfect
compute the marginal contribution for the perfect selector
- --actual
compute the marginal contribution for the actual selector
- --selection-scenario <selection_scenario>
the selection scenario to use
configure_solver
Configure a solver in the platform.
usage: configure_solver [-h] [--configurator CONFIGURATOR] --solver SOLVER
--instance-set-train INSTANCE_SET_TRAIN
[--instance-set-test INSTANCE_SET_TEST]
[--test-set-run-all-configurations]
[--objectives OBJECTIVES]
[--solver-cutoff-time SOLVER_CUTOFF_TIME]
[--solver-calls SOLVER_CALLS]
[--number-of-runs NUMBER_OF_RUNS]
[--settings-file SETTINGS_FILE] [--use-features]
[--run-on {Runner.LOCAL,Runner.SLURM}]
- -h, --help
show this help message and exit
- --configurator <configurator>
name of the configurator
- --solver <solver>
path to solver
- --instance-set-train <instance_set_train>
path to training instance set
- --instance-set-test <instance_set_test>
path to test instance set
- --test-set-run-all-configurations
run all found configurations on the test set
- --objectives <objectives>
the comma seperated objective(s) to use.
- --solver-cutoff-time <solver_cutoff_time>, --target-cutoff-time <solver_cutoff_time>
cutoff time per Solver run in seconds
- --solver-calls <solver_calls>
number of solver calls to execute
- --number-of-runs <number_of_runs>
number of configuration runs to execute
- --settings-file <settings_file>
Specify the settings file to use in case you want to use one other than the default
- --use-features
use the training set’s features for configuration
- --run-on
On which computer or cluster environment to execute the calculation.
Note that the test instance set is only used if the --ablation
or --validation
flags are given
construct_portfolio_selector
Command to construct a portfolio selector over all known features solver performances.
usage: construct_portfolio_selector [-h] [--solvers SOLVERS [SOLVERS ...]]
[--recompute-portfolio-selector]
[--objective OBJECTIVE]
[--solver-ablation]
[--instance-set-train INSTANCE_SET_TRAIN]
[--run-on {Runner.LOCAL,Runner.SLURM}]
[--settings-file SETTINGS_FILE]
[--all-configurations | --best-configuration | --default-configuration]
- -h, --help
show this help message and exit
- --solvers <solvers>, --solver-paths <solvers>, --solver <solvers>, --solver-path <solvers>
Specify the list of solvers to be used. If not specifed, all solvers known in Sparkle will be used.
- --recompute-portfolio-selector
force the construction of a new portfolio selector even when it already exists for the current feature and performance data. NOTE: This will also result in the computation of the marginal contributions of solvers to the new portfolio selector.
- --objective <objective>
the objective to use.
- --solver-ablation
construct a selector for each solver ablation combination
- --instance-set-train <instance_set_train>
path to training instance set
- --run-on
On which computer or cluster environment to execute the calculation.
- --settings-file <settings_file>
Specify the settings file to use in case you want to use one other than the default
- --all-configurations
use all known configurations for the command
- --best-configuration
use the best configurations for the command
- --default-configuration
use the default configurations for the command
generate_report
Generates a report for all known selection, configuration and parallel portfolio scenarios will be generated.
usage: generate_report [-h] [--solvers SOLVERS [SOLVERS ...]]
[--instance-sets INSTANCE_SETS [INSTANCE_SETS ...]]
[--only-json ONLY_JSON]
- -h, --help
show this help message and exit
- --solvers <solvers>, --solver <solvers>
Solver(s) to use for the report. If not specified, all solvers are included.
- --instance-sets <instance_sets>, --instance-set <instance_sets>
Instance Set(s) to use for the report. If not specified, all Instance Sets are used.
- --only-json <only_json>
if set to True, only generate machine readable output
If you wish to filter specific solvers, instance sets, … have a look at the command line arguments.
initialise
Initialise the Sparkle platform in the current directory.
usage: initialise [-h] [--download-examples] [--no-save] [--rebuild-runsolver]
- -h, --help
show this help message and exit
- --download-examples
Download the Examples into the directory.
- --no-save
do not save the platform upon re-initialisation.
- --rebuild-runsolver
Clean the RunSolver executable and rebuild it.
jobs
Command to interact with async jobs. The command starts an interactive table when no flags are given. Jobs can be selected for cancelling in the table and non activate jobs can be flushed by pressing the spacebar.
usage: jobs [-h] [--cancel] [--job-ids JOB_IDS [JOB_IDS ...]] [--all]
- -h, --help
show this help message and exit
- --cancel
cancel the job(s) with the given ID(s)
- --job-ids <job_ids>
job ID(s) to use for the command
- --all
use all known job ID(s) for the command
load_snapshot
Load a platform from a zip file.
usage: load_snapshot [-h] snapshot-file-path
- snapshot-file-path
path to the snapshot file
- -h, --help
show this help message and exit
remove_feature_extractor
Remove a feature extractor from the platform.
usage: remove_feature_extractor [-h] extractor-path
- extractor-path
path or nickname of the feature extractor
- -h, --help
show this help message and exit
remove_instances
Remove instances from the platform.
usage: remove_instances [-h] instances-path
- instances-path
path to or nickname of the instance set
- -h, --help
show this help message and exit
remove_solver
Remove a solver from the platform.
usage: remove_solver [-h] solver
- solver
name, path to or nickname of the solver
- -h, --help
show this help message and exit
run_ablation
Runs parameter importance between the default and configured parameters with ablation. This command requires a finished configuration for the solver instance pair.
usage: run_ablation [-h] [--solver SOLVER]
[--instance-set-train INSTANCE_SET_TRAIN]
[--instance-set-test INSTANCE_SET_TEST]
[--objectives OBJECTIVES]
[--solver-cutoff-time SOLVER_CUTOFF_TIME]
[--wallclock-time WALLCLOCK_TIME]
[--number-of-runs NUMBER_OF_RUNS] [--racing RACING]
[--settings-file SETTINGS_FILE]
[--run-on {Runner.LOCAL,Runner.SLURM}]
- -h, --help
show this help message and exit
- --solver <solver>
path to solver
- --instance-set-train <instance_set_train>
path to training instance set
- --instance-set-test <instance_set_test>
path to test instance set
- --objectives <objectives>
the comma seperated objective(s) to use.
- --solver-cutoff-time <solver_cutoff_time>, --target-cutoff-time <solver_cutoff_time>
cutoff time per Solver run in seconds
- --wallclock-time <wallclock_time>
configuration budget per configurator run in seconds (wallclock)
- --number-of-runs <number_of_runs>
Number of configuration runs to execute
- --racing <racing>
Performs abaltion analysis with racing
- --settings-file <settings_file>
Specify the settings file to use in case you want to use one other than the default
- --run-on
On which computer or cluster environment to execute the calculation.
Note that if no test instance set is given, the validation is performed on the training set.
run_parallel_portfolio
Run a portfolio of solvers on an instance set in parallel.
usage: run_parallel_portfolio [-h]
[--instance-path INSTANCE_PATH [INSTANCE_PATH ...]]
[--portfolio-name PORTFOLIO_NAME]
[--solvers SOLVERS [SOLVERS ...]]
[--objectives OBJECTIVES]
[--cutoff-time CUTOFF_TIME]
[--solver-seeds SOLVER_SEEDS]
[--run-on {Runner.LOCAL,Runner.SLURM}]
[--settings-file SETTINGS_FILE]
- -h, --help
show this help message and exit
- --instance-path <instance_path>, --instance-set-path <instance_path>, --instance <instance_path>, --instance-set <instance_path>, --instances <instance_path>, --instance-sets <instance_path>, --instance-paths <instance_path>, --instance-set-paths <instance_path>
Path to an instance (set)
- --portfolio-name <portfolio_name>
Specify a name of the portfolio. If none is given, one will be generated.
- --solvers <solvers>, --solver-paths <solvers>, --solver <solvers>, --solver-path <solvers>
Specify the list of solvers to be used. If not specifed, all solvers known in Sparkle will be used.
- --objectives <objectives>
the comma seperated objective(s) to use.
- --cutoff-time <cutoff_time>, --cutoff <cutoff_time>, --timeout <cutoff_time>
The duration the portfolio will run before the solvers within the portfolio will be stopped (default: 60)
- --solver-seeds <solver_seeds>
number of random seeds per solver to execute
- --run-on
On which computer or cluster environment to execute the calculation.
- --settings-file <settings_file>
Specify the settings file to use in case you want to use one other than the default
run_portfolio_selector
Run a portfolio selector on instance (set): Determine which solver is most likely to perform well and run it on the instance (set).
usage: run_portfolio_selector [-h] --selection-scenario SELECTION_SCENARIO
--instance INSTANCE
[--run-on {Runner.LOCAL,Runner.SLURM}]
[--settings-file SETTINGS_FILE]
- -h, --help
show this help message and exit
- --selection-scenario <selection_scenario>
the selection scenario to use
- --instance <instance>, --instance-set <instance>
path to instance (set)
- --run-on
On which computer or cluster environment to execute the calculation.
- --settings-file <settings_file>
Specify the settings file to use in case you want to use one other than the default
run_solvers
Run solvers on instances to get their performance data.
usage: run_solvers [-h] [--solvers SOLVERS [SOLVERS ...]]
[--instance-path INSTANCE_PATH [INSTANCE_PATH ...]]
[--configuration CONFIGURATION [CONFIGURATION ...] |
--best-configuration [BEST_CONFIGURATION] |
--all-configurations] [--objective OBJECTIVE]
[--performance-data-jobs] [--recompute]
[--solver-cutoff-time SOLVER_CUTOFF_TIME]
[--run-on {Runner.LOCAL,Runner.SLURM}]
[--settings-file SETTINGS_FILE]
- -h, --help
show this help message and exit
- --solvers <solvers>, --solver-paths <solvers>, --solver <solvers>, --solver-path <solvers>
Specify the list of solvers to be used. If not specifed, all solvers known in Sparkle will be used.
- --instance-path <instance_path>, --instance-set-path <instance_path>, --instance <instance_path>, --instance-set <instance_path>, --instances <instance_path>, --instance-sets <instance_path>, --instance-paths <instance_path>, --instance-set-paths <instance_path>
Path to an instance (set)
- --configuration <configuration>
The indices of which configurations to use
- --best-configuration <best_configuration>
Paths to instance(s) or instanceset(s) over which to determine the best configuration. If empty, all known instances are used.
- --all-configurations
use all known Solver configurations
- --objective <objective>
the objective to use.
- --performance-data-jobs
compute the remaining jobs in the Performance DataFrame
- --recompute
recompute the performance of all solvers on all instances
- --solver-cutoff-time <solver_cutoff_time>, --target-cutoff-time <solver_cutoff_time>
cutoff time per Solver run in seconds
- --run-on
On which computer or cluster environment to execute the calculation.
- --settings-file <settings_file>
Specify the settings file to use in case you want to use one other than the default
save_snapshot
Save the current platform in a .zip file.
usage: save_snapshot [-h] [--name NAME]
- -h, --help
show this help message and exit
- --name <name>
name of the snapshot
Can be loaded later with the load snapshot command.
status
Display the status of the platform.
usage: status [-h] [--verbose]
- -h, --help
show this help message and exit
- --verbose, -v
output status in verbose mode