Skip to contents

Solve multiple assignment subproblems in parallel.

Usage

solve_lap_parallel(cost_matrices, n_workers = NULL, progress = TRUE)

Arguments

cost_matrices

A list of cost matrices.

n_workers

Number of parallel workers. Default is auto-detected.

progress

Logical. If TRUE, show progress. Default is TRUE.

Value

A list of assignment vectors.

Details

Uses the future framework for cross-platform parallel processing.

Examples

if (FALSE) { # \dontrun{
cost_list <- list(cost1, cost2, cost3)
assignments <- solve_lap_parallel(cost_list, n_workers = 4)
} # }