getXdataOfAdministered: (Internal) Obtain constraint matrix-data of administered...

View source: R/xdata_functions.R

getXdataOfAdministeredR Documentation

(Internal) Obtain constraint matrix-data of administered items/sets

Description

getXdataOfAdministered is an internal function for obtaining constraint matrix-data of administered items/sets. Specifically, it returns a constraint matrix-data that tells the solver to include items/sets that are already administered to the current examinee. This is necessary for shadow-test assembly for adaptive test assembly.

Usage

getXdataOfAdministered(
  simulation_constants,
  position,
  x,
  groupings_record,
  constraints
)

Arguments

simulation_constants

a named list containing simulation constants.

position

the item position, ranging from 1 to test length.

x

an output_Shadow object, containing data for a single examinee.

groupings_record

a list containing data on completed item sets.

constraints

a constraints object.

Value

getXdataOfAdministered returns a constraint matrix-data. A constraint matrix-data is a named list containing the following:

xmat

a (nc, ni) matrix for the left-hand side in a MIP problem.

xdir

a length-nc) vector of relational operators, for comparing the two sides in a MIP problem.

xrhs

a length-nc) vector, for the right-hand side in a MIP problem.


TestDesign documentation built on Sept. 11, 2024, 7:12 p.m.