Create a '>config_Static
object for Static (fixed-form) test assembly.
createStaticTestConfig(item_selection = NULL, MIP = NULL)
A list containing item selection criteria. This should have the following entries:
method
The type of criteria. Accepts MAXINFO, TIF, TCC
.
info_type
The type of information. Accepts FISHER
.
target_location
A numeric vector containing the locations of target theta points. (e.g. c(-1, 0, 1)
)
target_value
A numeric vector containing the target values at each theta location. This should have the same length with target_location
. Ignored if method is MAXINFO
.
target_weight
A numeric vector containing the weights for each theta location. This should have the same length with targetlocation
. Defaults to a vector of 1s.
A list containing solver options. This should have the following entries:
solver
The type of solver. Accepts lpsymphony, Rsymphony, gurobi, lpSolve, Rglpk
.
verbosity
Verbosity level of the solver. Defaults to -2.
time_limit
Time limit in seconds passed onto the solver. Defaults to 60. Used in solvers lpsymphony, Rsymphony, gurobi, Rglpk
.
gap_limit
Termination criterion. Gap limit in relative scale passed onto the solver. Defaults to .05. Used in solver gurobi
.
gap_limit_abs
Termination criterion. Gap limit in absolute scale passed onto the solver. Defaults to .05. Used in solver lpsymphony, Rsymphony
.
obj_tol
Termination criterion. Tolerance on target objective value in absolute difference scale. Defaults to .05. Ignored if method is MAXINFO
.
# NOT RUN {
cfg1 <- createStaticTestConfig(
list(
method = "MAXINFO",
info_type = "FISHER",
target_location = c(-1, 0, 1),
target_weight = c(1, 1, 1)
)
)
cfg2 <- createStaticTestConfig(
list(
method = "TIF",
info_type = "FISHER",
target_location = c(-1, 0, 1),
target_weight = c(1, 1, 1),
target_value = c(8, 10, 12)
)
)
cfg3 <- createStaticTestConfig(
list(
method = "TCC",
info_type = "FISHER",
target_location = c(-1, 0, 1),
target_weight = c(1, 1, 1),
target_value = c(10, 15, 20)
)
)
# }
Run the code above in your browser using DataLab