detect_infeasible_rules | R Documentation |
Detect which rules cause infeasibility. This methods tries to remove the minimum number of rules to make the system mathematically feasible. Note that this may not result in your desired system, because some rules may be more important to you than others. This can be mitigated by supplying weights for the rules. Default weight is 1.
detect_infeasible_rules(x, weight = numeric(), ...)
x |
|
weight |
optional named |
... |
not used |
character
with the names of the rules that are causing infeasibility.
Other feasibility:
detect_boundary_cat()
,
detect_boundary_num()
,
is_contradicted_by()
,
is_infeasible()
,
make_feasible()
rules <- validator( x > 0)
is_infeasible(rules)
rules <- validator( rule1 = x > 0
, rule2 = x < 0
)
is_infeasible(rules)
detect_infeasible_rules(rules)
make_feasible(rules)
# find out the conflict with this rule
is_contradicted_by(rules, "rule1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.