Skip to content

Commit b680887

Browse files
committed
documentation tweaking
1 parent dec5c3f commit b680887

File tree

7 files changed

+47
-17
lines changed

7 files changed

+47
-17
lines changed

R/detect_contradicting_if_rules.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#' Detect infeasible if rules
1+
#' Detect contradictory if-rules
22
#'
33
#' Detect whether conditions in if-rules may generate contradictions. Strictly
44
#' speaking these rules do not make the rule set infeasible but rather make

examples/feasible.R

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@ rules <- validator( x > 0)
22

33
is_infeasible(rules)
44

5+
# infeasible system!
56
rules <- validator( rule1 = x > 0
67
, rule2 = x < 0
78
)
89

910
is_infeasible(rules)
1011

1112
detect_infeasible_rules(rules, verbose=TRUE)
12-
make_feasible(rules, verbose = TRUE)
1313

14-
# find out the conflict with this rule
15-
is_contradicted_by(rules, "rule1", verbose = TRUE)
14+
# but we want to keep rule1, so specify that it has an Inf weight
15+
detect_infeasible_rules(rules, weight=c(rule1=Inf), verbose=TRUE)
16+
17+
# detect and remove
18+
make_feasible(rules, weight=c(rule1=Inf), verbose = TRUE)
19+
20+
# find out the conflict with rule2
21+
is_contradicted_by(rules, "rule2", verbose = TRUE)

man/detect_contradicting_if_rules.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/detect_infeasible_rules.Rd

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/is_contradicted_by.Rd

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/is_infeasible.Rd

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/make_feasible.Rd

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)