π οΈ Solver Installationο
Solvers can be installed using the install subcommand of xcsp.
This provides multiple flexible ways to fetch, configure, and build solvers from configuration files or remote repositories.
xcsp install --help
usage: xcsp install [-h] [--id ID] [--name NAME] [-c CONFIG] [--url URL]
[--repo REPO]
[--source {RepoSource.GITHUB,RepoSource.GITLAB}]
π¦ Installation Methodsο
πΉ 1. From a Configuration Fileο
Use the --config (or -c) option to specify a local solver configuration file:
xcsp install --config ./solvers/ace.solver.yaml
This file must follow the Solver Configuration Format, describing how to fetch and build the solver.
πΉ 2. From a Direct Git URLο
Use the --url option to install from a remote Git repository.
This method requires you to specify the solverβs --id and --name:
xcsp install --url https://github.com/xcsp3team/ace --id fr.cril.xcsp.ace --name ACE
If the repository contains a solver config file (e.g.,
ace.solver.yaml), it will be used automatically.If not, the launcher will attempt to find
<name>.solver.yamlin its known search paths.If no configuration file is found,
xcsp-launcherattempts to build the solver using abuilderfile. See Solver Building for details. Note that in this case, it cannot automatically move the generated binaries to the solverβsbindirectory.
See Configuration File Discovery for details.
πΉ 3. From a GitHub/GitLab Repositoryο
Use the --repo option for a shorthand reference to a repository:
xcsp install --repo xcsp3team/ace --id fr.cril.xcsp.ace --name ACE
By default, the repository is assumed to be hosted on GitHub.
To use GitLab instead, add:
--source RepoSource.GITLAB
π This method works just like --url, but is more concise.
π§ Common Optionsο
Option |
Description |
|---|---|
|
Unique solver ID (required for |
|
Human-readable name of the solver (required for |
|
Git URL to the solver repository |
|
Git repo in the form |
|
Hosting provider ( |
β After installation, you can check installed solvers with:
xcsp solver --solvers
π Want to write your own solver configuration? See Solver Configuration Format