addScoreToConstraintData is an internal function for
summing the score of items in a solution that match a constraint.
addScoreToConstraintData(x, attrib, item_idx, item_resp, item_ncat)addScoreToConstraintData returns an updated data.frame.
a data.frame containing a single constraint data.
an item_attrib object.
item indices in the solution.
scores of items in the solution.
number of score categories of items in the solution.