# given a dataset with 10 features, we create a max-size constraint limiting
# the set to 5 features and a cannot-link constraint between features 1 and 2
buildConstraints(constraint_types = c('max_size','cannot_link'),
constraint_vars = list(5, c(1,2)),
num_elements = 10,
rho = 1)
Run the code above in your browser using DataLab