addSolutionToConstraintData function

(Internal) Count number of items in a solution that match a constraint

(Internal) Count number of items in a solution that match a constraint

addSolutionToConstraintData is an internal function for counting the number of items in a solution that match a constraint.

addSolutionToConstraintData(x, attrib, item_idx, all_values)

Arguments

  • x: a data.frame containing a single constraint data.
  • attrib: an item_attrib object.
  • item_idx: item indices in the solution.
  • all_values: for set-based assembly, TRUE returns all values for each set, FALSE returns descriptive statisistics.

Returns

addSolutionToConstraintData returns an updated data.frame.

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