View source: R/matching_memory.R
| resolve_memory_mode | R Documentation |
Resolve a requested memory_mode to a concrete decision
resolve_memory_mode(
n,
m,
memory_mode = c("auto", "dense", "lazy", "implicit"),
solver_supports_lazy = FALSE,
solver_supports_implicit = FALSE,
ram_fraction = 0.5,
fallback_threshold_mb = 4000
)
n, m |
Problem dimensions (left/right unit counts). |
memory_mode |
One of "auto" (probe RAM and decide), "dense" (always, skip probing entirely), "lazy" (always, error if unsupported here), or "implicit" (always, error if unsupported here). |
solver_supports_lazy |
Whether a lazy path actually exists for the
caller's chosen solver/distance combination ( |
solver_supports_implicit |
Whether the caller's design is the one the edge-generation loop solves: a 1:1 matching over a built-in distance metric, whose network is one unit-capacity bipartite block. |
ram_fraction |
Fraction of available RAM a dense solve's peak may reach before "auto" switches away from dense. |
fallback_threshold_mb |
Fixed threshold used when available RAM can't be
determined (mirrors the warn+fallback precedent in
|
"dense", "lazy" or "implicit".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.