conflicting_rules function
Every set of rules that cannot hold together, each a list of the rules it needs; [] when all can hold.
How to write it
conflicting_rules(rules, domain)
- rules
- The rules, as a list or joined with and; n : integer makes n a whole number. Takes a list, or a condition, true or false.
- domain
- With integer, every unknown is a whole number; without it, a real one.
Examples
conflicting_rules([x > 1 or y > 1, x <= 0, y < 0, z > 2])In the solver,
Open in the solverconflicting_rules([x > 1 or y > 1, x <= 0, y < 0, z > 2])gives[[x > 1 or y > 1, x <= 0, y < 0]].conflicting_rules([6*t + 4*u = 40, t >= 5, u >= 2], integer)In the solver,
Open in the solverconflicting_rules([6*t + 4*u = 40, t >= 5, u >= 2], integer)gives[[6t + 4u = 40, t >= 5, u >= 2]].
Related functions
- cylindrical_decomposition
Describe where a condition holds as bounds on each variable in turn.
- boolean_minimize
A shortest equivalent form of a condition.
- eliminate_quantifiers
An equivalent condition with the quantifiers removed.
- xor
True when an odd number of conditions are true.
- equal
True when two values are equal: the function form of ==.
- unequal
True when two values differ: the function form of !=.