| .cardinality_solve | R Documentation |
Builds the balance network for a distance matrix and a nested partition, searches it under whatever moment constraints are stated, and reports the matched sample with the bound that goes with it.
.cardinality_solve(
left,
right,
cost,
refined = NULL,
exact = 1L,
moments = NULL,
max_std_diff = NULL,
vars = NULL,
dual_steps = 20L,
branch = c("unit", "pair"),
node_limit = 500L,
time_limit = Inf,
should_stop = NULL,
tol = 1e-09
)
left, right |
Data frames of units, one row each. |
cost |
Numeric distance matrix, |
refined |
The nested groupings balance is required on, coarsest first. |
exact |
How many of the coarsest levels are enforced exactly. |
moments, max_std_diff, vars |
Moment constraints, as |
dual_steps |
Multiplier updates per node. |
branch |
Whether to branch on left-unit inclusion or on pairs. |
node_limit, time_limit |
Search budget. |
should_stop |
Optional predicate of the search state; |
tol |
Numeric tolerance for certification and for the constraint values. |
A cardinality_report.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.