powered by
Creates constraints that assure that every item in the item pool is used (at least) once. Essentially a wrapper around itemUsageConstraint.
itemUsageConstraint
depletePoolConstraint(nForms, nItems = NULL, itemIDs = NULL)
A sparse matrix.
Number of forms to be created.
Number of items in the item pool [optional to create itemIDs automatically].
itemIDs
a character vector of item IDs in correct ordering, or NULL.
depletePoolConstraint(2, itemIDs = 1:10)
Run the code above in your browser using DataLab