Split {TestDesign} | R Documentation |
Split an item pool into partitions
Description
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.
Usage
Split(
config,
constraints,
n_partition,
partition_type,
partition_size_range = NULL,
n_maximum_partitions_per_item = 1,
force_solver = FALSE
)
## S4 method for signature '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 |
constraints |
a |
n_partition |
the number of partitions to create. |
partition_type |
|
partition_size_range |
(optional) two integer values for the desired range for the size of a partition. Has no effect when |
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 |
force_solver |
if |
Value
Split
returns an output_Split
object containing item/set indices of created tests/pools.
Examples
## Not run:
config <- createStaticTestConfig(MIP = list(solver = "RSYMPHONY"))
constraints <- constraints_science[1:10]
solution <- Split(config, constraints, n_partition = 4, partition_type = "test"))
plot(solution)
solution <- Split(config, constraints, n_partition = 4, partition_type = "pool"))
plot(solution)
## End(Not run)