Installation and quick start

Use Julia 1.10 or later. Install the registered release with:

using Pkg
Pkg.add("QUBODecomposition")
Pkg.add(["QUBODrivers", "MathOptInterface"]) # imported directly below

For development or a release candidate, install the exact source revision instead:

Pkg.add(url="https://github.com/JuliaQUBO/QUBODecomposition.jl.git", rev="FULL_COMMIT_SHA")

Replace FULL_COMMIT_SHA with the full candidate commit SHA. This is a source installation, not evidence that the candidate version is available in General. The release procedure records the separate publication and installed-source verification gates. The development manual tracks main; registered releases can lag it. See CHANGELOG.md for each version's changes. The explicit component executors and absolute_deadline_sec require 0.1.2 or later; check the installed version with pkgversion(QUBODecomposition) before using them. Certified separator_pruning=true and experimental strategy=:consensus require 0.1.3 or later. Check the installed version; use the exact source SHA above if the required release or fix is unavailable in General. See pruning guarantees and consensus for their distinct certificates and heuristic limits. Coarse proposals and sample-guided fixing require 0.1.4 or later and remain heuristic for nonconstant originals.

For a checkout that runs the repository examples:

git clone https://github.com/JuliaQUBO/QUBODecomposition.jl.git
cd QUBODecomposition.jl
julia --project=. -e 'using Pkg; Pkg.instantiate()'
julia --project=. examples/whole_model.jl
julia --project=. examples/serial_sweeps.jl

The first example fits three free variables into one public ExactSampler call and asserts objective 2 and the version-dependent public status. The second handles five free variables with child capacity two and reconstructs a fixed sixth variable. Executable examples renders these authoritative scripts.

To use this checkout from another Julia project, develop its absolute path:

using Pkg
Pkg.activate("my-project"; shared=false)
Pkg.develop(path="/absolute/path/to/QUBODecomposition.jl")
Pkg.add(["QUBODrivers", "MathOptInterface"])

Only the package checkout in this development example uses a development path. Upstream QUBOTools, QUBODrivers, JuMP and ToQUBO resolve as released packages.

Construct a sampler

julia> using QUBODecomposition, QUBODrivers

julia> opt = QUBODecomposition.Optimizer(
           child_optimizer=() -> QUBODrivers.ExactSampler.Optimizer(),
           max_variables=8, seed=123,
       );

julia> import MathOptInterface as MOI

julia> MOI.get(opt, MOI.RawOptimizerAttribute("strategy"))
:components_then_sweeps

Eight ExactSampler variables produce 256 candidates per complete child call. Include the initial evaluation and every planned call in the parent candidate cap; see budgets.