Skip to contents

Groups of features that all exclude one another (cliques of the excludes graph): at most one of each group can be in a product. They are groups of alternatives, whether or not the model declares them as such.

Usage

vp_alternative_groups(model, min_size = 3)

Arguments

model

A model, from vp_generate() or vp_read(), in its complete or its minimal form.

min_size

The smallest group to report (3 by default; every conflict is a group of 2).

Value

A tibble with group, size and feature, the largest groups first.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_alternative_groups(band)
#> # A tibble: 24 × 3
#>    group  size feature           
#>    <int> <int> <chr>             
#>  1     1     3 BLEv40            
#>  2     1     3 BT40              
#>  3     1     3 TouchScreen       
#>  4     2     3 BLEv40            
#>  5     2     3 BT40              
#>  6     2     3 ContactlessPayment
#>  7     3     3 BLEv40            
#>  8     3     3 BT40              
#>  9     3     3 BLEv42            
#> 10     4     3 BLEv40            
#> # ℹ 14 more rows