Candidate redundant constraints: written requirements ("a requires b") that follow from a chain of other requirements. Give the constraints of the model that you want to examine; each one that is not in the skeleton is implied by others, and a solver can confirm that removing it changes nothing.
Arguments
- model
A model, from
vp_generate()orvp_read(), in its complete or its minimal form.- written
A tibble with
fromandto: written requirements of the model.
Value
The rows of written with in_graphs (the arrow holds), redundant
(it follows from others) and via.
See also
Other hierarchy:
vp_atomic_sets(),
vp_chains(),
vp_common_dependants(),
vp_common_requirements(),
vp_depth(),
vp_downset(),
vp_false_optional(),
vp_feature_tree(),
vp_foundations(),
vp_implied_requires(),
vp_largest_free_set(),
vp_largest_unrelated_set(),
vp_leaves(),
vp_levels(),
vp_longest_chain(),
vp_longest_decision_chain(),
vp_skeleton(),
vp_tree_agreement(),
vp_upset(),
vp_width()
Examples
band <- vp_generate(vp_example("miband3.uvl"), or_graph = TRUE)
written <- data.frame(
from = c("TouchScreen", "TouchScreen"),
to = c("Screen", "OLED")
)
vp_redundant_candidates(band, written)
#> # A tibble: 2 × 5
#> from to in_graphs redundant via
#> <chr> <chr> <lgl> <lgl> <chr>
#> 1 TouchScreen Screen TRUE TRUE BLEv42
#> 2 TouchScreen OLED TRUE TRUE BLEv42