Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • {x>1 or y>1x≤0y<0z>2  {x>1 or y>1x≤0y<0\displaystyle \begin{cases} x > 1 \text{ or } y > 1 \\ x \le 0 \\ y < 0 \\ z > 2 \end{cases} \; \begin{cases} x > 1 \text{ or } y > 1 \\ x \le 0 \\ y < 0 \end{cases}
    conflicting_rules([x > 1 or y > 1, x <= 0, y < 0, z > 2])

    In the solver, conflicting_rules([x > 1 or y > 1, x <= 0, y < 0, z > 2]) gives [[x > 1 or y > 1, x <= 0, y < 0]].

    Open in the solver
  • {6t+4u=40t≥5u≥2  {6t+4u=40t≥5u≥2\displaystyle \begin{cases} 6 t+4 u = 40 \\ t \ge 5 \\ u \ge 2 \end{cases} \; \begin{cases} 6 t+4 u = 40 \\ t \ge 5 \\ u \ge 2 \end{cases}
    conflicting_rules([6*t + 4*u = 40, t >= 5, u >= 2], integer)

    In the solver, conflicting_rules([6*t + 4*u = 40, t >= 5, u >= 2], integer) gives [[6t + 4u = 40, t >= 5, u >= 2]].

    Open in the solver
  • 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 !=.