Solve grouping based on priorities or costs.
prioritized_grouping.Rd
Solve grouping based on priorities or costs.
Usage
prioritized_grouping(
data,
cap_classes = NULL,
excess_space = 20,
pre_grouped = NULL,
seed = 6293812
)
Arguments
- data
data set in wide format. First column should be ID, then one column for each group containing cost/priorities.
- cap_classes
class capacity. Numeric vector length 1 or length=number of groups. If NULL equal group sizes are calculated. Default is NULL.
- excess_space
allowed excess group fill in percentage. Default is 20. Supplied group capacities will be enlarged by this factors and rounded up.
- pre_grouped
Pre grouped data set. Optional. Should contain two columns, 'id' and 'group', with 'group' containing the given group index.
- seed
specify a seed value. For complex problems.