Split is a function for splitting a pool into multiple parallel tests or pools. When constructing parallel tests, each test is constructed to satisfy all constraints. When constructing parallel pools, each pool is constructed so that it contains a test that satisfies all constraints.

Split(
  config,
  constraints,
  n_partition,
  partition_type,
  partition_size_range = NULL,
  n_maximum_partitions_per_item = 1,
  force_solver = FALSE
)

# S4 method for config_Static
Split(
  config,
  constraints,
  n_partition,
  partition_type,
  partition_size_range = NULL,
  n_maximum_partitions_per_item = 1,
  force_solver = FALSE
)

Arguments

config

a config_Static object. Use createStaticTestConfig for this.

constraints

a constraints object representing test specifications. Use loadConstraints for this.

n_partition

the number of partitions to create.

partition_type

test to create tests, or pool to create pools.

partition_size_range

(optional) two integer values for the desired range for the size of a partition. Has no effect when partition_type is test. For discrete item pools, the default partition size is (pool size / number of partitions). For set-based item pools, the default partition size is (pool size / number of partitions) +/- smallest set size.

n_maximum_partitions_per_item

(optional) the number of times an item can be assigned to a partition. Setting this to 1 is equivalent to requiring all partitions to be mutually exclusive. A caveat is that when this is equal to n_partition, the assembled partitions will be identical to each other, because Split aims to minimize the test information difference between all partitions. (default = 1)

force_solver

if TRUE, do not check whether the solver is one of recommended solvers for complex problems (set-based assembly, partitioning). (default = FALSE)

Value

Split returns an output_Split object containing item/set indices of created tests/pools.

Examples