Learn R Programming

TestDesign (version 1.0.1)

Static: Run Static Test Assembly

Description

Perform static (fixed-form) test assembly with specified configurations.

Usage

Static(config, constraints)

# S4 method for config_Static Static(config, constraints)

Arguments

config

A '>config_Static object containing configuration options. Use createStaticTestConfig for this.

constraints

A list representing optimization constraints. Use loadConstraints for this.

Value

A list containing the following entries:

  • MIP A list containing the result from MIP solver.

    • solution Solution vector. Each value represents an item. A value of 1 indicates the item was selected.

    • objval Objective value of the solution.

    • status Status value indicating whether an optimal solution was found.

  • selected The attributes of the selected items.

  • solver The name of the MIP solver used in the assembly.

  • obj_value Objective value of the solution. Identical to the one above.

  • solve_time The elapsed time in running the solver.

References

van_der_linden_linear_2005TestDesign

Examples

Run this code
# NOT RUN {
config_science <- createStaticTestConfig(
  list(
    method = "MAXINFO",
    target_location = c(-1, 1)
  )
)
solution <- Static(config_science, constraints_science)

# }

Run the code above in your browser using DataLab