| .cardinality_report | R Documentation |
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.
.cardinality_report(run, specs = NULL, tol = 1e-09)
## S3 method for class 'cardinality_report'
print(x, ...)
run |
A |
specs |
The moment rows the run was given, from |
tol |
Numeric tolerance for reading a constraint as satisfied. |
x |
A |
... |
Ignored. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.