View source: R/partitioning_functions.r
| splitSolutionToBins | R Documentation |
splitSolutionToBins is an internal function for converting a paritioning problem solution to indices.
splitSolutionToBins(solution, n_bins, ni_per_bin, nv_per_bin)
solution |
the solution vector from the solver. |
n_bins |
the number of bins (i.e., partitions) |
ni_per_bin |
the number of decision variables for items in each bin. This is the number of items in the pool. |
nv_per_bin |
the number of decision variables for items+sets in each bin. This is the number of items in the pool plus the number of sets. The deviation variable is not counted here. |
splitSolutionToBins returns a partition-wise list containing item/set indices.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.