Skip to contents

The largest set of features with no conflict among them. No product can have more variable features selected than this. Exact for small models; for large ones (more than exact_limit features) a quick greedy search gives a set that is as large as it could find, so the true largest set may be larger.

Usage

vp_largest_compatible_set(model, exact_limit = 60)

Arguments

model

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

exact_limit

Up to this number of variable features the search is exact; above it, a greedy search is used.

Value

A tibble with the column feature.

Examples

band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
vp_largest_compatible_set(band)
#> # A tibble: 8 × 1
#>   feature           
#>   <chr>             
#> 1 Screen            
#> 2 TouchScreen       
#> 3 OLED              
#> 4 CapacityButton    
#> 5 ContactlessPayment
#> 6 HeartRateSensor   
#> 7 BLEv42            
#> 8 NFC