splitSolutionToBins function

(Internal) Convert a partitioning problem solution to indices

(Internal) Convert a partitioning problem solution to indices

splitSolutionToBins is an internal function for converting a paritioning problem solution to indices.

splitSolutionToBins(solution, n_bins, ni_per_bin, nv_per_bin)

Arguments

  • 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.

Returns

splitSolutionToBins returns a partition-wise list containing item/set indices.

  • Maintainer: Seung W. Choi
  • License: GPL (>= 2)
  • Last published: 2024-08-22