Split | R Documentation |
Split
is a function to split 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, force_solver = FALSE ) ## S4 method for signature 'config_Static' Split( config, constraints, n_partition, partition_type, partition_size_range = NULL, force_solver = FALSE )
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 |
force_solver |
if |
partition
returns an output_Split
object containing item/set indices of created tests/pools.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.