Results¶
Known issues¶
Setvariables are expressible, not competitive: on weighted OR-Library set covering, theSetencoding landed several times above the optimum, where the same model in Bools came close to it (measured on an older engine,35ec07c).Listvariables have no published result: CVRP is an example only.UC-CHPED’s
ucp100anducp200are built here fromucp40, with no published bounds: their gaps are to the best result any method found.
The solvers compared¶
CP-SAT (OR-Tools) runs a portfolio of workers: a constraint-programming search over a clause-learning SAT core, LP relaxations with cuts, large neighbourhood search, and local-search workers (
fj,ls) that run the same ViolationLS as cbls. Its variables are integers: it scales a MIPLIB file’s continuous columns to integers, and it has nosin,exporlog.SCIP solves a nonlinear model by spatial branch-and-bound: LP relaxations of the nonlinear terms, tightened by branching on continuous variables, with local NLP solves by Ipopt (an interior-point method) as a heuristic. It proves bounds and optimality; cbls proves neither.
Where cbls fits: models whose terms CP-SAT cannot state (continuous, non-convex, transcendental or non-smooth), when a good solution early matters more than a proof. On a MILP, CP-SAT is ahead; on MINLPLib’s general roster, SCIP is; on unit commitment with valve-point costs, cbls reaches good solutions first. A problem’s own search code plugs into cbls as an inner-solver hook; CP-SAT takes no such code, and SCIP takes it as a heuristic plugin. The published rows run without one.
Every comparison solver runs at its own defaults. The metrics (primal integral,
GM(gap+1), wins, losses and ties) are defined under the
README’s results table. Per-instance rows are committed
under benchmarks/instances/<benchmark>/.
MIPfeas¶
Run 2026-11-02 on AMD Ryzen 9 3950X (16 cores, 32 threads): 211 held-out MIPLIB
instances (roster.csv less 22 tuning ones), 60 s each; cbls seed 1 on 16
threads; CP-SAT (OR-Tools 9.15.6755) at its defaults, 32 workers, on its
presolved model. Rows:
benchmarks/instances/mipfeas/comparison.csv.
Solver |
Feasible |
Matched the MIPLIB reference |
Primal integral, SGM |
mean |
median |
Did not search |
|---|---|---|---|---|---|---|
cbls |
140 |
22 |
0.390 |
0.948 |
0.750 |
0 |
CP-SAT |
175 |
87 |
0.168 |
0.605 |
0.172 |
10 |
MINLPLib¶
Mittelmann’s nontrivial roster, 195 instances counted, 60 s each. cbls seed 1 on
16 threads at its defaults, run 2026-11-26 on AMD Ryzen 9 3950X (16 cores, 32
threads); SCIP 10.0.2 at its defaults, single-threaded, 16 solves at once, run
2026-11-01. The pool is the 165 instances both solve with a finite best known.
Rows:
benchmarks/instances/minlplib/nontrivial/.
Solver |
Feasible |
Feasible, only this solver |
GM(gap+1) on the pool |
Wins on the pool |
|---|---|---|---|---|
cbls |
169 |
4 |
3.60 |
27 |
SCIP |
187 |
22 |
2.15 |
62 |
Ratio cbls/SCIP 1.676, 95% CI 1.181-2.378 (a t-interval on the 165 paired log ratios); 76 ties.
UC-CHPED¶
Run 2026-11-28 on AMD Ryzen 9 3950X (16 cores, 32 threads): the 24 rows of the
application page, demand as the source’s equality, an equal wall
budget per horizon (10-600 s), 16 threads for every method. cbls is the median
of seeds 1, 2 and 42, seed 42 alone on the 4 rows of 48 and 168 periods; Pedroso
et al.’s method (pwl) and SCIP’s MINLP (exact) run once each on SCIP 11.0.0
preview. Final gaps within 0.01 % tie. Rows:
benchmarks/instances/uc-chped/equal-time/primal_integral.csv.
Method |
Lowest primal integral (of 24) |
Best or tied final gap (of 24) |
Best final gap alone (of 24) |
|---|---|---|---|
cbls |
23 |
6 |
3 |
Pedroso’s method ( |
1 |
21 |
18 |
SCIP’s MINLP ( |
0 |
3 |
0 |
On
ucp100-168p,ucp200-48panducp200-168pthe reference is cbls’s own best final result, so its best gap there is 0 by construction.
Instances¶
MIPfeas: the MIPLIB 2017 benchmark set (miplib.zib.de) less the instances MIPLIB marks infeasible, 233 in all, as GAMS’s MIPfeas defines it; reference values are MIPLIB’s
miplib2017-v36.solu. The table counts the 211 outside the 22 cbls’s settings were tuned on, at 60 s each. MIPLIB states no licence for the files, only a request to cite it; they are downloaded and checked against committed sha256 pins, not redistributed.MINLPLib: the 200 names of Mittelmann’s
nontrivial.txt, the MINLP set of the SCIP 8 paper, read from MINLPLib’s NL archive of 2026-11-01: 196 are still there with a known solution and a model cbls reads, and 195 are counted (elec50, a documented failure, is left out), at 60 s each. No setting was tuned on this roster. minlplib.org states CC BY 4.0 in its site footer; the roster and bounds are committed, the.nlfiles downloaded.UC-CHPED: Pedroso, Kubo and Viana’s
ucp13anducp40, identical field by field to the authors’ data, over 1, 3, 6, 12 and 24 periods, anducp100anducp200, built here fromucp40, over those and 48 and 168: 24 rows, at a budget per horizon from 10 s (1 period) to 600 s (48 and 168). The instance files are cbls’s own (MIT); the authors’ instance code, which they publish under GPL-3, is not vendored, and the SCIP references, a port of their solver, are GPL-3.0-or-later.
Reproduce¶
# README results table, the MIPfeas, MINLPLib and UC-CHPED tables and the UC rows, from the committed rows
.venv/bin/python benchmarks/readme_results.py --write README.md docs/results.md docs/uc-chped.md
# MIPfeas: rerun cbls and CP-SAT on the full roster, score the 211 held out
.venv/bin/python benchmarks/instances/mipfeas/download.py
cmake --build build --target cbls_mipfeas
.venv/bin/python benchmarks/mipfeas/run_benchmark.py --roster full --budget 60 --engines cbls --seed 1 --cbls-threads 16 --cpuset 0-15
.venv/bin/python benchmarks/mipfeas/run_benchmark.py --roster full --budget 60 --engines cpsat
.venv/bin/python benchmarks/mipfeas/primal_integral.py --results-dir results/mipfeas --budget 60 --held-out benchmarks/instances/mipfeas/tuned.txt --out results/mipfeas/comparison.csv
# MINLPLib: rerun SCIP and cbls on the nontrivial roster (MINLPLib's NL files, the committed bounds.csv), then score
curl -LO https://www.minlplib.org/minlplib_nl.zip && unzip -q minlplib_nl.zip -d runs
cp benchmarks/instances/minlplib/nontrivial/bounds.csv runs/minlplib/nl/
.venv/bin/python benchmarks/minlplib/scip_shards.py --nl-dir runs/minlplib/nl --shards runs/scip --jobs 16 --time-limit 60
taskset -c 0-15 .venv/bin/python benchmarks/minlplib/run_benchmark.py --inst-dir runs/minlplib/nl --threads 16 --no-merge --staging-dir runs/cbls --out runs/comparison.csv --trace-out runs/trace.csv
.venv/bin/python benchmarks/minlplib/gm_ratio.py --bounds runs/minlplib/nl/bounds.csv --cbls runs/comparison.csv --scip-shards runs/scip
# UC-CHPED: rerun the 20 rows up to 24 periods, cbls at seeds 1, 2 and 42 (its budget per horizon is the run's),
# each SCIP method once per row at that budget, then one score call; each longer row (48, 168) runs and
# scores the same way on its own at 600 s, cbls at seed 42 alone, its roster that one row (--roster ucp100-48p:48)
rev=$(git rev-parse HEAD)
for seed in 1 2 42; do
build/cbls_uc_chped --demand-equality --threads 16 --seed $seed --periods 1 --periods 3 --periods 6 --periods 12 --periods 24 --commit $rev --verify --out runs/uc/seed$seed.csv --trace runs/uc/trace$seed.csv
done
for row in ucp13 ucp40 ucp100 ucp200; do
for t in 1:10 3:30 6:60 12:120 24:300; do
for method in pwl exact; do
.venv/bin/python benchmarks/uc-chped/pedroso/ucp_valve_scip.py --backend driver --threads 16 --method $method --instance $row --periods ${t%:*} --time-limit ${t#*:} --out runs/uc/$method.jsonl
done
done
done
.venv/bin/python benchmarks/uc-chped/score.py runs/uc/seed1.csv runs/uc/seed2.csv runs/uc/seed42.csv --roster ucp13:1,3,6,12,24 ucp40:1,3,6,12,24 ucp100:1,3,6,12,24 ucp200:1,3,6,12,24 --scip runs/uc/pwl.jsonl --scip runs/uc/exact.jsonl --trace 1:runs/uc/trace1.csv --trace 2:runs/uc/trace2.csv --trace 42:runs/uc/trace42.csv