dot-cardinality_report: Report of a cardinality match

.cardinality_reportR Documentation

Report of a cardinality match

Description

Turns a completed search into the object callers read: the matched sample's size, the largest size the bound admits, the gap between them, and the state of every constraint the match was asked to meet.

Usage

.cardinality_report(run, specs = NULL, tol = 1e-09)

## S3 method for class 'cardinality_report'
print(x, ...)

Arguments

run

A cardinality_run from .cardinality_branch_bound().

specs

The moment rows the run was given, from .moment_specs().

tol

Numeric tolerance for reading a constraint as satisfied.

x

A cardinality_report.

...

Ignored.

Value

An object of class cardinality_report, a list with elements:

  • n_matched, n_left_matched - matched pairs, and the left units they use.

  • best_possible - the largest matched sample the bound admits.

  • gap, gap_fraction - best_possible - n_matched, in matched units and as a share of best_possible.

  • certified - TRUE only when the search settled, every solve its bound rests on was certified, the incumbent's own solve was certified and audited, and gap is zero.

  • objective, bound - the incumbent's value of the network objective and the global lower bound on it. best_possible is read from bound.

  • stopped_on, n_nodes, engine, status.

  • constraints - one row per stated constraint, with what it asked for and what the matched sample achieved.

  • balance - matched counts and imbalance per category at every level.

  • tiers, precision_headroom, shift - the weights that order the objective, how many times its range fits inside the range a double orders exactly, and the constant taken off every distance.

  • total_distance, pairs - the matched set itself.

Invisibly returns x.


couplr documentation built on Sept. 17, 2026, 1:08 a.m.