R/administered_functions.R
excludeAdministeredItems.Rd
The function excludeAdministeredItems
produces a new constraints
object
that excludes administered items from being selected.
excludeAdministeredItems(constraints, administered_items)
a constraints
object.
item names of previously administered items.
a constraints
object that also constrains the administered items to be excluded.
if (FALSE) {
require(TestDesign)
cfg <- createShadowTestConfig(
MIP = list(solver = "lpsymphony")
)
constraints <- constraints_reading
solution <- Shadow(cfg, constraints, true_theta = 0)
administered_items <- solution@output[[1]]@administered_item_index
administered_items <- solution@constraints@pool@id[administered_items]
administered_items
updated_constraints <- excludeAdministeredItems(constraints, administered_items)
solution <- Shadow(cfg, updated_constraints, true_theta = 0)
administered_items <- solution@output[[1]]@administered_item_index
administered_items <- solution@constraints@pool@id[administered_items]
administered_items ## entirely different from above
}