Skip to contents

The features split into groups (colours) so that no two features of a group exclude each other. Each product fits in one colour, so testing every feature at least once needs at least as many products as colours. The colouring is quick, not always the smallest possible.

Usage

vp_colouring(model)

Arguments

model

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

Value

A tibble with feature and colour (a number).

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_colouring(band)
#> # A tibble: 11 × 2
#>    feature            colour
#>    <chr>               <int>
#>  1 Screen                  2
#>  2 TouchScreen             2
#>  3 OLED                    2
#>  4 CapacityButton          2
#>  5 ContactlessPayment      2
#>  6 MovementFilter          3
#>  7 HeartRateSensor         1
#>  8 BLEv40                  3
#>  9 BLEv42                  2
#> 10 BT40                    1
#> 11 NFC                     2