Skip to contents

Opposites: pairs of features of which every product has exactly one. They exclude each other and every product has one of them, so one is selected exactly when the other is not. Atomic sets are features that are always equal; opposites are always different. Needs the at-least-one graph.

Usage

vp_opposites(model)

Arguments

model

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

Value

A tibble with feature_1 and feature_2.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_opposites(band)
#> # A tibble: 3 × 2
#>   feature_1      feature_2
#>   <chr>          <chr>    
#> 1 Screen         BT40     
#> 2 OLED           BT40     
#> 3 CapacityButton BT40